adding decapcms
This commit is contained in:
+1
-1
@@ -11,7 +11,7 @@ variables:
|
|||||||
# Minor - starts from 0 when Major is incremented +1 for each version that goes public
|
# Minor - starts from 0 when Major is incremented +1 for each version that goes public
|
||||||
# Release - For each time a development milestone is reached
|
# Release - For each time a development milestone is reached
|
||||||
VERSION: 1.3.3
|
VERSION: 1.3.3
|
||||||
BUILD: 1 # If set to 0 gitlab will not build the image
|
BUILD: 0 # If set to 0 gitlab will not build the image
|
||||||
IMAGE_TAG: $CI_REGISTRY_IMAGE:$VERSION
|
IMAGE_TAG: $CI_REGISTRY_IMAGE:$VERSION
|
||||||
DOCKER_TLS_CERTDIR: "/certs"
|
DOCKER_TLS_CERTDIR: "/certs"
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,62 @@
|
|||||||
|
## Commit messages
|
||||||
|
backend:
|
||||||
|
name: git-gateway
|
||||||
|
branch: main
|
||||||
|
commit_messages:
|
||||||
|
create: Create {{collection}} "{{slug}}"
|
||||||
|
update: Update {{collection}} "{{slug}}"
|
||||||
|
delete: Delete {{collection}} "{{slug}}"
|
||||||
|
uploadMedia: Upload "{{path}}"
|
||||||
|
deleteMedia: Delete "{{path}}"
|
||||||
|
openAuthoring: '{{message}}'
|
||||||
|
|
||||||
|
## Publish mode
|
||||||
|
publish_mode: simple # Allowed Values: simple, editorial_workflow
|
||||||
|
|
||||||
|
## Media and Public folders
|
||||||
|
#Media
|
||||||
|
media_folder: "static/img"
|
||||||
|
public_folder: "/img"
|
||||||
|
|
||||||
|
## SiteTitle
|
||||||
|
site_url: htpps://blog.ahmza.com
|
||||||
|
display_url: blog.ahmza.com
|
||||||
|
logo_url: https://blog.ahmza.com/logo.webp
|
||||||
|
|
||||||
|
## Collections
|
||||||
|
collections:
|
||||||
|
- name: posts
|
||||||
|
identifier_field: name
|
||||||
|
label: posts
|
||||||
|
label_singular: post
|
||||||
|
description: sites main content, blog posts
|
||||||
|
folder: "content/posts"
|
||||||
|
create: true
|
||||||
|
slug: '{{slug}}'
|
||||||
|
fields:
|
||||||
|
- {label: "Title", name: "title", widget: "string"}
|
||||||
|
- {label: "Publish Date", name: "date", widget: "datetime", default: "{{now}}", date_format: "YYYY-MM-DD"}
|
||||||
|
- {label: "Last Modified", name: "lastmod", widget: "datetime", default: "{{now}}", date_format: "YYYY-MM-DD"}
|
||||||
|
- {label: "Author", name: "author", widget: "string", default: "ahmza"}
|
||||||
|
- {label: "Draft", name: "draft", widget: "boolean", default: "false"}
|
||||||
|
- {label: "Weight", name: "weight", widget: "number"}
|
||||||
|
- {label: "Tags", name: "tags", widget: "string", default: "['','']"}
|
||||||
|
- {label: "Description", name: "description", widget: "string"}
|
||||||
|
- {label: "Body", name: "body", widget: "markdown"}
|
||||||
|
extension: md
|
||||||
|
format: frontmatter
|
||||||
|
frontmatter_delimiter: ---
|
||||||
|
sortable_fields: ['title', 'date', 'lastmod', 'tags']
|
||||||
|
view_filters:
|
||||||
|
- label: "ahmza's posts"
|
||||||
|
field: author
|
||||||
|
pattern: 'ahmza'
|
||||||
|
- label: Drafts:
|
||||||
|
field: draft
|
||||||
|
pattern: true
|
||||||
|
view_groups:
|
||||||
|
- label: Year
|
||||||
|
field: date
|
||||||
|
pattern: \d{4}
|
||||||
|
- label: Drafts
|
||||||
|
field: draft
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<meta name="robots" content="noindex" />
|
||||||
|
<title>Content Manager</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<!-- Include the script that builds the page and powers Decap CMS -->
|
||||||
|
<script src="https://unpkg.com/decap-cms@^3.0.0/dist/decap-cms.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Reference in New Issue
Block a user