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

static CMS and publishing system

parent 230acfde
No related branches found
No related tags found
No related merge requests found
Pipeline #51684 passed with stages
in 1 minute and 34 seconds
Showing
with 93 additions and 34 deletions
--- ---
published: true
title: "Coko Newsletter number 17 out now!" title: "Coko Newsletter number 17 out now!"
date: 2022-05-14 date: 2022-05-14
intro: Featuring - Kotahi and JATS, Editoria new feature, more on the forthcoming PageBreak Conference. intro: Featuring - Kotahi and JATS, Editoria new feature, more on the forthcoming PageBreak Conference.
......
--- ---
published: true
title: "Coko Newsletter number 18 out now!" title: "Coko Newsletter number 18 out now!"
date: 2022-06-04 date: 2022-06-04
intro: Featuring - It's a bumper GEEK issue! We cover some recent Coko technology developments including - Pagedjs Template Sprint (OER), Wax Question Model Widgets, Libero Editor Consortium, PDF ingestion, Kotahi Multitenancy. intro: Featuring - It's a bumper GEEK issue! We cover some recent Coko technology developments including - Pagedjs Template Sprint (OER), Wax Question Model Widgets, Libero Editor Consortium, PDF ingestion, Kotahi Multitenancy.
......
--- ---
published: true
title: "CokoDocs coming soon!" title: "CokoDocs coming soon!"
date: 2022-06-04 date: 2022-06-04
intro: New Product Announcement intro: New Product Announcement
......
--- ---
published: true
title: "Coko Annual Report!" title: "Coko Annual Report!"
date: 2022-06-04 date: 2022-06-04
intro: The 2021 - 2022 Coko Annual Report is available for download. intro: The 2021 - 2022 Coko Annual Report is available for download.
......
--- ---
published: true
title: "Announcement: Women in Tech Collectives and Coko form Partnership" title: "Announcement: Women in Tech Collectives and Coko form Partnership"
date: 2021-11-01 date: 2021-11-01
intro: Coko and the Women in Tech Collectives are proud to announce a new partnership! The Women in Tech Collectives from India is a small community led by women tech enthusiasts… intro: Coko and the Women in Tech Collectives are proud to announce a new partnership! The Women in Tech Collectives from India is a small community led by women tech enthusiasts…
...@@ -24,4 +25,4 @@ In June of 2021 Bhuvana approached Coko Founder Adam Hyde about possible collabo ...@@ -24,4 +25,4 @@ In June of 2021 Bhuvana approached Coko Founder Adam Hyde about possible collabo
Coko Founder Adam Hyde is also very happy about this collaboration – “Bhuvana and the WITc are awesome! We have welcomed 4 people from the collective into our team so far and looking to work with more within a few weeks. Everyone has been extremely nice, hard working, and enthusiastic about what we do. “ Coko Founder Adam Hyde is also very happy about this collaboration – “Bhuvana and the WITc are awesome! We have welcomed 4 people from the collective into our team so far and looking to work with more within a few weeks. Everyone has been extremely nice, hard working, and enthusiastic about what we do. “
Coko is also supporting these four team members to work during the week on other WiTc projects to assist the community. Additionally Bhuvana has joined the judging panel of the Open Publishing Awards and Adam and Bhuvana have more exciting ideas for WItC and Coko collaborations in the pipeline to announce! Stay tuned! Coko is also supporting these four team members to work during the week on other WiTc projects to assist the community. Additionally Bhuvana has joined the judging panel of the Open Publishing Awards and Adam and Bhuvana have more exciting ideas for WItC and Coko collaborations in the pipeline to announce! Stay tuned!
\ No newline at end of file
--- ---
published: true
title: "Update from Croatia" title: "Update from Croatia"
date: 2022-08-31 date: 2022-08-31
intro: We have been working hard in Croatia! intro: We have been working hard in Croatia!
......
--- ---
published: true
title: "Understanding Workflow-first Design" title: "Understanding Workflow-first Design"
date: 2022-09-22 date: 2022-09-22
intro: First in a new two part series of articles on Workflow-first design principles by Coko Founder Adam Hyde.. intro: First in a new two part series of articles on Workflow-first design principles by Coko Founder Adam Hyde..
......
--- ---
published: true
title: "Coko Newsletter #22" title: "Coko Newsletter #22"
date: 2022-09-23 date: 2022-09-23
intro: Kotahi Update, PageBreak and more... intro: Kotahi Update, PageBreak and more...
......
--- ---
published: true
title: "Understanding Workflow-first Design Part 2" title: "Understanding Workflow-first Design Part 2"
date: 2022-09-27 date: 2022-09-27
intro: The Second in a two part series of articles on Workflow-first design principles by Coko Founder Adam Hyde. intro: The Second in a two part series of articles on Workflow-first design principles by Coko Founder Adam Hyde.
......
--- ---
published: true
title: "Adam Hyde recieves Open Source Award" title: "Adam Hyde recieves Open Source Award"
date: 2022-02-02 date: 2022-02-02
intro: Coko Founder Adam Hyde recieves Open Source Award for "Exceptional Leadership" intro: Coko Founder Adam Hyde recieves Open Source Award for "Exceptional Leadership"
......
--- ---
title: "All About Coko Architects" title: "All About Coko Architects"
date: 2022-02-08 date: 2022-02-08
published: true
intro: An introduction to Coko Architects intro: An introduction to Coko Architects
author: Adam Hyde author: Adam Hyde
tags: featured tags: featured
......
--- ---
published: true
title: "Pandoc Integrates Pagedjs" title: "Pandoc Integrates Pagedjs"
date: 2022-02-10 date: 2022-02-10
intro: Popular conversion tool Pandoc integrates Pagedjs" intro: Popular conversion tool Pandoc integrates Pagedjs"
......
--- ---
published: true
title: "How to Radically Optimise Publishing" title: "How to Radically Optimise Publishing"
date: 2022-02-11 date: 2022-02-11
intro: Adam discusses a key ingredient for radically improving the time and cost to publish. intro: Adam discusses a key ingredient for radically improving the time and cost to publish.
......
--- ---
published: true
title: "Coko website almost done!" title: "Coko website almost done!"
date: 2022-02-16 date: 2022-02-16
intro: We have been updating the Coko website and it is almost finished! intro: We have been updating the Coko website and it is almost finished!
......
--- ---
published: true
title: "Publishing and Facilitation" title: "Publishing and Facilitation"
date: 2022-02-17 date: 2022-02-17
intro: Adam discusses managing publishing processes in a concurrent environment. intro: Adam discusses managing publishing processes in a concurrent environment.
......
--- ---
published: true
title: "New Colab Site" title: "New Colab Site"
date: 2022-02-20 date: 2022-02-20
intro: Our Partners Biophysics Colab launch their Website! intro: Our Partners Biophysics Colab launch their Website!
......
...@@ -11,7 +11,6 @@ ...@@ -11,7 +11,6 @@
{% if item.data.menu %} {% if item.data.menu %}
<li> <li>
{# <span>{{item.data.order}}</span> #}
<a data-instant class="{% if item.url == page.url %}active{% endif %}" href="{{ item.url }}" title="{{ item.data.title }}">{%- if item.data.menutitle -%}{{ item.data.menutitle }}{% else %}{{ item.data.title }}{% endif %}</a> <a data-instant class="{% if item.url == page.url %}active{% endif %}" href="{{ item.url }}" title="{{ item.data.title }}">{%- if item.data.menutitle -%}{{ item.data.menutitle }}{% else %}{{ item.data.title }}{% endif %}</a>
</li> </li>
{% endif %} {% endif %}
...@@ -28,4 +27,4 @@ ...@@ -28,4 +27,4 @@
document.querySelector('.topbar nav').classList.toggle('hide'); document.querySelector('.topbar nav').classList.toggle('hide');
}) })
</script> </script>
\ No newline at end of file
<!DOCTYPE html> <!DOCTYPE html>
{# from https://www.matuzo.at/blog/html-boilerplate/ #} {# from https://www.matuzo.at/blog/html-boilerplate/ #}
<html lang="{% if lang %}{{lang}}{% else %} {{site.lang}}{% endif %}" class="no-js"> <html lang="{% if lang %}{{lang}}{% else %} {{site.lang}}{% endif %}" class="no-js">
......
...@@ -12,26 +12,50 @@ backend: ...@@ -12,26 +12,50 @@ backend:
base_url: https://gitlab.coko.foundation base_url: https://gitlab.coko.foundation
auth_endpoint: oauth/authorize auth_endpoint: oauth/authorize
site_domain: https://coko.foundation/ site_domain: https://coko.foundation/
# local_backend: true # for local update
# name: git-gateway
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:
- name: 'blog' - name: "blog"
label: 'blog entry' # Used in the UI label: "Blog" # Used in the UI
folder: 'src/blog/posts/' # The path to the folder where the documents are stored folder: "src/blog/posts/" # 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: 'Title', name: 'title', widget: 'string' } - label: "Date"
- { label: 'Date', name: 'date', widget: 'date' } name: "date"
- { label: 'Intro', required: false, name: 'intro', widget: 'markdown' } widget: "datetime"
- { label: 'The content', name: 'body', widget: 'markdown' } format: "yyyy-MM-dd"
- { - label: "published"
label: 'Custom class (leave empty)', name: "published"
required: false, widget: "boolean"
name: 'class', required: true
widget: 'string', default: true
} - label: "Title"
- { label: 'Video', required: false, name: 'video', widget: 'string' } name: "title"
- { label: 'icon', required: false, name: 'icon', widget: 'file' } widget: "string"
- { label: 'image', required: false, name: 'image', widget: 'file' } - label: "Intro"
required: false
name: "intro"
widget: "markdown"
- label: "The content"
name: "body"
widget: "markdown"
- label: "Custom class (leave empty)"
required: false
name: "class"
widget: "string"
- label: "Video"
required: false
name: "video"
widget: "string"
- label: "icon"
required: false
name: "icon"
widget: "file"
- label: "image"
required: false
name: "image"
widget: "file"
<!doctype html> <!-- <!doctype html> -->
<!-- <html> -->
<!-- <head> -->
<!-- <meta charset="utf-8" /> -->
<!-- <meta name="viewport" content="width=device-width, initial-scale=1.0" /> -->
<!-- <title>Content Manager</title> -->
<!-- </head> -->
<!-- <body> -->
<!-- //-- real comment --/ Include the script that builds the page and powers Netlify CMS -->
<!-- <script src="https://unpkg.com/netlify-cms@^2.0.0/dist/netlify-cms.js"></script> -->
<!-- </body> -->
<!-- </html> -->
<!---->
<!DOCTYPE html>
<html> <html>
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Content Manager</title> <title>Content Manager</title>
</head> <link
<body> rel="stylesheet"
<!-- Include the script that builds the page and powers Netlify CMS --> href="https://unpkg.com/@staticcms/app@^2.0.0/dist/main.css"
<script src="https://unpkg.com/netlify-cms@^2.0.0/dist/netlify-cms.js"></script> />
</head>
<body>
<!-- Include the script that builds the page and powers StaticJs CMS -->
<script src="https://unpkg.com/@staticcms/app@^2.0.0/dist/static-cms-app.js"></script>
</body> <script>
</html> CMS.init();
\ No newline at end of file </script>
</body>
</html>
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