diff --git a/.eleventy.js b/.eleventy.js index 5ce0583..08eba34 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -3,6 +3,9 @@ module.exports = function(eleventyConfig) { // Without this, your styles and images won't appear in the _site output eleventyConfig.addPassthroughCopy("src/css"); eleventyConfig.addPassthroughCopy("assets"); + + // Decap CMS admin panel + eleventyConfig.addPassthroughCopy("admin"); return { dir: { diff --git a/admin/config.yml b/admin/config.yml new file mode 100644 index 0000000..7050472 --- /dev/null +++ b/admin/config.yml @@ -0,0 +1,65 @@ +backend: + name: gitea + repo: firefrost-gaming/firefrost-website + api_root: https://git.firefrostgaming.com/api/v1 + base_url: https://git.firefrostgaming.com + app_id: ad439d72-e724-4f88-ad24-a1187c52b313 + branch: main + +# Media settings for Eleventy +media_folder: "assets/images/uploads" +public_folder: "/assets/images/uploads" + +# Site settings +site_url: https://firefrostgaming.com +display_url: https://firefrostgaming.com +logo_url: https://firefrostgaming.com/assets/images/logo.png + +# Editorial workflow (optional - start simple) +# publish_mode: editorial_workflow + +collections: + - name: "pages" + label: "Pages" + files: + - label: "About" + name: "about" + file: "about.njk" + fields: + - {label: "Title", name: "title", widget: "string", default: "About Firefrost Gaming"} + - {label: "Body", name: "body", widget: "markdown"} + + - label: "Servers" + name: "servers" + file: "servers.njk" + fields: + - {label: "Title", name: "title", widget: "string", default: "Our Servers"} + - {label: "Body", name: "body", widget: "markdown"} + + - label: "Subscribe" + name: "subscribe" + file: "subscribe.njk" + fields: + - {label: "Title", name: "title", widget: "string", default: "Subscribe"} + - {label: "Body", name: "body", widget: "markdown"} + + - label: "Contact" + name: "contact" + file: "contact.njk" + fields: + - {label: "Title", name: "title", widget: "string", default: "Contact Us"} + - {label: "Body", name: "body", widget: "markdown"} + + - label: "Terms of Service" + name: "terms" + file: "terms.njk" + fields: + - {label: "Title", name: "title", widget: "string", default: "Terms of Service"} + - {label: "Body", name: "body", widget: "markdown"} + + - label: "Privacy Policy" + name: "privacy" + file: "privacy.njk" + fields: + - {label: "Title", name: "title", widget: "string", default: "Privacy Policy"} + - {label: "Body", name: "body", widget: "markdown"} diff --git a/admin/index.html b/admin/index.html new file mode 100644 index 0000000..2a86bcb --- /dev/null +++ b/admin/index.html @@ -0,0 +1,17 @@ + + + + + + + Firefrost CMS + + + + + +