Skip to content

Commit

Permalink
Add admin folder on public dir
Browse files Browse the repository at this point in the history
  • Loading branch information
wutali committed Aug 5, 2020
1 parent 09d11d1 commit 94d730d
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
15 changes: 15 additions & 0 deletions public/admin/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
backend:
name: git-gateway
branch: master
media_folder: public/images
public_folder: public
collections:
- name: "posts"
label: "Posts"
folder: "posts"
create: true
slug: "{{slug}}"
fields:
- { label: "Title", name: "title", widget: "string" }
- { label: "Publish Date", name: "date", widget: "datetime" }
- { label: "Body", name: "body", widget: "markdown" }
13 changes: 13 additions & 0 deletions public/admin/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Content Manager</title>
<script src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script>
</head>
<body>
<!-- Include the script that builds the page and powers Netlify CMS -->
<script src="https://unpkg.com/netlify-cms@2.9.7/dist/netlify-cms.js"></script>
</body>
</html>

0 comments on commit 94d730d

Please sign in to comment.