Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions admin/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
backend:
name: github
repo: jlbrooks/jlbrooks.github.io
branch: master

collections:
- name: posts
label: Posts
folder: _posts
create: true
slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
# Images go in a per-post folder matching the existing convention:
# assets/img/YYYY-MM-DD-post-title/
media_folder: "assets/img/{{year}}-{{month}}-{{day}}-{{slug}}"
public_folder: "/assets/img/{{year}}-{{month}}-{{day}}-{{slug}}"
editor:
preview: false
fields:
- { label: Layout, name: layout, widget: hidden, default: post }
- { label: Title, name: title, widget: string }
- { label: Subtitle, name: subtitle, widget: string, required: false }
- label: Tags
name: tags
widget: select
multiple: true
required: false
options:
- trip-report
- skiing
- hiking
- weekly-whats-up
- home-automation
- travel
- tech
- label: Cover Image
name: cover-img
widget: image
required: false
hint: "Optional hero image shown at top of post"
- { label: Comments, name: comments, widget: boolean, default: true }
- { label: Body, name: body, widget: markdown }
12 changes: 12 additions & 0 deletions admin/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!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>
<script src="https://unpkg.com/@sveltia/cms/dist/sveltia-cms.js"></script>
</body>
</html>
Loading