Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save andreliem/2d72aeda4518bf5f82423812a2c0ba1c to your computer and use it in GitHub Desktop.
Save andreliem/2d72aeda4518bf5f82423812a2c0ba1c to your computer and use it in GitHub Desktop.
backend:
name: github
repo: andreliem/vuepress-netlify-cms
branch: master # Branch to update (optional; defaults to master)
media_folder: "docs/.vuepress/public/images"
public_folder: "docs/.vuepress/dist/"
collections:
- name: "doc" # Used in routes, e.g., /admin/collections/blog
label: "Doc" # Used in the UI
folder: "docs" # The path to the folder where the documents are stored
create: true # Allow users to create new documents in this collection
slug: "{{slug}}" # Filename template, e.g., YYYY-MM-DD-title.md
fields: # The fields for each document, usually in front matter
- {label: "Title", name: "title", widget: "string"}
- {label: "Body", name: "body", widget: "markdown"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment