Initial commit
This commit is contained in:
27
public/admin/config.yml
Normal file
27
public/admin/config.yml
Normal file
@@ -0,0 +1,27 @@
|
||||
backend:
|
||||
name: git-gateway
|
||||
branch: main
|
||||
commit_messages:
|
||||
create: 'Create {{collection}} “{{slug}}”'
|
||||
update: 'Update {{collection}} “{{slug}}”'
|
||||
delete: 'Delete {{collection}} “{{slug}}”'
|
||||
uploadMedia: '[skip ci] Upload “{{path}}”'
|
||||
deleteMedia: '[skip ci] Delete “{{path}}”'
|
||||
|
||||
media_folder: 'public/images/uploads' # Folder where user uploaded files should go
|
||||
public_folder: '/images/uploads'
|
||||
|
||||
collections: # A list of collections the CMS should be able to edit
|
||||
- name: 'post' # Used in routes, ie.: /admin/collections/:slug/edit
|
||||
label: 'Post' # Used in the UI, ie.: "New Post"
|
||||
folder: 'src/pages/blog' # The path to the folder where the documents are stored
|
||||
create: true # Allow users to create new documents in this collection
|
||||
fields: # The fields each document in this collection have
|
||||
- {label: "Layout", name: "layout", widget: "hidden", default: "$/layouts/post.astro"}
|
||||
- { label: 'Title', name: 'title', widget: 'string' }
|
||||
- { label: 'Description', name: 'description', widget: 'text' }
|
||||
- { label: 'Body', name: 'body', widget: 'markdown' }
|
||||
- { label: 'Tags', name: 'tags', widget: 'list' }
|
||||
- { label: 'Author', name: 'author', widget: 'string' }
|
||||
- { label: 'Author Twitter Handle', name: 'authorTwitter', widget: 'string' }
|
||||
- { label: 'Publish Date', name: 'date', widget: 'datetime' }
|
||||
12
public/admin/index.html
Normal file
12
public/admin/index.html
Normal file
@@ -0,0 +1,12 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Astro Ink - Content Manager</title>
|
||||
<script src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script src="https://unpkg.com/netlify-cms@2.10.161/dist/netlify-cms.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user