Skip to content

feat: add Sveltia CMS for mobile posting - #21

Merged
jlbrooks merged 2 commits into
masterfrom
feat/sveltia-cms
May 15, 2026
Merged

feat: add Sveltia CMS for mobile posting#21
jlbrooks merged 2 commits into
masterfrom
feat/sveltia-cms

Conversation

@jlbrooks

Copy link
Copy Markdown
Owner

Summary

  • Adds /admin page powered by Sveltia CMS — a Decap CMS-compatible editor that works with GitHub auth natively (no OAuth backend needed)
  • Mobile-friendly markdown editor with image upload built in
  • Configured for the existing _posts collection and front matter fields

How to use

  1. Merge this PR
  2. Go to https://jlbrooks.tech/admin in any browser (including mobile)
  3. Sign in with GitHub — Sveltia uses GitHub's device flow, so no extra OAuth setup needed
  4. Create/edit posts, upload images from camera roll, publish — all committed directly to master

Notes

  • Uploaded images land in assets/img/uploads/ (flat folder, not per-post). Could scope per-post later if desired.
  • Tags list in config is a starting set — easy to add more in admin/config.yml
  • The /admin page is excluded from search engines via noindex

Test plan

  • Visit /admin after deploy, confirm Sveltia UI loads
  • Sign in with GitHub
  • Create a draft post with an image upload, confirm files appear in repo

🤖 Generated with Claude Code

jlbrooks and others added 2 commits May 15, 2026 11:08
Adds /admin with Sveltia CMS (Decap-compatible, no OAuth backend needed).
Supports creating/editing posts with image uploads from mobile browser.

- admin/index.html: loads Sveltia CMS from CDN
- admin/config.yml: configured for _posts collection with existing
  front matter fields (title, subtitle, tags, cover-img, comments)
- Images upload to assets/img/uploads/

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Moves media_folder/public_folder into the posts collection with slug
template vars so images land in assets/img/YYYY-MM-DD-post-title/
instead of a flat uploads folder.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@jlbrooks
jlbrooks merged commit dc181fe into master May 15, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant