saturn
- 187 commits
- 2 branches
- 0 tags
- updated
- CI 2/2
publishing.md
3.6 KB · 96 lines
1# publishing a post23from markdown in my editor to live on the site, in RSS and on standard.site.4`internal/` is never deployed.56## once781. **make an app password.** bsky.app → settings → privacy and security → app9 passwords. it's made on my pds (home.daum.dev), which is what the script10 logs in to.112. **save it** in `mise.local.toml` at the repo root. it's gitignored, so it12 never gets committed:1314 ```toml15 [env]16 ATPROTO_APP_PASSWORD = "xxxx-xxxx-xxxx-xxxx"17 ```1819 without it, `mise run publish` still updates the RSS feed but can't publish20 to standard.site.2122## every post2324### 1. make the page25261. copy `internal/template.html` to `SECTION/SLUG/index.html`, e.g.27 `blog/my-post/index.html` or `now/dec-2026/index.html`. how to structure the28 body: `internal/example.html`292. replace everything in CAPS:30 - **`<head>`**: `POST TITLE` (3×), `SECTION/SLUG` (the `og:url`), and31 `ONE SENTENCE SUMMARY` (3×). the summary becomes the post's RSS summary32 and its standard.site description, so write it for someone who hasn't33 read the post34 - **header**: the `/SECTION` kicker (it becomes the RSS category), the35 `<h1>`, and the `<time datetime="YYYY-MM-DD">` (the published date)36 - **banner** (optional): uncomment it and fill in the photo. it becomes the37 RSS figure and the standard.site cover image38 - **body**: paste the post in, as html393. **pager**: point prev/next at the neighbouring posts, or delete the card40 that has no post yet. then add a `next` card to the previous post pointing41 here424. **code blocks** (if any): `mise run highlight SECTION/SLUG/index.html`4344### 2. check it4546```bash47mise run serve # localhost:808048mise run social-dev # localhost:8788, with likes, comments and bluesky posts49```5051likes and comments work on `/blog/SLUG/` and `/now/SLUG/` with no extra setup.52for a new section (e.g. `/books/SLUG/`), see `social/README.md`.5354### 3. list it5556- **`blog/index.html`**: add a row to the top of the writing list (copy one,57 change the href, title, tag and date)58- **`index.html`**: add the same row to the home page's writing list. it59 shows the newest five60- **now posts only**: copy the new edition over `now/index.html`, and set its61 `data-social="/now/SLUG/"` so likes and comments go to the edition. older62 editions link to `/now/`, so they keep pointing at the newest6364### 4. publish6566```bash67mise run publish SECTION/SLUG/index.html --dry-run # see what would change68mise run publish SECTION/SLUG/index.html69```7071this adds the post to `feed.xml` (RSS), publishes its standard.site record to72my pds, and adds a `<link rel="site.standard.document">` to the page. it73refuses a page that still has template text in it.7475only run it on the post's own page, never on `/now/` (that's a copy).7677### 5. ship7879commit and push. ci deploys to cloudflare pages. the standard.site record is80already live from step 4; the page and feed go live with the deploy.8182## fixing a typo later8384edit the page, then run `mise run publish` on it again. the feed entry's85title and content are replaced and its `updated` date moves to now, so readers86see it was changed. its published date and summary stay as they were. if87nothing changed, nothing happens. then commit and push.8889## good to know9091- **the feed summary is never overwritten.** once an entry exists, edit its92 `<summary>` in `feed.xml` by hand if you want to change it93- **a post's standard.site record is tied to its date and path.** change94 either and it becomes a new record; delete the old one on the pds95- **bluesky posts** (the POSTS sections on `/`, `/blog/` and `/posts/`) need96 nothing: they come from bluesky on their own. see `social/README.md`