How to add or publish
- New Entry or Edit → set the date, write the body → Save in the editor (this updates the page in the browser; it is not on disk yet).
-
Save the JSON to your repo: while
npm run devis running, click Post to project to writepublic/musings-posts.jsonautomatically. If you do not see that button, use Download or Copy JSON and replacepublic/musings-posts.jsonin your project by hand. -
Publish the site: commit and push
public/musings-posts.json(and run your usual deploy) so the live site updates.
Open this page with ?musings-admin=1 to get here without the keyboard shortcut, or use the
same secret typing shortcut as before.
List of Musings
Entry Editor
To publish to the web, commit and push public/musings-posts.json (and run your usual
deploy). Run npm run build or npm run dev to verify locally.
With Post to project (visible only while npm run dev is running), the
file is written for you in public/ — you still push to GitHub for the live site.
Download / Copy JSON are for editing the file outside the dev server or another machine.
Tip: add ?musings-admin=1 to this page URL to open the editor without the keyboard
shortcut.