Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
coko-website
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
coko-material
coko-website
Commits
a1eae7f5
Commit
a1eae7f5
authored
2 years ago
by
Julien Taquet
Browse files
Options
Downloads
Patches
Plain Diff
cms first steps
parent
b5b07bde
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.eleventy.js
+1
-0
1 addition, 0 deletions
.eleventy.js
static/admin/config.yml
+20
-71
20 additions, 71 deletions
static/admin/config.yml
with
21 additions
and
71 deletions
.eleventy.js
+
1
−
0
View file @
a1eae7f5
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
static/admin/config.yml
+
20
−
71
View file @
a1eae7f5
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"
}
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment