Skip to content

Commit

Permalink
feat: migrate to Decap CMS to Sveltia
Browse files Browse the repository at this point in the history
  • Loading branch information
msfjarvis committed Nov 30, 2024
1 parent bccfb0f commit 7ffb1c6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
"description": "Update Decap CMS",
"fileMatch": ["static/admin/index.html"],
"matchStrings": [
"\/decap-cms@(?<currentValue>.*?)\/dist",
"\/@sveltia/cms@(?<currentValue>.*?)\/dist",
],
"depNameTemplate": "decap-cms",
"depNameTemplate": "@sveltia/cms",
"datasourceTemplate": "npm",
},
{
Expand Down
10 changes: 5 additions & 5 deletions static/admin/config.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
backend:
name: git-gateway
branch: main
name: github
repo: msfjarvis/msfjarvis.dev
media_folder: 'content/posts/{{slug}}/'
public_folder: '/posts/{{slug}}'
collections:
- name: 'blog'
label: 'Blog'
folder: 'content/posts'
path: '{{slug}}/index.md'
path: '{{slug}}/index'
create: true
slug: '{{slug}}'
editor:
preview: false
format: toml-frontmatter
fields:
- { label: 'Title', name: 'title', widget: 'string' }
- { label: 'Publish Date', name: 'date', widget: 'datetime', default: '{{now}}' picker_utc: false }
- { label: 'Last modification Date', name: 'lastmod', widget: 'datetime', default: '{{now}}' picker_utc: false }
- { label: 'Publish Date', name: 'date', widget: 'datetime', default: '{{now}}', picker_utc: false }
- { label: 'Last modification Date', name: 'lastmod', widget: 'datetime', default: '{{now}}', picker_utc: false }
- { label: 'Description', name: 'summary', widget: 'string' }
- { label: 'Categories', name: 'categories', widget: 'list' }
- { label: 'Tags', name: 'tags', widget: 'list' }
Expand Down
5 changes: 2 additions & 3 deletions static/admin/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Content Manager</title>
<script src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script>
</head>
<body>
<!-- Include the script that builds the page and powers Decap CMS -->
<script src="https://unpkg.com/decap-cms@3.4.0/dist/decap-cms.js"></script>
<!-- Include the script that builds the page and powers Sveltia CMS -->
<script src="https://unpkg.com/@sveltia/cms@0.47.2/dist/sveltia-cms.js"></script>
</body>
</html>

0 comments on commit 7ffb1c6

Please sign in to comment.