projects

saturn

My website

feat: publish script, rss label, standard page headers

daniel daum committed parent 631c66b commit c21e08cVerified signature by Daniel Daum

Verifiedsigned by Daniel Daum with SSH key SHA256:drhIqfmUzuijEg5lpF1wfHhbG2Z4ebL9Lf+nLCJWAfg

Showing 177 changed files with 928 additions and 241 deletions.

.gitignore +3 −0
@@ -12,3 +12,6 @@ social/node_modules/12121313# scripts: deps1414scripts/node_modules/1516# local env, e.g. ATPROTO_APP_PASSWORD for mise run publish17mise.local.toml
.well-known/site.standard.publicationadded +1 −0
@@ -0,0 +1 @@1at://did:plc:e3z5gj5iyuwgqao562bo4bdf/site.standard.publication/3mbd3542k2222
404.html +9 −4
@@ -52,9 +52,14 @@5252    <!-- ===== MAIN ===== -->5353    <main id="main">545455        <header class="page-header text-center">56            <h1>404</h1>57            <p class="meta">this page doesn't exist</p>55        <header class="page-header page-header--post">56            <p class="page-header-kicker">57                <span aria-hidden="true">/</span>40458            </p>59            <h1>Page Not Found</h1>60            <p class="meta">61                This page doesn't exist.62            </p>5863        </header>59646065        <figure>@@ -75,7 +80,7 @@7580            <a href="/id/">ID</a>7681            <a href="/changelog/">changelog</a>7782            <a href="/privacy/">privacy</a>78            <a href="/feed.xml">feed</a>83            <a href="/feed.xml">RSS</a>7984            <button type="button" class="theme-button">theme</button>8085        </nav>8186    </footer>
README.md +20 −0
@@ -15,6 +15,26 @@ mise run serve        # static site on :80801515mise run social-dev   # with likes and comments on a local D11616```171718## Publishing a post1920Every step, from markdown to live: [`internal/publishing.md`](internal/publishing.md). The short version: put the post in a page from `internal/template.html`, check it in the browser, then:2122```bash23mise run publish now/some-post/index.html --dry-run   # see what would change24mise run publish now/some-post/index.html25```2627This adds the post to `feed.xml` (or updates it, if it's already there) and publishes it to [standard.site](https://standard.site) as a record on my PDS, so atproto readers can follow it. The page gets a `<link rel="site.standard.document">` and `/.well-known/site.standard.publication` is kept up to date. Running it again is safe: an unchanged post changes nothing.2829standard.site needs a Bluesky app password in `ATPROTO_APP_PASSWORD`, e.g. in a gitignored `mise.local.toml`:3031```toml32[env]33ATPROTO_APP_PASSWORD = "xxxx-xxxx-xxxx-xxxx"34```3536Without it, the feed is still updated and nothing is written to the PDS; a post whose record is already there still gets its link tag. Adding the post to `/blog/` and the home page's writing list is still by hand.371838## Source19392040Developed on [git.danieldaum.net](https://git.danieldaum.net/daniel-daum/saturn), mirrored to [Tangled](https://tangled.org/danieldaum.net/saturn) and [GitHub](https://github.com/daniel-daum/saturn).
_headers +3 −0
@@ -4,6 +4,9 @@44/.well-known/atproto-did55  Content-Type: text/plain; charset=utf-8667/.well-known/site.standard.publication8  Content-Type: text/plain; charset=utf-89710# fonts never change in place; rename the file to ship a new version811/assets/fonts/*912  Cache-Control: public, max-age=31536000, immutable
about/index.html +2 −1
@@ -82,6 +82,7 @@8282            name="twitter:image:alt"8383            content="daniel daum - software engineer, avid reader, aspiring game dev - danieldaum.net"8484        />85        <link rel="site.standard.document" href="at://did:plc:e3z5gj5iyuwgqao562bo4bdf/site.standard.document/3mu5cslx622sk" />8586    </head>86878788    <body>@@ -238,7 +239,7 @@238239                <a href="/id/">ID</a>239240                <a href="/changelog/">changelog</a>240241                <a href="/privacy/">privacy</a>241                <a href="/feed.xml">feed</a>242                <a href="/feed.xml">RSS</a>242243                <button type="button" class="theme-button">theme</button>243244            </nav>244245        </footer>
blog/index.html +1 −1
@@ -170,7 +170,7 @@170170                <a href="/id/">ID</a>171171                <a href="/changelog/">changelog</a>172172                <a href="/privacy/">privacy</a>173                <a href="/feed.xml">feed</a>173                <a href="/feed.xml">RSS</a>174174                <button type="button" class="theme-button">theme</button>175175            </nav>176176        </footer>
books/a-court-of-mist-and-fury/index.html +1 −1
@@ -102,7 +102,7 @@102102            <a href="/id/">ID</a>103103            <a href="/changelog/">changelog</a>104104            <a href="/privacy/">privacy</a>105            <a href="/feed.xml">feed</a>105            <a href="/feed.xml">RSS</a>106106            <button type="button" class="theme-button">theme</button>107107        </nav>108108    </footer>
books/a-court-of-thorns-and-roses/index.html +1 −1
@@ -102,7 +102,7 @@102102            <a href="/id/">ID</a>103103            <a href="/changelog/">changelog</a>104104            <a href="/privacy/">privacy</a>105            <a href="/feed.xml">feed</a>105            <a href="/feed.xml">RSS</a>106106            <button type="button" class="theme-button">theme</button>107107        </nav>108108    </footer>
books/a-head-full-of-ghosts/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
books/all-systems-red/index.html +1 −1
@@ -102,7 +102,7 @@102102            <a href="/id/">ID</a>103103            <a href="/changelog/">changelog</a>104104            <a href="/privacy/">privacy</a>105            <a href="/feed.xml">feed</a>105            <a href="/feed.xml">RSS</a>106106            <button type="button" class="theme-button">theme</button>107107        </nav>108108    </footer>
books/careless-people/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
books/carmilla/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
books/dark-age/index.html +1 −1
@@ -102,7 +102,7 @@102102            <a href="/id/">ID</a>103103            <a href="/changelog/">changelog</a>104104            <a href="/privacy/">privacy</a>105            <a href="/feed.xml">feed</a>105            <a href="/feed.xml">RSS</a>106106            <button type="button" class="theme-button">theme</button>107107        </nav>108108    </footer>
books/furnace/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
books/hard-boiled-wonderland-and-the-end-of-the-world/index.html +1 −1
@@ -97,7 +97,7 @@9797            <a href="/id/">ID</a>9898            <a href="/changelog/">changelog</a>9999            <a href="/privacy/">privacy</a>100            <a href="/feed.xml">feed</a>100            <a href="/feed.xml">RSS</a>101101            <button type="button" class="theme-button">theme</button>102102        </nav>103103    </footer>
books/index.html +8 −6
@@ -54,12 +54,14 @@54545555    <!-- ===== MAIN ===== -->5656    <main id="main">57        <nav class="breadcrumb" aria-label="breadcrumb"><a href="/garden/">garden</a> <span aria-hidden="true">-></span> <a href="/books/">books</a></nav>585759        <header class="page-header">60            <h1><span aria-hidden="true">/</span>books</h1>61            <p class="meta">The books I've read. Click a cover to read my note on it.<br />62                Ratings are a work in progress.58        <header class="page-header page-header--post">59            <p class="page-header-kicker">60                <a href="/garden/"><span aria-hidden="true">/</span>garden</a>61            </p>62            <h1>Books</h1>63            <p class="meta">64                The books I've read. Click a cover to read my note on it.<br /> Ratings are a work in progress.6365            </p>6466        </header>6567@@ -445,7 +447,7 @@445447            <a href="/id/">ID</a>446448            <a href="/changelog/">changelog</a>447449            <a href="/privacy/">privacy</a>448            <a href="/feed.xml">feed</a>450            <a href="/feed.xml">RSS</a>449451            <button type="button" class="theme-button">theme</button>450452        </nav>451453    </footer>
books/iron-gold/index.html +1 −1
@@ -98,7 +98,7 @@9898            <a href="/id/">ID</a>9999            <a href="/changelog/">changelog</a>100100            <a href="/privacy/">privacy</a>101            <a href="/feed.xml">feed</a>101            <a href="/feed.xml">RSS</a>102102            <button type="button" class="theme-button">theme</button>103103        </nav>104104    </footer>
books/light-bringer/index.html +1 −1
@@ -102,7 +102,7 @@102102            <a href="/id/">ID</a>103103            <a href="/changelog/">changelog</a>104104            <a href="/privacy/">privacy</a>105            <a href="/feed.xml">feed</a>105            <a href="/feed.xml">RSS</a>106106            <button type="button" class="theme-button">theme</button>107107        </nav>108108    </footer>
books/project-hail-mary/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
books/tender-is-the-flesh/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
books/the-caves-of-steel/index.html +1 −1
@@ -102,7 +102,7 @@102102            <a href="/id/">ID</a>103103            <a href="/changelog/">changelog</a>104104            <a href="/privacy/">privacy</a>105            <a href="/feed.xml">feed</a>105            <a href="/feed.xml">RSS</a>106106            <button type="button" class="theme-button">theme</button>107107        </nav>108108    </footer>
books/the-left-hand-of-darkness/index.html +1 −1
@@ -102,7 +102,7 @@102102            <a href="/id/">ID</a>103103            <a href="/changelog/">changelog</a>104104            <a href="/privacy/">privacy</a>105            <a href="/feed.xml">feed</a>105            <a href="/feed.xml">RSS</a>106106            <button type="button" class="theme-button">theme</button>107107        </nav>108108    </footer>
books/the-strength-of-the-few/index.html +1 −1
@@ -102,7 +102,7 @@102102            <a href="/id/">ID</a>103103            <a href="/changelog/">changelog</a>104104            <a href="/privacy/">privacy</a>105            <a href="/feed.xml">feed</a>105            <a href="/feed.xml">RSS</a>106106            <button type="button" class="theme-button">theme</button>107107        </nav>108108    </footer>
books/the-will-of-the-many/index.html +1 −1
@@ -102,7 +102,7 @@102102            <a href="/id/">ID</a>103103            <a href="/changelog/">changelog</a>104104            <a href="/privacy/">privacy</a>105            <a href="/feed.xml">feed</a>105            <a href="/feed.xml">RSS</a>106106            <button type="button" class="theme-button">theme</button>107107        </nav>108108    </footer>
books/tomorrow-and-tomorrow-and-tomorrow/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
books/we-used-to-live-here/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
books/when-the-wolf-comes-home/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
books/where-the-axe-is-buried/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
changelog/index.html +9 −4
@@ -90,9 +90,14 @@9090        </header>9191        <!-- ===== MAIN ===== -->9292        <main id="main">93            <header class="page-header">94                <h1><span aria-hidden="true">/</span>changelog</h1>95                <p class="meta">Tracking the changes to this website</p>93            <header class="page-header page-header--post">94                <p class="page-header-kicker">95                    <span aria-hidden="true">/</span>changelog96                </p>97                <h1>Version History</h1>98                <p class="meta">99                    Tracking the changes to this website100                </p>96101            </header>97102            <section>98103                <blockquote>@@ -365,7 +370,7 @@365370                <a href="/id/">ID</a>366371                <a href="/changelog/">changelog</a>367372                <a href="/privacy/">privacy</a>368                <a href="/feed.xml">feed</a>373                <a href="/feed.xml">RSS</a>369374                <button type="button" class="theme-button">theme</button>370375            </nav>371376        </footer>
games/age-of-mythology/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
games/baldurs-gate-3/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
games/battlefield-6/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
games/call-of-duty-modern-warfare-2-2009/index.html +1 −1
@@ -97,7 +97,7 @@9797            <a href="/id/">ID</a>9898            <a href="/changelog/">changelog</a>9999            <a href="/privacy/">privacy</a>100            <a href="/feed.xml">feed</a>100            <a href="/feed.xml">RSS</a>101101            <button type="button" class="theme-button">theme</button>102102        </nav>103103    </footer>
games/clair-obscur-expedition-33/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
games/demonschool/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
games/dispatch/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
games/halo-2/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
games/halo-reach/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
games/index.html +7 −10
@@ -100,17 +100,14 @@100100101101        <!-- ===== MAIN ===== -->102102        <main id="main">103            <nav class="breadcrumb" aria-label="breadcrumb">104                <a href="/garden/">garden</a> <span aria-hidden="true">-></span>105                <a href="/games/">games</a>106            </nav>107103108            <header class="page-header">109                <h1><span aria-hidden="true">/</span>games</h1>104            <header class="page-header page-header--post">105                <p class="page-header-kicker">106                    <a href="/garden/"><span aria-hidden="true">/</span>garden</a>107                </p>108                <h1>Games</h1>110109                <p class="meta">111                    Every game I've played through. Click a cover to read my112                    note on it.<br />113                    Ratings are a work in progress.110                    Every game I've played through. Click a cover to read my note on it.<br /> Ratings are a work in progress.114111                </p>115112            </header>116113@@ -1135,7 +1132,7 @@11351132                <a href="/id/">ID</a>11361133                <a href="/changelog/">changelog</a>11371134                <a href="/privacy/">privacy</a>1138                <a href="/feed.xml">feed</a>1135                <a href="/feed.xml">RSS</a>11391136                <button type="button" class="theme-button">theme</button>11401137            </nav>11411138        </footer>
games/indika/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
games/journey/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
games/kingdom-come-deliverance-ii/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
games/kotor-ii-the-sith-lords/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
games/marathon/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
games/mass-effect-2/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
games/pokemon-emerald/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
games/replaced/index.html +1 −1
@@ -97,7 +97,7 @@9797            <a href="/id/">ID</a>9898            <a href="/changelog/">changelog</a>9999            <a href="/privacy/">privacy</a>100            <a href="/feed.xml">feed</a>100            <a href="/feed.xml">RSS</a>101101            <button type="button" class="theme-button">theme</button>102102        </nav>103103    </footer>
games/returnal/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
games/south-of-midnight/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
games/star-wars-battlefront-ii-2005/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
games/star-wars-knights-of-the-old-republic/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
games/star-wars-outlaws/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
games/star-wars-republic-commando/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
games/star-wars-the-old-republic/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
games/stardew-valley/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
games/starfield/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
games/the-callisto-protocol/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
games/the-last-of-us-part-i/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
games/the-last-of-us-part-ii/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
games/the-quarry/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
games/v-rising/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
games/vampire-survivors/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
games/vampire-the-masquerade-bloodlines-2/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
games/warhammer-40-000-space-marine-ii/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
garden/index.html +1 −1
@@ -190,7 +190,7 @@190190                <a href="/id/">ID</a>191191                <a href="/changelog/">changelog</a>192192                <a href="/privacy/">privacy</a>193                <a href="/feed.xml">feed</a>193                <a href="/feed.xml">RSS</a>194194                <button type="button" class="theme-button">theme</button>195195            </nav>196196        </footer>
global.css +21 −0
@@ -717,6 +717,27 @@ nav p {717717    letter-spacing: 0.06em;718718}719719720/* a section page (/books/, /posts/, ...): the kicker is its parent and links721   back up, and the meta is a sentence about the page, not a date */722.page-header-kicker a {723    color: var(--text-secondary);724    border-bottom: 1px solid var(--accent-muted);725    transition:726        color 150ms ease,727        border-bottom-color 150ms ease;728}729730.page-header-kicker a:hover {731    color: var(--accent);732    border-bottom-color: var(--accent);733}734735.page-header--post .meta:not(.caps) {736    font-size: 0.88rem;737    letter-spacing: normal;738    line-height: 1.6;739}740720741/* posts: optional banner photo above the header */721742.post-banner {722743    display: block;
id/index.html +1 −1
@@ -267,7 +267,7 @@ dig +short TXT _atproto.daum.dev</code></pre>267267                <a href="/id/">ID</a>268268                <a href="/changelog/">changelog</a>269269                <a href="/privacy/">privacy</a>270                <a href="/feed.xml">feed</a>270                <a href="/feed.xml">RSS</a>271271                <button type="button" class="theme-button">theme</button>272272            </nav>273273        </footer>
index.html +1 −1
@@ -176,7 +176,7 @@176176                <a href="/id/">ID</a>177177                <a href="/changelog/">changelog</a>178178                <a href="/privacy/">privacy</a>179                <a href="/feed.xml">feed</a>179                <a href="/feed.xml">RSS</a>180180                <button type="button" class="theme-button">theme</button>181181            </nav>182182        </footer>
internal/example.html +1 −1
@@ -186,7 +186,7 @@186186            <a href="/id/">ID</a>187187            <a href="/changelog/">changelog</a>188188            <a href="/privacy/">privacy</a>189            <a href="/feed.xml">feed</a>189            <a href="/feed.xml">RSS</a>190190            <button type="button" class="theme-button">theme</button>191191        </nav>192192    </footer>
internal/publishing.mdadded +96 −0
@@ -0,0 +1,96 @@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`
internal/styles.html +19 −3
@@ -571,22 +571,38 @@571571        <!-- ===================== -->572572        <section class="guide-section" id="wayfinding" aria-label="wayfinding">573573            <h2>wayfinding</h2>574            <p>Two page headers. The big <code>/name</code> is only for the pages in the nav bar (/blog/,575                /garden/), so it always means top level. Every other page uses <code>.page-header--post</code>:576                a small kicker, a title, then a date (<code>.meta.caps</code>) or a sentence (<code>.meta</code>).577                On a section page (/books/, /posts/) the kicker is its parent and links back up, in place of a578                breadcrumb. Entry pages (a book, a photo) keep their own hero and breadcrumb.</p>574579575580            <div class="demo">576                <p class="demo-label">.page-header, for listing pages</p>581                <p class="demo-label">.page-header, nav pages only</p>577582                <header class="page-header">578583                    <h1><span aria-hidden="true">/</span>blog</h1>579584                    <p class="meta">Things I've written</p>580585                </header>581586            </div>582587588            <div class="demo">589                <p class="demo-label">.page-header--post on a section page: linked kicker, sentence meta</p>590                <header class="page-header page-header--post">591                    <p class="page-header-kicker">592                        <a href="#wayfinding"><span aria-hidden="true">/</span>garden</a>593                    </p>594                    <h1>Books</h1>595                    <p class="meta">The books I've read. Click a cover to read my note on it.</p>596                </header>597            </div>598583599            <div class="demo">584600                <p class="demo-label">.meta.meta-split / .meta-sep (stacks under 600px)</p>585601                <p class="meta meta-split"><span>the privacy policy</span><span class="meta-sep" aria-hidden="true"> | </span><span>8 October 2026</span></p>586602            </div>587603588604            <div class="demo">589                <p class="demo-label">.breadcrumb, on garden pages</p>605                <p class="demo-label">.breadcrumb, on entry pages</p>590606                <nav class="breadcrumb" aria-label="breadcrumb demo"><a href="#wayfinding">garden</a> <span aria-hidden="true">-></span> <a href="#wayfinding">movies</a></nav>591607            </div>592608@@ -905,7 +921,7 @@905921            <a href="/id/">ID</a>906922            <a href="/changelog/">changelog</a>907923            <a href="/privacy/">privacy</a>908            <a href="/feed.xml">feed</a>924            <a href="/feed.xml">RSS</a>909925            <button type="button" class="theme-button">theme</button>910926        </nav>911927    </footer>
internal/template.html +5 −5
@@ -1,11 +1,11 @@11<!doctype html>2<!-- blank post: copy to /SECTION/SLUG/index.html and replace everything in CAPS. how to structure it: internal/example.html -->2<!-- blank post: copy to /SECTION/SLUG/index.html and replace everything in CAPS. how to structure it: internal/example.html. every step from here to live: internal/publishing.md -->33<html lang="en">4455<head>66    <meta charset="UTF-8" />77    <meta name="viewport" content="width=device-width, initial-scale=1.0" />8    <meta name="description" content="ONE SENTENCE SUMMARY - copy this verbatim into the feed entry summary" />8    <meta name="description" content="ONE SENTENCE SUMMARY - becomes the RSS summary and standard.site description" />99    <meta http-equiv="Content-Security-Policy"1010        content="default-src 'self'; style-src 'self'; font-src 'self'; img-src 'self' https://assets.danieldaum.net; media-src 'self' https://assets.danieldaum.net;" />1111    <meta name="referrer" content="strict-origin-when-cross-origin" />@@ -23,7 +23,7 @@2323    <meta property="og:type" content="website" />2424    <meta property="og:site_name" content="daniel daum" />2525    <meta property="og:title" content="daniel daum - POST TITLE" />26    <meta property="og:description" content="ONE SENTENCE SUMMARY - copy this verbatim into the feed entry summary" />26    <meta property="og:description" content="ONE SENTENCE SUMMARY - becomes the RSS summary and standard.site description" />2727    <meta property="og:url" content="https://danieldaum.net/SECTION/SLUG/" />2828    <meta property="og:image" content="https://assets.danieldaum.net/img/misc/og.jpg" />2929    <meta property="og:image:type" content="image/jpeg" />@@ -33,7 +33,7 @@33333434    <meta name="twitter:card" content="summary_large_image" />3535    <meta name="twitter:title" content="daniel daum - POST TITLE" />36    <meta name="twitter:description" content="ONE SENTENCE SUMMARY - copy this verbatim into the feed entry summary" />36    <meta name="twitter:description" content="ONE SENTENCE SUMMARY - becomes the RSS summary and standard.site description" />3737    <meta name="twitter:image" content="https://assets.danieldaum.net/img/misc/og.jpg" />3838    <meta name="twitter:image:alt" content="daniel daum - software engineer, avid reader, aspiring game dev - danieldaum.net" />3939</head>@@ -107,7 +107,7 @@107107            <a href="/id/">ID</a>108108            <a href="/changelog/">changelog</a>109109            <a href="/privacy/">privacy</a>110            <a href="/feed.xml">feed</a>110            <a href="/feed.xml">RSS</a>111111            <button type="button" class="theme-button">theme</button>112112        </nav>113113    </footer>
mise.toml +5 −0
@@ -27,3 +27,8 @@ run = ["npm ci", "wrangler deploy -c email.toml"]2727[tasks.highlight]2828description = "Syntax-highlight code blocks in place"2929run = ["npm ci --prefix scripts --silent", "node scripts/highlight.mjs"]3031# mise run publish now/some-post/index.html [--dry-run]32[tasks.publish]33description = "Add a finished post to feed.xml and publish it to standard.site"34run = "node scripts/publish.mjs"
movies/a-house-of-dynamite/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
movies/alien-romulus/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
movies/blade-runner-2049/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
movies/children-of-men/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
movies/f1/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
movies/ghost-in-the-shell/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
movies/gladiator/index.html +1 −1
@@ -97,7 +97,7 @@9797            <a href="/id/">ID</a>9898            <a href="/changelog/">changelog</a>9999            <a href="/privacy/">privacy</a>100            <a href="/feed.xml">feed</a>100            <a href="/feed.xml">RSS</a>101101            <button type="button" class="theme-button">theme</button>102102        </nav>103103    </footer>
movies/index.html +7 −10
@@ -100,17 +100,14 @@100100101101        <!-- ===== MAIN ===== -->102102        <main id="main">103            <nav class="breadcrumb" aria-label="breadcrumb">104                <a href="/garden/">garden</a> <span aria-hidden="true">-></span>105                <a href="/movies/">movies</a>106            </nav>107103108            <header class="page-header">109                <h1><span aria-hidden="true">/</span>movies</h1>104            <header class="page-header page-header--post">105                <p class="page-header-kicker">106                    <a href="/garden/"><span aria-hidden="true">/</span>garden</a>107                </p>108                <h1>Movies</h1>110109                <p class="meta">111                    The movies I've seen. Click a poster to read my note on112                    it.<br />113                    Ratings are a work in progress.110                    The movies I've seen. Click a poster to read my note on it.<br /> Ratings are a work in progress.114111                </p>115112            </header>116113@@ -1095,7 +1092,7 @@10951092                <a href="/id/">ID</a>10961093                <a href="/changelog/">changelog</a>10971094                <a href="/privacy/">privacy</a>1098                <a href="/feed.xml">feed</a>1095                <a href="/feed.xml">RSS</a>10991096                <button type="button" class="theme-button">theme</button>11001097            </nav>11011098        </footer>
movies/kikis-delivery-service/index.html +1 −1
@@ -97,7 +97,7 @@9797            <a href="/id/">ID</a>9898            <a href="/changelog/">changelog</a>9999            <a href="/privacy/">privacy</a>100            <a href="/feed.xml">feed</a>100            <a href="/feed.xml">RSS</a>101101            <button type="button" class="theme-button">theme</button>102102        </nav>103103    </footer>
movies/kinds-of-kindness/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
movies/longlegs/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
movies/oblivion/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
movies/oldboy/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
movies/poor-things/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
movies/prey/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
movies/project-hail-mary/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
movies/ratatouille/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
movies/sinners/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
movies/smile/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
movies/spider-man-into-the-spider-verse/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
movies/spirited-away/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
movies/star-wars-episode-iii-revenge-of-the-sith/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
movies/starship-troopers/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
movies/the-girl-with-the-dragon-tattoo/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
movies/the-incredibles/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
movies/the-iron-claw/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
movies/the-prestige/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
movies/the-rip/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
movies/the-sheep-detectives/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
movies/the-thing/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
movies/tropic-thunder/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
movies/vampire-hunter-d-bloodlust/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
movies/wake-up-dead-man-a-knives-out-mystery/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
movies/weapons/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
music/10-000-gecs/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
music/2014-forest-hills-drive/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
music/awaken-my-love/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
music/being-so-normal/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
music/bury-the-key/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
music/clean-slate/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
music/cole-world-the-sideline-story/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
music/good-kid-m-a-a-d-city/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
music/hit-me-hard-and-soft/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
music/igor/index.html +1 −1
@@ -97,7 +97,7 @@9797            <a href="/id/">ID</a>9898            <a href="/changelog/">changelog</a>9999            <a href="/privacy/">privacy</a>100            <a href="/feed.xml">feed</a>100            <a href="/feed.xml">RSS</a>101101            <button type="button" class="theme-button">theme</button>102102        </nav>103103    </footer>
music/index.html +7 −10
@@ -100,17 +100,14 @@100100101101        <!-- ===== MAIN ===== -->102102        <main id="main">103            <nav class="breadcrumb" aria-label="breadcrumb">104                <a href="/garden/">garden</a> <span aria-hidden="true">-></span>105                <a href="/music/">music</a>106            </nav>107103108            <header class="page-header">109                <h1><span aria-hidden="true">/</span>music</h1>104            <header class="page-header page-header--post">105                <p class="page-header-kicker">106                    <a href="/garden/"><span aria-hidden="true">/</span>garden</a>107                </p>108                <h1>Music</h1>110109                <p class="meta">111                    The albums in my rotation. Click a cover to read my note on112                    it.<br />113                    Ratings are a work in progress.110                    The albums in my rotation. Click a cover to read my note on it.<br /> Ratings are a work in progress.114111                </p>115112            </header>116113@@ -781,7 +778,7 @@781778                <a href="/id/">ID</a>782779                <a href="/changelog/">changelog</a>783780                <a href="/privacy/">privacy</a>784                <a href="/feed.xml">feed</a>781                <a href="/feed.xml">RSS</a>785782                <button type="button" class="theme-button">theme</button>786783            </nav>787784        </footer>
music/its-been-awful/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
music/my-beautiful-dark-twisted-fantasy/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
music/navy-blue/index.html +1 −1
@@ -97,7 +97,7 @@9797            <a href="/id/">ID</a>9898            <a href="/changelog/">changelog</a>9999            <a href="/privacy/">privacy</a>100            <a href="/feed.xml">feed</a>100            <a href="/feed.xml">RSS</a>101101            <button type="button" class="theme-button">theme</button>102102        </nav>103103    </footer>
music/painless/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
music/pulsar/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
music/random-access-memories/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
music/sideline-story/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
music/sonido-cosmico/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
music/submarine/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
music/the-art-of-loving/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
music/the-fall-off/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
music/worst-girl-in-america/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
now/index.html +1 −1
@@ -287,7 +287,7 @@287287                <a href="/id/">ID</a>288288                <a href="/changelog/">changelog</a>289289                <a href="/privacy/">privacy</a>290                <a href="/feed.xml">feed</a>290                <a href="/feed.xml">RSS</a>291291                <button type="button" class="theme-button">theme</button>292292            </nav>293293        </footer>
now/jan-2026/index.html +2 −1
@@ -35,6 +35,7 @@3535    <meta name="twitter:description" content="daniel daum's now page - oakland based software engineer" />3636    <meta name="twitter:image" content="https://assets.danieldaum.net/img/misc/og.jpg" />3737    <meta name="twitter:image:alt" content="daniel daum - software engineer, avid reader, aspiring game dev - danieldaum.net" />38    <link rel="site.standard.document" href="at://did:plc:e3z5gj5iyuwgqao562bo4bdf/site.standard.document/3mcwmoxyw224h" />3839</head>39404041<body>@@ -199,7 +200,7 @@199200            <a href="/id/">ID</a>200201            <a href="/changelog/">changelog</a>201202            <a href="/privacy/">privacy</a>202            <a href="/feed.xml">feed</a>203            <a href="/feed.xml">RSS</a>203204            <button type="button" class="theme-button">theme</button>204205        </nav>205206    </footer>
now/sep-2026/index.html +2 −1
@@ -35,6 +35,7 @@3535    <meta name="twitter:description" content="daniel daum's now page - oakland based software engineer" />3636    <meta name="twitter:image" content="https://assets.danieldaum.net/img/misc/og.jpg" />3737    <meta name="twitter:image:alt" content="daniel daum - software engineer, avid reader, aspiring game dev - danieldaum.net" />38    <link rel="site.standard.document" href="at://did:plc:e3z5gj5iyuwgqao562bo4bdf/site.standard.document/3mumfm4po22sr" />3839</head>39404041<body>@@ -174,7 +175,7 @@174175            <a href="/id/">ID</a>175176            <a href="/changelog/">changelog</a>176177            <a href="/privacy/">privacy</a>177            <a href="/feed.xml">feed</a>178            <a href="/feed.xml">RSS</a>178179            <button type="button" class="theme-button">theme</button>179180        </nav>180181    </footer>
photos/bart-blurry/index.html +1 −1
@@ -99,7 +99,7 @@9999            <a href="/id/">ID</a>100100            <a href="/changelog/">changelog</a>101101            <a href="/privacy/">privacy</a>102            <a href="/feed.xml">feed</a>102            <a href="/feed.xml">RSS</a>103103            <button type="button" class="theme-button">theme</button>104104        </nav>105105    </footer>
photos/berkeley-aquatic-park/index.html +1 −1
@@ -103,7 +103,7 @@103103            <a href="/id/">ID</a>104104            <a href="/changelog/">changelog</a>105105            <a href="/privacy/">privacy</a>106            <a href="/feed.xml">feed</a>106            <a href="/feed.xml">RSS</a>107107            <button type="button" class="theme-button">theme</button>108108        </nav>109109    </footer>
photos/blond-raccoon/index.html +1 −1
@@ -103,7 +103,7 @@103103            <a href="/id/">ID</a>104104            <a href="/changelog/">changelog</a>105105            <a href="/privacy/">privacy</a>106            <a href="/feed.xml">feed</a>106            <a href="/feed.xml">RSS</a>107107            <button type="button" class="theme-button">theme</button>108108        </nav>109109    </footer>
photos/farm-forest/index.html +1 −1
@@ -103,7 +103,7 @@103103            <a href="/id/">ID</a>104104            <a href="/changelog/">changelog</a>105105            <a href="/privacy/">privacy</a>106            <a href="/feed.xml">feed</a>106            <a href="/feed.xml">RSS</a>107107            <button type="button" class="theme-button">theme</button>108108        </nav>109109    </footer>
photos/fire-truck/index.html +1 −1
@@ -103,7 +103,7 @@103103            <a href="/id/">ID</a>104104            <a href="/changelog/">changelog</a>105105            <a href="/privacy/">privacy</a>106            <a href="/feed.xml">feed</a>106            <a href="/feed.xml">RSS</a>107107            <button type="button" class="theme-button">theme</button>108108        </nav>109109    </footer>
photos/index.html +7 −9
@@ -100,16 +100,14 @@100100101101        <!-- ===== MAIN ===== -->102102        <main id="main">103            <nav class="breadcrumb" aria-label="breadcrumb">104                <a href="/garden/">garden</a> <span aria-hidden="true">-></span>105                <a href="/photos/">photos</a>106            </nav>107103108            <header class="page-header">109                <h1><span aria-hidden="true">/</span>photos</h1>104            <header class="page-header page-header--post">105                <p class="page-header-kicker">106                    <a href="/garden/"><span aria-hidden="true">/</span>garden</a>107                </p>108                <h1>Photos</h1>110109                <p class="meta">111                    My favorite pictures. Hover over an image for details, click112                    to view full size.110                    My favorite pictures. Hover over an image for details, click to view full size.113111                </p>114112            </header>115113@@ -628,7 +626,7 @@628626                <a href="/id/">ID</a>629627                <a href="/changelog/">changelog</a>630628                <a href="/privacy/">privacy</a>631                <a href="/feed.xml">feed</a>629                <a href="/feed.xml">RSS</a>632630                <button type="button" class="theme-button">theme</button>633631            </nav>634632        </footer>
photos/jungle-stage/index.html +1 −1
@@ -99,7 +99,7 @@9999            <a href="/id/">ID</a>100100            <a href="/changelog/">changelog</a>101101            <a href="/privacy/">privacy</a>102            <a href="/feed.xml">feed</a>102            <a href="/feed.xml">RSS</a>103103            <button type="button" class="theme-button">theme</button>104104        </nav>105105    </footer>
photos/lake-michigan-swim/index.html +1 −1
@@ -103,7 +103,7 @@103103            <a href="/id/">ID</a>104104            <a href="/changelog/">changelog</a>105105            <a href="/privacy/">privacy</a>106            <a href="/feed.xml">feed</a>106            <a href="/feed.xml">RSS</a>107107            <button type="button" class="theme-button">theme</button>108108        </nav>109109    </footer>
photos/lake-tahoe-boat/index.html +1 −1
@@ -103,7 +103,7 @@103103            <a href="/id/">ID</a>104104            <a href="/changelog/">changelog</a>105105            <a href="/privacy/">privacy</a>106            <a href="/feed.xml">feed</a>106            <a href="/feed.xml">RSS</a>107107            <button type="button" class="theme-button">theme</button>108108        </nav>109109    </footer>
photos/long-exposure-selfie/index.html +1 −1
@@ -103,7 +103,7 @@103103            <a href="/id/">ID</a>104104            <a href="/changelog/">changelog</a>105105            <a href="/privacy/">privacy</a>106            <a href="/feed.xml">feed</a>106            <a href="/feed.xml">RSS</a>107107            <button type="button" class="theme-button">theme</button>108108        </nav>109109    </footer>
photos/neighbor-snail/index.html +1 −1
@@ -103,7 +103,7 @@103103            <a href="/id/">ID</a>104104            <a href="/changelog/">changelog</a>105105            <a href="/privacy/">privacy</a>106            <a href="/feed.xml">feed</a>106            <a href="/feed.xml">RSS</a>107107            <button type="button" class="theme-button">theme</button>108108        </nav>109109    </footer>
photos/ocean-beach/index.html +1 −1
@@ -103,7 +103,7 @@103103            <a href="/id/">ID</a>104104            <a href="/changelog/">changelog</a>105105            <a href="/privacy/">privacy</a>106            <a href="/feed.xml">feed</a>106            <a href="/feed.xml">RSS</a>107107            <button type="button" class="theme-button">theme</button>108108        </nav>109109    </footer>
photos/oracle-park-night/index.html +1 −1
@@ -103,7 +103,7 @@103103            <a href="/id/">ID</a>104104            <a href="/changelog/">changelog</a>105105            <a href="/privacy/">privacy</a>106            <a href="/feed.xml">feed</a>106            <a href="/feed.xml">RSS</a>107107            <button type="button" class="theme-button">theme</button>108108        </nav>109109    </footer>
photos/pine-trees-and-moon/index.html +1 −1
@@ -103,7 +103,7 @@103103            <a href="/id/">ID</a>104104            <a href="/changelog/">changelog</a>105105            <a href="/privacy/">privacy</a>106            <a href="/feed.xml">feed</a>106            <a href="/feed.xml">RSS</a>107107            <button type="button" class="theme-button">theme</button>108108        </nav>109109    </footer>
photos/porch-light/index.html +1 −1
@@ -103,7 +103,7 @@103103            <a href="/id/">ID</a>104104            <a href="/changelog/">changelog</a>105105            <a href="/privacy/">privacy</a>106            <a href="/feed.xml">feed</a>106            <a href="/feed.xml">RSS</a>107107            <button type="button" class="theme-button">theme</button>108108        </nav>109109    </footer>
photos/regatta-lineup/index.html +1 −1
@@ -103,7 +103,7 @@103103            <a href="/id/">ID</a>104104            <a href="/changelog/">changelog</a>105105            <a href="/privacy/">privacy</a>106            <a href="/feed.xml">feed</a>106            <a href="/feed.xml">RSS</a>107107            <button type="button" class="theme-button">theme</button>108108        </nav>109109    </footer>
photos/run-by-the-sea/index.html +1 −1
@@ -102,7 +102,7 @@102102            <a href="/id/">ID</a>103103            <a href="/changelog/">changelog</a>104104            <a href="/privacy/">privacy</a>105            <a href="/feed.xml">feed</a>105            <a href="/feed.xml">RSS</a>106106            <button type="button" class="theme-button">theme</button>107107        </nav>108108    </footer>
photos/slayyyter/index.html +1 −1
@@ -103,7 +103,7 @@103103            <a href="/id/">ID</a>104104            <a href="/changelog/">changelog</a>105105            <a href="/privacy/">privacy</a>106            <a href="/feed.xml">feed</a>106            <a href="/feed.xml">RSS</a>107107            <button type="button" class="theme-button">theme</button>108108        </nav>109109    </footer>
photos/transamerica-pyramid/index.html +1 −1
@@ -103,7 +103,7 @@103103            <a href="/id/">ID</a>104104            <a href="/changelog/">changelog</a>105105            <a href="/privacy/">privacy</a>106            <a href="/feed.xml">feed</a>106            <a href="/feed.xml">RSS</a>107107            <button type="button" class="theme-button">theme</button>108108        </nav>109109    </footer>
photos/white-rose/index.html +1 −1
@@ -103,7 +103,7 @@103103            <a href="/id/">ID</a>104104            <a href="/changelog/">changelog</a>105105            <a href="/privacy/">privacy</a>106            <a href="/feed.xml">feed</a>106            <a href="/feed.xml">RSS</a>107107            <button type="button" class="theme-button">theme</button>108108        </nav>109109    </footer>
photos/wildcat-beach/index.html +1 −1
@@ -103,7 +103,7 @@103103            <a href="/id/">ID</a>104104            <a href="/changelog/">changelog</a>105105            <a href="/privacy/">privacy</a>106            <a href="/feed.xml">feed</a>106            <a href="/feed.xml">RSS</a>107107            <button type="button" class="theme-button">theme</button>108108        </nav>109109    </footer>
posts/index.html +7 −10
@@ -100,17 +100,14 @@100100101101        <!-- ===== MAIN ===== -->102102        <main id="main">103            <nav class="breadcrumb" aria-label="breadcrumb">104                <a href="/blog/">blog</a> <span aria-hidden="true">-></span>105                <a href="/posts/">posts</a>106            </nav>107103108            <header class="page-header">109                <h1><span aria-hidden="true">/</span>posts</h1>104            <header class="page-header page-header--post">105                <p class="page-header-kicker">106                    <a href="/blog/"><span aria-hidden="true">/</span>blog</a>107                </p>108                <h1>Posts</h1>110109                <p class="meta">111                    Short posts. Written on112                    <a href="https://bsky.app/profile/daum.dev">bluesky</a>113                    and shown here.110                    Short posts. Written on <a href="https://bsky.app/profile/daum.dev">bluesky</a> and shown here.114111                </p>115112            </header>116113@@ -133,7 +130,7 @@133130                <a href="/id/">ID</a>134131                <a href="/changelog/">changelog</a>135132                <a href="/privacy/">privacy</a>136                <a href="/feed.xml">feed</a>133                <a href="/feed.xml">RSS</a>137134                <button type="button" class="theme-button">theme</button>138135            </nav>139136        </footer>
privacy/index.html +1 −1
@@ -179,7 +179,7 @@179179                <a href="/id/">ID</a>180180                <a href="/changelog/">changelog</a>181181                <a href="/privacy/">privacy</a>182                <a href="/feed.xml">feed</a>182                <a href="/feed.xml">RSS</a>183183                <button type="button" class="theme-button">theme</button>184184            </nav>185185        </footer>
projects/holonet/index.html +1 −1
@@ -312,7 +312,7 @@312312                <a href="/id/">ID</a>313313                <a href="/changelog/">changelog</a>314314                <a href="/privacy/">privacy</a>315                <a href="/feed.xml">feed</a>315                <a href="/feed.xml">RSS</a>316316                <button type="button" class="theme-button">theme</button>317317            </nav>318318        </footer>
projects/index.html +1 −1
@@ -204,7 +204,7 @@204204                <a href="/id/">ID</a>205205                <a href="/changelog/">changelog</a>206206                <a href="/privacy/">privacy</a>207                <a href="/feed.xml">feed</a>207                <a href="/feed.xml">RSS</a>208208                <button type="button" class="theme-button">theme</button>209209            </nav>210210        </footer>
projects/rhea/index.html +1 −1
@@ -280,7 +280,7 @@280280                <a href="/id/">ID</a>281281                <a href="/changelog/">changelog</a>282282                <a href="/privacy/">privacy</a>283                <a href="/feed.xml">feed</a>283                <a href="/feed.xml">RSS</a>284284                <button type="button" class="theme-button">theme</button>285285            </nav>286286        </footer>
projects/saturn/index.html +1 −1
@@ -547,7 +547,7 @@547547                <a href="/id/">ID</a>548548                <a href="/changelog/">changelog</a>549549                <a href="/privacy/">privacy</a>550                <a href="/feed.xml">feed</a>550                <a href="/feed.xml">RSS</a>551551                <button type="button" class="theme-button">theme</button>552552            </nav>553553        </footer>
ratings/index.html +6 −7
@@ -100,13 +100,12 @@100100101101        <!-- ===== MAIN ===== -->102102        <main id="main">103            <nav class="breadcrumb" aria-label="breadcrumb">104                <a href="/garden/">garden</a> <span aria-hidden="true">-></span>105                <a href="/ratings/">ratings</a>106            </nav>107103108            <header class="page-header">109                <h1><span aria-hidden="true">/</span>ratings</h1>104            <header class="page-header page-header--post">105                <p class="page-header-kicker">106                    <a href="/garden/"><span aria-hidden="true">/</span>garden</a>107                </p>108                <h1>Ratings</h1>110109                <p class="meta">111110                    How I score things in the garden. One number out of five.112111                </p>@@ -261,7 +260,7 @@261260                <a href="/id/">ID</a>262261                <a href="/changelog/">changelog</a>263262                <a href="/privacy/">privacy</a>264                <a href="/feed.xml">feed</a>263                <a href="/feed.xml">RSS</a>265264                <button type="button" class="theme-button">theme</button>266265            </nav>267266        </footer>
scripts/publish.mjsadded +520 −0
@@ -0,0 +1,520 @@1// publishes a finished post page: adds or updates its entry in feed.xml and2// its standard.site record on my pds, so atproto readers (leaflet, pckt, ...)3// can find and follow it. no dependencies, node 18+.4//5//   mise run publish now/sep-2026/index.html             feed + standard.site6//   mise run publish now/sep-2026/index.html --dry-run   show what would change7//8// the page is the source: its h1 is the title, the <time> in its header the9// date, the kicker (/now) the category, the meta description the summary,10// the banner photo the cover, and the <article> the feed content (classes11// dropped, urls made absolute, the header, likes and comments left out).12//13// running it again on the same page is safe. an existing feed entry keeps its14// published date and its summary (those are often hand-written); its title15// and content are replaced and `updated` moves to now, only if they changed.16// a post's record key comes from its date and path, so it always maps to the17// same record, and the page gets a <link rel="site.standard.document"> to it.18//19// publishing to standard.site needs ATPROTO_APP_PASSWORD (a bluesky app20// password). without it the feed is still updated, and a post whose record is21// already on the pds still gets its link tag; nothing is written to the pds.2223import { readFile, writeFile } from "node:fs/promises";24import { createHash } from "node:crypto";2526const SITE = "https://danieldaum.net";27const PDS = "https://home.daum.dev";28const DID = "did:plc:e3z5gj5iyuwgqao562bo4bdf";29const TZ = "America/Los_Angeles";30const FEED = "feed.xml";31const MAX_BLOB = 1_000_000;32const ASSETS = "https://assets.danieldaum.net";33const COVER_RESIZE = "width=1600,quality=80,format=webp";3435// the publication all my posts belong to. its key is fixed, so the old36// records on my pds stay the same ones37const PUBLICATION = {38    rkey: tid(Date.parse("2026-01-01T00:00:00Z") * 1000, 0),39    name: "daniel daum",40    description: "everything i write, in one place",41    icon: "assets/favicon/android-chrome-512x512.png",42};43const PUBLICATION_URI = `at://${DID}/site.standard.publication/${PUBLICATION.rkey}`;44const WELL_KNOWN = ".well-known/site.standard.publication";4546// ---------------------------------------------------------------------------47// the page4849async function readPost(arg) {50    const dir = arg.replace(/^\/+/, "").replace(/index\.html$/, "").replace(/\/*$/, "");51    if (!dir) throw new Error("give the post's page, e.g. now/sep-2026/index.html");52    const file = `${dir}/index.html`;53    const html = await readFile(file, "utf8");5455    // commented-out markup (e.g. the template's optional banner) isn't the post56    const article = /<article>([\s\S]*?)<\/article>/.exec(html)?.[1]?.replace(/<!--[\s\S]*?-->/g, "");57    if (!article) throw new Error(`${file} has no <article>`);58    const header = /<header class="page-header[^"]*">([\s\S]*?)<\/header>/.exec(article)?.[1] ?? "";5960    const post = {61        file,62        html,63        path: `/${dir}/`,64        title: text(/<h1>([\s\S]*?)<\/h1>/.exec(header)?.[1] ?? ""),65        date: /<time datetime="(\d{4}-\d{2}-\d{2})"/.exec(header)?.[1],66        category: text(/<p class="page-header-kicker">([\s\S]*?)<\/p>/.exec(header)?.[1] ?? "").replace(/^\//, ""),67        description: decode(/<meta\s+name="description"\s+content="([^"]*)"/.exec(html)?.[1] ?? ""),68        banner: banner(article),69        content: feedContent(article),70    };71    if (!post.title) throw new Error(`${file}: no <h1> in the post header`);72    if (!post.date) throw new Error(`${file}: no <time datetime="YYYY-MM-DD"> in the post header`);73    // left over from internal/template.html74    const leftover = ["ONE SENTENCE SUMMARY", "Post Title", "Section heading", "Body text."].find((t) => (article + post.description).includes(t));75    if (leftover) throw new Error(`${file}: still has the template's "${leftover}"`);76    return post;77}7879// the banner photo, if the post has one: a single photo is a link80// (<a class="post-banner">), a row of them a <figure class="post-banner">.81// the cover is the first photo; only a linked one becomes the feed's figure,82// since a row's <figure> is already in the article body83function banner(article) {84    const m = /<(a|figure) class="post-banner[^"]*"[^>]*>([\s\S]*?)<\/\1>/.exec(article);85    const img = m && /<img\b([^>]*)>/.exec(m[2])?.[1];86    if (!img) return null;87    return { src: attr(img, "src"), alt: attr(img, "alt") ?? "", linked: m[1] === "a" };88}8990// the article as feed html: banner as a figure, then the body. no header, no91// likes and comments, no classes, absolute urls, one block per line. <pre>92// keeps its whitespace93function feedContent(article) {94    const pres = [];95    let body = article96        .replace(/<!--[\s\S]*?-->/g, "")97        .replace(/<a class="post-banner[^"]*"[^>]*>[\s\S]*?<\/a>/, "")98        .replace(/<header class="page-header[^"]*">[\s\S]*?<\/header>/, "")99        .replace(/<section[^>]*\bpost-social\b[^>]*>[\s\S]*?<\/section>/, "")100        .replace(/<\/?section[^>]*>/g, "")101        .replace(/<pre\b[\s\S]*?<\/pre>/g, (pre) => `\u0000${pres.push(pre) - 1}\u0000`);102103    body = cleanTags(body)104        .replace(/\s+/g, " ")105        .replace(/\s*(<(?:p|h[1-6]|ul|ol|li|div|figure|figcaption|blockquote|hr|table|tr|\u0000)\b)/g, "\n$1")106        .replace(/\s*(\u0000\d+\u0000)/g, "\n$1")107        .replace(/\s*\n\s*/g, "\n")108        .replace(/ +(<\/(?:p|h[1-6]|li|figcaption|blockquote)>)/g, "$1")109        .replace(/(<(?:p|h[1-6]|li|figcaption|blockquote)\b[^>]*>) +/g, "$1")110        .replace(/(<\/(?:p|li|ul|ol|div|figure|figcaption|blockquote)>)\s+(?=<\/)/g, "$1")111        .replace(/(<figure>|<img\b[^>]*\/>)\s*(?=<img\b)/g, "$1\n")112        .replace(/\s+(<\/figure>)/g, "$1")113        .trim();114    body = body.replace(/\u0000(\d+)\u0000/g, (_, i) => cleanTags(pres[i]));115116    const b = banner(article);117    const figure = b?.linked ? `<figure>\n<img src="${esc(absolute(b.src))}" alt="${esc(b.alt)}" /></figure>\n` : "";118    return figure + body;119}120121// keeps only href, src, alt, title and datetime, makes them absolute, and122// unwraps the spans left with nothing on them (e.g. code highlighting)123function cleanTags(html) {124    return html125        .replace(/<([a-z][a-z0-9]*)\b([^>]*?)(\/?)>/gi, (_, tag, attrs, selfClose) => {126            const kept = [...attrs.matchAll(/([a-z-]+)\s*=\s*"([^"]*)"/gi)]127                .filter(([, name]) => ["href", "src", "alt", "title", "datetime"].includes(name.toLowerCase()))128                .map(([, name, value]) => ` ${name}="${["href", "src"].includes(name) ? absolute(value) : value}"`)129                .join("");130            return `<${tag}${kept}${selfClose ? " /" : ""}>`;131        })132        .replace(/<span>([\s\S]*?)<\/span>/g, "$1")133        .split(/(<\/?[a-z][^>]*>)/i)134        .map((part, i) => (i % 2 ? part : part.replace(/&(?![a-z]+;|#\d+;|#x[0-9a-f]+;)/gi, "&amp;").replace(/>/g, "&gt;")))135        .join("");136}137138function absolute(url) {139    return /^\/(?!\/)/.test(url) ? SITE + url : url;140}141142function attr(attrs, name) {143    const raw = new RegExp(`\\b${name}="([^"]*)"`).exec(attrs)?.[1];144    return raw === undefined ? undefined : decode(raw);145}146147function text(html) {148    return decode(html.replace(/<[^>]*>/g, "").replace(/\s+/g, " ").trim());149}150151// ---------------------------------------------------------------------------152// feed.xml153154// entries inside <!-- --> (hidden ones) are left alone155function liveEntries(xml) {156    const comments = [...xml.matchAll(/<!--[\s\S]*?-->/g)].map((m) => [m.index, m.index + m[0].length]);157    return [...xml.matchAll(/[ \t]*<entry>[\s\S]*?<\/entry>\n?/g)]158        .filter((m) => !comments.some(([from, to]) => m.index >= from && m.index < to))159        .map((m) => ({160            start: m.index,161            end: m.index + m[0].length,162            xml: m[0],163            id: /<id>([^<]*)<\/id>/.exec(m[0])?.[1],164            link: /<link rel="alternate"[^>]*href="([^"]*)"/.exec(m[0])?.[1],165            published: /<published>([^<]*)<\/published>/.exec(m[0])?.[1],166            updated: /<updated>([^<]*)<\/updated>/.exec(m[0])?.[1],167        }));168}169170// an entry's id never changes once it's out, even if it isn't the url171// written the way it would be today (e.g. no trailing slash)172function renderEntry(post, { id, published, updated, summary }) {173    const url = SITE + post.path;174    const lines = [175        `  <entry>`,176        `    <title>${xmlEsc(post.title)}</title>`,177        `    <link rel="alternate" type="text/html" href="${url}" />`,178        `    <id>${id ?? url}</id>`,179        `    <published>${published}</published>`,180        `    <updated>${updated}</updated>`,181        post.category ? `    <category term="${xmlEsc(post.category)}" />` : null,182        summary ? `    <summary type="text">${summary}</summary>` : null,183        `    <content type="html"><![CDATA[`,184        ...indent(post.content.replaceAll("]]>", "]]]]><![CDATA[>"), "      "),185        `    ]]></content>`,186        `  </entry>`,187    ];188    return lines.filter((l) => l !== null).join("\n") + "\n";189}190191// indents each line, except inside <pre>, where it would change the code192function indent(html, by) {193    let inPre = false;194    return html.split("\n").map((line) => {195        const out = inPre ? line : by + line;196        const opens = (line.match(/<pre\b/g) || []).length;197        const closes = (line.match(/<\/pre>/g) || []).length;198        if (opens !== closes) inPre = opens > closes;199        return out;200    });201}202203// the new feed, and what happened: "added", "updated" or "unchanged"204function updateFeed(xml, post, now) {205    const url = SITE + post.path;206    const entries = liveEntries(xml);207    const slash = (u) => (u ?? "").replace(/\/?$/, "/");208    const existing = entries.find((e) => slash(e.id) === url || slash(e.link) === url);209210    let next;211    let result;212    if (existing) {213        const summary = /<summary type="text">([\s\S]*?)<\/summary>/.exec(existing.xml)?.[1];214        const same = renderEntry(post, { id: existing.id, published: existing.published, updated: existing.updated, summary });215        if (same === existing.xml.replace(/\n?$/, "\n")) return { xml, result: "unchanged" };216        const entry = renderEntry(post, { id: existing.id, published: existing.published, updated: now, summary });217        next = xml.slice(0, existing.start) + entry + xml.slice(existing.end);218        result = "updated";219    } else {220        const published = localTime(post.date, "09:00");221        const entry = renderEntry(post, { published, updated: published, summary: xmlEsc(post.description) }) + "\n";222        // newest first: before the first entry published earlier, else last223        const before = entries.find((e) => Date.parse(e.published) < Date.parse(published));224        const at = before ? before.start : xml.lastIndexOf("</feed>");225        next = xml.slice(0, at) + entry + xml.slice(at);226        result = "added";227    }228229    // the feed's own <updated>: its newest entry's230    const newest = liveEntries(next)231        .map((e) => e.updated)232        .sort((a, b) => Date.parse(b) - Date.parse(a))[0];233    next = next.replace(/(<icon>[^<]*<\/icon>\s*)<updated>[^<]*<\/updated>/, `$1<updated>${newest}</updated>`);234    return { xml: next, result };235}236237// "2026-09-03", "09:00" -> 2026-09-03T09:00:00-07:00, in my timezone238function localTime(date, time) {239    const guess = new Date(`${date}T${time}:00Z`);240    const name = new Intl.DateTimeFormat("en-US", { timeZone: TZ, timeZoneName: "longOffset" })241        .formatToParts(guess)242        .find((p) => p.type === "timeZoneName").value;243    const offset = name === "GMT" ? "+00:00" : name.replace("GMT", "");244    return `${date}T${time}:00${offset}`;245}246247function nowLocal() {248    const d = new Date();249    const parts = Object.fromEntries(250        new Intl.DateTimeFormat("en-CA", {251            timeZone: TZ, year: "numeric", month: "2-digit", day: "2-digit",252            hour: "2-digit", minute: "2-digit", hourCycle: "h23",253        }).formatToParts(d).map((p) => [p.type, p.value]),254    );255    return localTime(`${parts.year}-${parts.month}-${parts.day}`, `${parts.hour}:${parts.minute}`);256}257258// ---------------------------------------------------------------------------259// standard.site260261async function documentRecord(post, session) {262    const record = {263        $type: "site.standard.document",264        site: PUBLICATION_URI,265        path: post.path,266        title: post.title,267        publishedAt: `${post.date}T12:00:00.000Z`,268    };269    if (post.description) record.description = post.description;270    if (post.category) record.tags = [post.category];271    const cover = await coverBlob(post.banner?.src, session);272    if (cover) record.coverImage = cover;273    return record;274}275276function documentKey(post) {277    return tid(Date.parse(`${post.date}T12:00:00Z`) * 1000, clockIdFor(post.path));278}279280// the banner, if it's under the 1MB limit. if it's bigger, a smaller copy281// from cloudflare's image resizing (the original on r2 is left alone)282async function coverBlob(url, session) {283    if (!url) return null;284    const candidates = [absolute(url)];285    if (candidates[0].startsWith(`${ASSETS}/`)) {286        candidates.push(candidates[0].replace(`${ASSETS}/`, `${ASSETS}/cdn-cgi/image/${COVER_RESIZE}/`));287    }288    for (const candidate of candidates) {289        const res = await fetch(candidate);290        if (!res.ok) continue;291        const bytes = new Uint8Array(await res.arrayBuffer());292        if (bytes.length <= MAX_BLOB) return blob(bytes, res.headers.get("content-type") || "image/webp", session);293    }294    console.warn(`  no cover: ${url} is over 1MB and couldn't be resized`);295    return null;296}297298// a blob ref for these bytes. uploaded only if the record changes: atproto299// blob ids are a hash of the bytes, worked out here first300function blob(bytes, mimeType, session) {301    const ref = { $type: "blob", ref: { $link: cid(bytes) }, mimeType, size: bytes.length };302    session.blobs.push({ ref, bytes });303    return ref;304}305306async function getRecord(collection, rkey) {307    const url = new URL("/xrpc/com.atproto.repo.getRecord", PDS);308    url.searchParams.set("repo", DID);309    url.searchParams.set("collection", collection);310    url.searchParams.set("rkey", rkey);311    const res = await fetch(url);312    return res.ok ? (await res.json()).value : null;313}314315// create or update a record, only when it differs from what's there. the316// pds may settle on another mime type for a blob, so blobs compare by id317async function putIfChanged(collection, rkey, record, session) {318    const existing = await getRecord(collection, rkey);319    const blobsMatch = (a, b) => canonical(withoutMime(a)) === canonical(withoutMime(b));320    if (existing && blobsMatch(existing, record)) {321        session.blobs.length = 0;322        return false;323    }324    if (session.dryRun) {325        session.blobs.length = 0;326        return true;327    }328    for (const { ref, bytes } of session.blobs) {329        const res = await xrpc("com.atproto.repo.uploadBlob", session, bytes, ref.mimeType);330        const uploaded = (await res.json()).blob;331        if (uploaded.ref.$link !== ref.ref.$link) throw new Error(`blob id mismatch for ${ref.ref.$link}`);332        ref.mimeType = uploaded.mimeType;333    }334    session.blobs.length = 0;335    await xrpc("com.atproto.repo.putRecord", session, { repo: DID, collection, rkey, record });336    return true;337}338339function withoutMime(value) {340    if (Array.isArray(value)) return value.map(withoutMime);341    if (value && typeof value === "object") {342        const out = {};343        for (const [k, v] of Object.entries(value)) {344            if (!(k === "mimeType" && value.$type === "blob")) out[k] = withoutMime(v);345        }346        return out;347    }348    return value;349}350351// <link rel="site.standard.document"> in the page's <head>, added or fixed352function withLinkTag(html, uri) {353    const tag = `<link rel="site.standard.document" href="${uri}" />`;354    if (/<link rel="site\.standard\.document"[^>]*>/.test(html)) {355        return html.replace(/<link rel="site\.standard\.document"[^>]*>/, tag);356    }357    return html.replace(/\n([ \t]*)<\/head>/, (_, indent) => `\n${indent}    ${tag}\n${indent}</head>`);358}359360// ---------------------------------------------------------------------------361// atproto plumbing362363async function login() {364    const res = await fetch(new URL("/xrpc/com.atproto.server.createSession", PDS), {365        method: "POST",366        headers: { "content-type": "application/json" },367        body: JSON.stringify({ identifier: DID, password: process.env.ATPROTO_APP_PASSWORD }),368    });369    if (!res.ok) throw new Error(`login failed: ${res.status} ${await res.text()}`);370    return { jwt: (await res.json()).accessJwt, blobs: [] };371}372373async function xrpc(method, session, body, contentType = "application/json") {374    const res = await fetch(new URL(`/xrpc/${method}`, PDS), {375        method: "POST",376        headers: { "content-type": contentType, authorization: `Bearer ${session.jwt}` },377        body: contentType === "application/json" ? JSON.stringify(body) : body,378    });379    if (!res.ok) throw new Error(`${method}: ${res.status} ${await res.text()}`);380    return res;381}382383// a record key: microseconds since 1970 and a 10-bit clock id, as 13 base32384// characters. same inputs, same key385function tid(micros, clockId) {386    const alphabet = "234567abcdefghijklmnopqrstuvwxyz";387    let n = (BigInt(micros) << 10n) | BigInt(clockId & 1023);388    let out = "";389    for (let i = 0; i < 13; i++) {390        out = alphabet[Number(n & 31n)] + out;391        n >>= 5n;392    }393    return out;394}395396// keeps two posts on the same day apart397function clockIdFor(path) {398    return createHash("sha256").update(path).digest().readUInt16BE(0) & 1023;399}400401// cidv1, raw codec, sha2-256, base32: how atproto names blobs402function cid(bytes) {403    const digest = createHash("sha256").update(bytes).digest();404    const raw = Uint8Array.from([0x01, 0x55, 0x12, 0x20, ...digest]);405    const alphabet = "abcdefghijklmnopqrstuvwxyz234567";406    let bits = 0;407    let value = 0;408    let out = "b";409    for (const byte of raw) {410        value = (value << 8) | byte;411        bits += 8;412        while (bits >= 5) {413            out += alphabet[(value >>> (bits - 5)) & 31];414            bits -= 5;415        }416    }417    if (bits > 0) out += alphabet[(value << (5 - bits)) & 31];418    return out;419}420421// json with sorted keys, so two records compare equal whatever their key order422function canonical(value) {423    if (Array.isArray(value)) return `[${value.map(canonical).join(",")}]`;424    if (value && typeof value === "object") {425        return `{${Object.keys(value).sort().map((k) => `${JSON.stringify(k)}:${canonical(value[k])}`).join(",")}}`;426    }427    return JSON.stringify(value);428}429430function decode(s) {431    return s432        .replace(/&#(\d+);/g, (_, n) => String.fromCodePoint(Number(n)))433        .replace(/&#x([0-9a-f]+);/gi, (_, n) => String.fromCodePoint(parseInt(n, 16)))434        .replace(/&apos;/g, "'")435        .replace(/&quot;/g, '"')436        .replace(/&lt;/g, "<")437        .replace(/&gt;/g, ">")438        .replace(/&mdash;/g, "—")439        .replace(/&ndash;/g, "–")440        .replace(/&rarr;/g, "→")441        .replace(/&nbsp;/g, " ")442        .replace(/&amp;/g, "&");443}444445function esc(s) {446    return String(s).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");447}448449function xmlEsc(s) {450    return String(s).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");451}452453// ---------------------------------------------------------------------------454// run455456const args = process.argv.slice(2);457const dryRun = args.includes("--dry-run");458const target = args.find((a) => !a.startsWith("--"));459if (!target) {460    console.error("usage: mise run publish <page>/index.html [--dry-run]");461    process.exit(1);462}463464const post = await readPost(target);465console.log(`${post.title} (${post.path}, ${post.date}${post.category ? `, #${post.category}` : ""})`);466467// feed468const feed = await readFile(FEED, "utf8");469const { xml, result } = updateFeed(feed, post, nowLocal());470if (dryRun) {471    const entry = liveEntries(xml).find((e) => e.link === SITE + post.path);472    console.log(`\nfeed: would be ${result}`);473    if (result !== "unchanged") console.log(entry.xml);474} else {475    if (xml !== feed) await writeFile(FEED, xml);476    console.log(`feed: ${result}`);477}478479// standard.site. without a password nothing is written to the pds, but a480// record that's already there and up to date still gets its local half: the481// .well-known file and the page's link tag482const canWrite = Boolean(process.env.ATPROTO_APP_PASSWORD);483const session = canWrite && !dryRun ? { ...(await login()), dryRun } : { blobs: [], dryRun: true };484const would = dryRun ? "would be " : "";485486const icon = await readFile(PUBLICATION.icon);487const publication = {488    $type: "site.standard.publication",489    url: SITE,490    name: PUBLICATION.name,491    description: PUBLICATION.description,492    icon: blob(icon, "image/png", session),493};494const publicationChanged = await putIfChanged("site.standard.publication", PUBLICATION.rkey, publication, session);495if (publicationChanged) console.log(`standard.site: publication record ${canWrite || dryRun ? `${would}updated` : "differs from the pds"}`);496const publicationLive = !publicationChanged || (canWrite && !dryRun) || dryRun;497498// the other half of the publication's proof: the domain points back at it499const wellKnown = await readFile(WELL_KNOWN, "utf8").catch(() => "");500if (publicationLive && wellKnown !== PUBLICATION_URI) {501    if (!dryRun) await writeFile(WELL_KNOWN, PUBLICATION_URI);502    console.log(`standard.site: ${WELL_KNOWN} ${would}written`);503}504505const rkey = documentKey(post);506const uri = `at://${DID}/site.standard.document/${rkey}`;507const record = await documentRecord(post, session);508const changed = await putIfChanged("site.standard.document", rkey, record, session);509if (changed && !canWrite && !dryRun) {510    console.log(`standard.site: ${uri} is missing or out of date on the pds. set ATPROTO_APP_PASSWORD to publish it`);511    process.exit(0);512}513console.log(`standard.site: ${uri} ${changed ? (dryRun ? "would be published" : "published") : "unchanged"}`);514if (dryRun && changed) console.log(JSON.stringify(record, null, 2));515516const html = withLinkTag(post.html, uri);517if (html !== post.html) {518    if (!dryRun) await writeFile(post.file, html);519    console.log(`page: ${dryRun ? "would get" : "added"} its <link rel="site.standard.document">`);520}
shows/all-her-fault/index.html +1 −1
@@ -100,7 +100,7 @@100100            <a href="/id/">ID</a>101101            <a href="/changelog/">changelog</a>102102            <a href="/privacy/">privacy</a>103            <a href="/feed.xml">feed</a>103            <a href="/feed.xml">RSS</a>104104            <button type="button" class="theme-button">theme</button>105105        </nav>106106    </footer>
shows/batman-caped-crusader-season-1/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
shows/batman-caped-crusader-season-2/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
shows/common-side-effects/index.html +1 −1
@@ -100,7 +100,7 @@100100            <a href="/id/">ID</a>101101            <a href="/changelog/">changelog</a>102102            <a href="/privacy/">privacy</a>103            <a href="/feed.xml">feed</a>103            <a href="/feed.xml">RSS</a>104104            <button type="button" class="theme-button">theme</button>105105        </nav>106106    </footer>
shows/frieren-beyond-journeys-end/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
shows/ghost-in-the-shell-stand-alone-complex/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
shows/index.html +8 −6
@@ -54,12 +54,14 @@54545555    <!-- ===== MAIN ===== -->5656    <main id="main">57        <nav class="breadcrumb" aria-label="breadcrumb"><a href="/garden/">garden</a> <span aria-hidden="true">-></span> <a href="/shows/">shows</a></nav>585759        <header class="page-header">60            <h1><span aria-hidden="true">/</span>shows</h1>61            <p class="meta">The shows I've watched, newest year first. Click a cover to read my note on it.<br />62                Ratings are a work in progress.58        <header class="page-header page-header--post">59            <p class="page-header-kicker">60                <a href="/garden/"><span aria-hidden="true">/</span>garden</a>61            </p>62            <h1>Shows</h1>63            <p class="meta">64                The shows I've watched, newest year first. Click a cover to read my note on it.<br /> Ratings are a work in progress.6365            </p>6466        </header>6567@@ -340,7 +342,7 @@340342            <a href="/id/">ID</a>341343            <a href="/changelog/">changelog</a>342344            <a href="/privacy/">privacy</a>343            <a href="/feed.xml">feed</a>345            <a href="/feed.xml">RSS</a>344346            <button type="button" class="theme-button">theme</button>345347        </nav>346348    </footer>
shows/invincible/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
shows/neon-genesis-evangelion/index.html +1 −1
@@ -100,7 +100,7 @@100100            <a href="/id/">ID</a>101101            <a href="/changelog/">changelog</a>102102            <a href="/privacy/">privacy</a>103            <a href="/feed.xml">feed</a>103            <a href="/feed.xml">RSS</a>104104            <button type="button" class="theme-button">theme</button>105105        </nav>106106    </footer>
shows/pantheon/index.html +1 −1
@@ -100,7 +100,7 @@100100            <a href="/id/">ID</a>101101            <a href="/changelog/">changelog</a>102102            <a href="/privacy/">privacy</a>103            <a href="/feed.xml">feed</a>103            <a href="/feed.xml">RSS</a>104104            <button type="button" class="theme-button">theme</button>105105        </nav>106106    </footer>
shows/pluribus/index.html +1 −1
@@ -96,7 +96,7 @@9696            <a href="/id/">ID</a>9797            <a href="/changelog/">changelog</a>9898            <a href="/privacy/">privacy</a>99            <a href="/feed.xml">feed</a>99            <a href="/feed.xml">RSS</a>100100            <button type="button" class="theme-button">theme</button>101101        </nav>102102    </footer>
shows/severance/index.html +1 −1
@@ -100,7 +100,7 @@100100            <a href="/id/">ID</a>101101            <a href="/changelog/">changelog</a>102102            <a href="/privacy/">privacy</a>103            <a href="/feed.xml">feed</a>103            <a href="/feed.xml">RSS</a>104104            <button type="button" class="theme-button">theme</button>105105        </nav>106106    </footer>
shows/slow-horses/index.html +1 −1
@@ -101,7 +101,7 @@101101            <a href="/id/">ID</a>102102            <a href="/changelog/">changelog</a>103103            <a href="/privacy/">privacy</a>104            <a href="/feed.xml">feed</a>104            <a href="/feed.xml">RSS</a>105105            <button type="button" class="theme-button">theme</button>106106        </nav>107107    </footer>
shows/widows-bay/index.html +1 −1
@@ -97,7 +97,7 @@9797            <a href="/id/">ID</a>9898            <a href="/changelog/">changelog</a>9999            <a href="/privacy/">privacy</a>100            <a href="/feed.xml">feed</a>100            <a href="/feed.xml">RSS</a>101101            <button type="button" class="theme-button">theme</button>102102        </nav>103103    </footer>