diff --git a/pages/index.tsx b/pages/index.tsx index 35e7ec44..7db92eba 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -60,6 +60,10 @@ export default function Home({ {title} +
diff --git a/public/admin/config.yml b/public/admin/config.yml new file mode 100644 index 00000000..3d3cc8d9 --- /dev/null +++ b/public/admin/config.yml @@ -0,0 +1,17 @@ +backend: + name: git-gateway + repo: prixite/prixite.github.io + branch: cms # Branch to update (optional; defaults to master) +media_folder: public/images/posts +public_folder: /images/posts +collections: + - name: 'blogs' + label: 'Blogs' + folder: 'data/blogs' + create: true + fields: + - { label: 'Title', name: 'title', widget: 'string' } + - { label: 'Date', name: 'date', widget: 'string' } + - { label: 'Description', name: 'excerpt', widget: 'string' } + - { label: 'Cover Image', name: 'cover_image', widget: 'image' } + - { label: 'Body', name: 'body', widget: 'markdown' } diff --git a/public/admin/index.html b/public/admin/index.html new file mode 100644 index 00000000..2443ec6f --- /dev/null +++ b/public/admin/index.html @@ -0,0 +1,14 @@ + + + + + + Content Manager + + + + + + + +