mirror of
https://github.com/BeardedTek/flowbite-beardedtek.com.git
synced 2025-12-06 05:31:52 +00:00
Add blog collection to config.yml and update index.html to use Decap CMS, enhancing content management and improving HTML structure.
This commit is contained in:
@@ -2,7 +2,7 @@ backend:
|
||||
name: gitea
|
||||
repo: beardedtek/flowbite-beardedtek.com
|
||||
branch: main
|
||||
app_id: ca91733b-543f-4506-b2cc-7c6120d20b57
|
||||
app_id: "ca91733b-543f-4506-b2cc-7c6120d20b57"
|
||||
base_url: https://git.beardedtek.com
|
||||
api_root: https://git.beardedtek.com/api/v1
|
||||
auth_endpoint: https://git.beardedtek.com/login/oauth/authorize
|
||||
@@ -18,6 +18,16 @@ media_folder: "static/images/uploads"
|
||||
public_folder: "/images/uploads"
|
||||
|
||||
collections:
|
||||
- name: "blog"
|
||||
label: "Blog"
|
||||
folder: "blog"
|
||||
create: true
|
||||
fields:
|
||||
- {label: "Title", name: "title", widget: "string"}
|
||||
- {label: "Publish Date", name: "date", widget: "datetime", format: "YYYY-MM-DD", date_format: "YYYY-MM-DD", time_format: false}
|
||||
- {label: Featured Image", name: "thumbnail", widget: "image"}
|
||||
- {Body", name: "body", widget: "markdown"}
|
||||
|
||||
- name: "pages"
|
||||
label: "Pages"
|
||||
folder: "content"
|
||||
|
||||
@@ -1,16 +1,13 @@
|
||||
<!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>
|
||||
<script src="https://unpkg.com/@sveltia/cms/dist/sveltia-cms.js"></script>
|
||||
<script>
|
||||
SveltiaCMS.init({
|
||||
config: '/admin/config.yml'
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</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