Skip to content
Snippets Groups Projects
Commit a1eae7f5 authored by Julien Taquet's avatar Julien Taquet
Browse files

cms first steps

parent b5b07bde
No related branches found
No related tags found
No related merge requests found
...@@ -79,6 +79,7 @@ module.exports = function (eleventyConfig) { ...@@ -79,6 +79,7 @@ module.exports = function (eleventyConfig) {
eleventyConfig.addPassthroughCopy({ "static/js": "/js" }); eleventyConfig.addPassthroughCopy({ "static/js": "/js" });
eleventyConfig.addPassthroughCopy({ "static/images": "/images" }); eleventyConfig.addPassthroughCopy({ "static/images": "/images" });
eleventyConfig.addPassthroughCopy({ "static/outputs": "/outputs" }); eleventyConfig.addPassthroughCopy({ "static/outputs": "/outputs" });
eleventyConfig.addPassthroughCopy({ "static/admin": "/admin" });
// plugin TOC // plugin TOC
eleventyConfig.addPlugin(pluginTOC); eleventyConfig.addPlugin(pluginTOC);
......
backend: backend:
name: gitlab name: gitlab
branch: main branch: main
repo: repo: coko-materials/coko-website
auth_type: auth_type: pkce # Required for implicit grant
app_id: app_id: c89f5f43c559d4b28e301235f1f00b9e2bb5a057323e3aa6ee992b7490f9f7a2 # Application ID from your GitLab settings
api_root: api_root: https://gitlab.coko.foundation/api/v4
base_url: base_url: https://gitlab.coko.foundation
auth_endpoint: auth_endpoint: oauth/authorize
site_domain: site_domain: https://coko.foundation/
local_backend: true # for local update # local_backend: true # for local update
# publish_mode: editorial_workflow #remove editorial workflow as its in beta for gitlab # publish_mode: editorial_workflow #remove editorial workflow as its in beta for gitlab
media_folder: "static/images/uploads" # Media files will be stored in the repo under images/uploads media_folder: "static/images/uploads" # Media files will be stored in the repo under images/uploads
collections: collections:
...@@ -24,57 +24,6 @@ collections: ...@@ -24,57 +24,6 @@ collections:
- {label: "Site Keywords", name: "Keywords", widget: "markdown", required: false } - {label: "Site Keywords", name: "Keywords", widget: "markdown", required: false }
- {label: "Site Authors", name: "Authors", widget: "markdown", required: false } - {label: "Site Authors", name: "Authors", widget: "markdown", required: false }
- {label: "Footer", name: "Footer", widget: "markdown", required: false } - {label: "Footer", name: "Footer", widget: "markdown", required: false }
- name: "kotahi_data"
label: "kotahi things"
files:
- name: "features"
label: "Features" # Used in the UI
file: "views/features/index.md" # The path to the folder where the documents are stored
create: false # Allow users to create new documents in this collection
slug: "features" # Filename template, e.g., YYYY-MM-DD-title.md
fields: # The fields for each document, usually in front matter
- {label: "Layout", name: "layout", widget: "hidden", default: "feature.njk"}
- {label: "Title", name: "title", widget: "string"}
- {label: "Body", name: "body", widget: "markdown"}
- label: "feature"
name: "features"
widget: "list"
fields:
- {label: Name, name: name, widget: string}
- {label: Avatar, name: avatar, widget: image}
- {label: text, name: text, widget: "markdown"}
- {label: "Whitepaper", name: "Whitepaper", widget: "markdown"}
- name: "community" # Used in routes, e.g., /admin/collections/blog
label: "Community" # Used in the UI
file: "views/community/index.md" # The path to the folder where the documents are stored
create: false # Allow users to create new documents in this collection
slug: "person" # Filename template, e.g., YYYY-MM-DD-title.md
fields: # The fields for each document, usually in front matter
- {label: "Layout", name: "layout", widget: "hidden", default: "community.njk"}
- {label: "Title", name: "title", widget: "string"}
- {label: "Body", name: "body", widget: "markdown"}
- label: "person"
name: "person"
widget: "list"
fields:
- {label: Name, name: name, widget: string}
- {label: Avatar, name: avatar, widget: image}
- {label: text, name: text, widget: "markdown"}
- {label: Image shift top, name: top, widget: "number"}
- {label: Image shift from left, name: left, widget: "number"}
- name: "sponsors" # Used in routes, e.g., /admin/collections/blog
label: "Sponsors" # Used in the UI
file: "views/_data/sponsors.json" # The path to the folder where the documents are stored
format: "json"
widget: "list"
fields:
- label: "entities"
name: "entities"
widget: "list"
fields:
- {label: Name, name: name, widget: string}
- {label: Logo, name: logo, widget: image}
- name: "news" - name: "news"
label: "news" # Used in the UI label: "news" # Used in the UI
folder: "views/news/" # The path to the folder where the documents are stored folder: "views/news/" # The path to the folder where the documents are stored
...@@ -90,16 +39,16 @@ collections: ...@@ -90,16 +39,16 @@ collections:
- {label: "The post", name: "body", widget: "markdown"} - {label: "The post", name: "body", widget: "markdown"}
- name: "team" - name: "team"
label: "team" # Used in the UI label: "team" # Used in the UI
folder: "views/teams/" # The path to the folder where the documents are stored folder: "views/teams/" # The path to the folder where the documents are stored
slug: "{{year}}-{{month}}-{{day}}-{{slug}}" slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
create: true create: true
fields: fields:
- {label: "Layout", name: "layout", widget: "hidden", default: "newsSingle.njk"} - {label: "Layout", name: "layout", widget: "hidden", default: "newsSingle.njk"}
- {label: "tags", name: "tags", widget: "hidden", default: "news"} - {label: "tags", name: "tags", widget: "hidden", default: "news"}
- {label: "Date", name: "date", widget: "date"} - {label: "Date", name: "date", widget: "date"}
- {label: Author, name: author, widget: string} - {label: Author, name: author, widget: string}
- {label: Title, name: title, widget: string} - {label: Title, name: title, widget: string}
- {label: Big Picture, name: picture, widget: image, required: false} - {label: Big Picture, name: picture, widget: image, required: false}
- {label: "The post", name: "body", widget: "markdown"} - {label: "The post", name: "body", widget: "markdown"}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment