Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
DemoMacro committed Dec 8, 2018
1 parent c88e194 commit 0e431bb
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
*.log
node_modules/
public/
pages/
19 changes: 19 additions & 0 deletions .vuepress/public/admin/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
backend:
name: git-gateway
branch: master # Branch to update (master by default)

media_folder: "media" # Folder where user uploaded files should go

# This line should *not* be indented
publish_mode: editorial_workflow

collections:
- name: "Post" # Used in routes, e.g., /admin/collections/blog
label: "Post" # Used in the UI
folder: "/" # 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: "Publish Date", name: "date", widget: "datetime"}
- {label: "Body", name: "body", widget: "markdown"}
21 changes: 21 additions & 0 deletions .vuepress/public/admin/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!doctype html>
<html>

<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>NetlifyPress</title>

<!-- Include the styles for the Netlify CMS UI, after your own styles -->
<link rel="stylesheet" href="https://unpkg.com/netlify-cms@^1.0.0/dist/cms.css" />

<!-- Note the "type" and "rel" attribute values, which are required. -->
<link href="config.yml" type="text/yaml" rel="cms-config-url">
</head>

<body>
<!-- Include the script that builds the page and powers Netlify CMS -->
<script src="https://unpkg.com/netlify-cms@^1.0.0/dist/cms.js"></script>
</body>

</html>

0 comments on commit 0e431bb

Please sign in to comment.