remove static cms, update decap
This commit is contained in:
parent
282884ff9a
commit
76071b2d3b
|
@ -95,7 +95,7 @@ This site is primarily developed using a text editor and file manager with git (
|
||||||
|
|
||||||
Each page of the site is a simple text file containing [markdown](https://en.wikipedia.org/wiki/Markdown) and can be edited with your preferred text editor.
|
Each page of the site is a simple text file containing [markdown](https://en.wikipedia.org/wiki/Markdown) and can be edited with your preferred text editor.
|
||||||
|
|
||||||
This site also has two web based content edtiors setup and supported. They are very trim in terms of features and can be somewhat fiddly to use on a phone. However, they are robust text editors that facilitate text editing directly in the browser with some metadata support. These should allow more graphical editing for content managers that prefer a less 'pure text' type of environment.
|
This site also has a web based content editor setup. It is very trim in terms of features and can be somewhat fiddly to use on a phone. Long-term this area of the site will be looked at closer. For now it's not supported for editing this site.
|
||||||
|
|
||||||
We even tested editing the contents of this website via the main GitHub website. It works, it's browser based and a really good option for those that prefer a simple web based text editor environment.
|
We even tested editing the contents of this website via the main GitHub website. It works, it's browser based and a really good option for those that prefer a simple web based text editor environment.
|
||||||
|
|
||||||
|
|
|
@ -27,11 +27,8 @@ This website uses the following technologies to achive a highly accessible, free
|
||||||
[hugo-xmin](https://github.com/yihui/hugo-xmin)
|
[hugo-xmin](https://github.com/yihui/hugo-xmin)
|
||||||
: Main website theme, modified
|
: Main website theme, modified
|
||||||
|
|
||||||
[Static CMS](https://www.staticcms.org/)
|
|
||||||
: Web based editor for use with desktop browsers
|
|
||||||
|
|
||||||
[Decap](https://decapcms.org/)
|
[Decap](https://decapcms.org/)
|
||||||
: Web based editor for use with mobile browsers
|
: Web based editor
|
||||||
|
|
||||||
[GitHub](https://github.com)
|
[GitHub](https://github.com)
|
||||||
: Version control, change management, issue tracking
|
: Version control, change management, issue tracking
|
||||||
|
|
|
@ -1,132 +0,0 @@
|
||||||
site_url: https://kb.accessible.tips
|
|
||||||
display_url: https://kb.accessible.tips
|
|
||||||
|
|
||||||
media_folder: "static/uploads"
|
|
||||||
public_folder: "/uploads"
|
|
||||||
|
|
||||||
search: false
|
|
||||||
|
|
||||||
backend:
|
|
||||||
name: git-gateway
|
|
||||||
branch: main
|
|
||||||
|
|
||||||
collections:
|
|
||||||
- name: "blog" # Used in routes, e.g., /admin/collections/blog
|
|
||||||
label: "Blog" # Used in the UI
|
|
||||||
folder: "content/posts" # The path to the folder where the documents are stored
|
|
||||||
create: true # Allow users to create new documents in this collection
|
|
||||||
slug: "{{year}}-{{month}}-{{day}}-{{slug}}" # Filename template, e.g., YYYY-MM-DD-title.md
|
|
||||||
show_preview_links: true
|
|
||||||
preview_path: "posts/{{slug}}"
|
|
||||||
fields: # The fields for each document, usually in front matter
|
|
||||||
- {label: "Layout", name: "layout", widget: "hidden", default: "post", required: true}
|
|
||||||
- {label: "Title", name: "title", widget: "string", required: true}
|
|
||||||
- name: authors
|
|
||||||
label: Authors
|
|
||||||
widget: list
|
|
||||||
required: true
|
|
||||||
collapsed: false
|
|
||||||
fields:
|
|
||||||
- name: author
|
|
||||||
label: Author
|
|
||||||
widget: string
|
|
||||||
- {label: "Publish Date", name: "publishDate", widget: "datetime", date_format: 'yyyy-MM-dd', time_format: false, required: true}
|
|
||||||
- {label: "Last Modified", name: "lastMod", widget: "datetime", date_format: 'yyyy-MM-dd', time_format: false, required: true}
|
|
||||||
- {label: "Show TOC?", name: "toc", widget: "boolean", default: true}
|
|
||||||
- {label: "Draft?", name: "draft", widget: "boolean", default: true}
|
|
||||||
- name: categories
|
|
||||||
label: Categories
|
|
||||||
widget: list
|
|
||||||
allow_add: false
|
|
||||||
allow_delete: false
|
|
||||||
collapsed: true
|
|
||||||
default:
|
|
||||||
- 'blog'
|
|
||||||
fields:
|
|
||||||
- name: category
|
|
||||||
label: Category
|
|
||||||
widget: string
|
|
||||||
- name: tags
|
|
||||||
label: Tags
|
|
||||||
widget: list
|
|
||||||
required: true
|
|
||||||
collapsed: false
|
|
||||||
fields:
|
|
||||||
- name: tag
|
|
||||||
label: Tag
|
|
||||||
widget: string
|
|
||||||
- name: body
|
|
||||||
label: Content
|
|
||||||
widget: markdown
|
|
||||||
default: >-
|
|
||||||
## Changelog
|
|
||||||
|
|
||||||
{{< changelog >}}
|
|
||||||
|
|
||||||
{{< change 2000-12-30 "change 1" >}}
|
|
||||||
|
|
||||||
{{< change 2000-12-31 "change 2" >}}
|
|
||||||
|
|
||||||
{{< /changelog >}}
|
|
||||||
|
|
||||||
{{< end_section >}}
|
|
||||||
|
|
||||||
- name: "tips" # Used in routes, e.g., /admin/collections/blog
|
|
||||||
label: "Tips" # Used in the UI
|
|
||||||
folder: "content/tips" # The path to the folder where the documents are stored
|
|
||||||
create: true # Allow users to create new documents in this collection
|
|
||||||
slug: "{{slug}}" # Filename template, e.g., YYYY-MM-DD-title.md
|
|
||||||
show_preview_links: true
|
|
||||||
preview_path: "tips/{{slug}}"
|
|
||||||
fields: # The fields for each document, usually in front matter
|
|
||||||
- {label: "Layout", name: "layout", widget: "hidden", default: "post", required: true}
|
|
||||||
- {label: "Title", name: "title", widget: "string", required: true}
|
|
||||||
- name: authors
|
|
||||||
label: Authors
|
|
||||||
widget: list
|
|
||||||
required: true
|
|
||||||
collapsed: false
|
|
||||||
fields:
|
|
||||||
- name: author
|
|
||||||
label: Author
|
|
||||||
widget: string
|
|
||||||
- {label: "Publish Date", name: "publishDate", widget: "datetime", date_format: 'yyyy-MM-dd', time_format: false, required: true}
|
|
||||||
- {label: "Last Modified", name: "lastMod", widget: "datetime", date_format: 'yyyy-MM-dd', time_format: false, required: true}
|
|
||||||
- {label: "Show TOC?", name: "toc", widget: "boolean", default: true}
|
|
||||||
- {label: "Draft?", name: "draft", widget: "boolean", default: true}
|
|
||||||
- name: categories
|
|
||||||
label: Categories
|
|
||||||
widget: list
|
|
||||||
allow_add: true
|
|
||||||
allow_delete: true
|
|
||||||
collapsed: true
|
|
||||||
default:
|
|
||||||
- 'tips'
|
|
||||||
fields:
|
|
||||||
- name: category
|
|
||||||
label: Category
|
|
||||||
widget: string
|
|
||||||
- name: tags
|
|
||||||
label: Tags
|
|
||||||
widget: list
|
|
||||||
required: true
|
|
||||||
collapsed: false
|
|
||||||
fields:
|
|
||||||
- name: tag
|
|
||||||
label: Tag
|
|
||||||
widget: string
|
|
||||||
- name: body
|
|
||||||
label: Content
|
|
||||||
widget: markdown
|
|
||||||
default: >-
|
|
||||||
## Changelog
|
|
||||||
|
|
||||||
{{< changelog >}}
|
|
||||||
|
|
||||||
{{< change 2000-12-30 "change 1" >}}
|
|
||||||
|
|
||||||
{{< change 2000-12-31 "change 2" >}}
|
|
||||||
|
|
||||||
{{< /changelog >}}
|
|
||||||
|
|
||||||
{{< end_section >}}
|
|
|
@ -1,16 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8" />
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
||||||
<script src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script>
|
|
||||||
<title>Content Manager</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<!-- Include the script that builds the page and powers Static CMS -->
|
|
||||||
<script src="https://unpkg.com/@staticcms/app/dist/static-cms-app.js"></script>
|
|
||||||
<script>
|
|
||||||
window.CMS.init();
|
|
||||||
</script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -4,10 +4,12 @@
|
||||||
<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" />
|
||||||
<meta name="robots" content="noindex" />
|
<meta name="robots" content="noindex" />
|
||||||
|
<script src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script>
|
||||||
<title>Content Manager</title>
|
<title>Content Manager</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<p><a href="mobile/">Mobile Admin UI</a></p>
|
<!-- Include the script that builds the page and powers Decap CMS -->
|
||||||
<p><a href="desktop/">Desktop Admin UI</a></p>
|
<script src="https://unpkg.com/decap-cms@^3.0.0/dist/decap-cms.js"></script>
|
||||||
|
<link href="mobile-overrides.css" rel="stylesheet" />
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -1,15 +0,0 @@
|
||||||
<!doctype html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8" />
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
||||||
<meta name="robots" content="noindex" />
|
|
||||||
<script src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script>
|
|
||||||
<title>Content Manager</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<!-- Include the script that builds the page and powers Decap CMS -->
|
|
||||||
<script src="https://unpkg.com/netlify-cms/dist/netlify-cms.js"></script>
|
|
||||||
<link href="mobile-overrides.css" rel="stylesheet" />
|
|
||||||
</body>
|
|
||||||
</html>
|
|
Loading…
Reference in a new issue