From c735556726e75428550a3d28a2cf58e2c8490b7d Mon Sep 17 00:00:00 2001 From: Dawid Rycerz Date: Mon, 21 Jul 2025 21:56:55 +0300 Subject: Initial template --- public/_headers | 2 ++ public/decapcms/config.yml | 29 +++++++++++++++++++++++++++++ public/decapcms/index.html | 14 ++++++++++++++ public/robots.txt | 2 ++ 4 files changed, 47 insertions(+) create mode 100644 public/_headers create mode 100644 public/decapcms/config.yml create mode 100644 public/decapcms/index.html create mode 100644 public/robots.txt (limited to 'public') diff --git a/public/_headers b/public/_headers new file mode 100644 index 0000000..806338c --- /dev/null +++ b/public/_headers @@ -0,0 +1,2 @@ +/_astro/* + Cache-Control: public, max-age=31536000, immutable \ No newline at end of file diff --git a/public/decapcms/config.yml b/public/decapcms/config.yml new file mode 100644 index 0000000..841a67b --- /dev/null +++ b/public/decapcms/config.yml @@ -0,0 +1,29 @@ +backend: + name: git-gateway + branch: main + +media_folder: 'src/assets/images' +public_folder: '/_astro' + +collections: + - name: 'post' + label: 'Post' + folder: 'src/content/post' + create: true + fields: + - { label: 'Title', name: 'title', widget: 'string' } + - { label: 'Excerpt', name: 'excerpt', widget: 'string' } + - { label: 'Category', name: 'category', widget: 'string' } + - { + label: 'Tags', + name: 'tags', + widget: 'list', + allow_add: true, + allow_delete: true, + collapsed: false, + field: { label: 'Tag', name: 'tag', widget: 'string' }, + } + - { label: 'Image', name: 'image', widget: 'string' } + - { label: 'Publish Date', name: 'publishDate', widget: 'datetime', required: false } + - { label: 'Author', name: 'author', widget: 'string' } + - { label: 'Content', name: 'body', widget: 'markdown' } diff --git a/public/decapcms/index.html b/public/decapcms/index.html new file mode 100644 index 0000000..baab0e4 --- /dev/null +++ b/public/decapcms/index.html @@ -0,0 +1,14 @@ + + + + + + + Content Manager + + + + + + + diff --git a/public/robots.txt b/public/robots.txt new file mode 100644 index 0000000..6f27bb6 --- /dev/null +++ b/public/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: \ No newline at end of file -- cgit v1.2.3