saturn
- 187 commits
- 2 branches
- 0 tags
- updated
- CI 2/2
feat: add bsky posts
SignedGitea couldn't verify the signature.
Showing 25 changed files with 2286 additions and 75 deletions.
.gitea/workflows/deploy.yaml
+1 −1
@@ -31,7 +31,7 @@ jobs:3131 run: |3232 mkdir dist3333 git ls-files -z \34 | grep -zv -e '^internal/' -e '^workers/' -e '^\.gitea/' -e '^\.gitignore$' -e '^mise\.toml$' \34 | grep -zv -e '^internal/' -e '^scripts/' -e '^workers/' -e '^\.gitea/' -e '^\.gitignore$' -e '^mise\.toml$' \3535 | xargs -0 cp --parents -t dist36363737 - name: Deploy to Cloudflare Pages
.gitea/workflows/sync-posts.yamladded
+39 −0
@@ -0,0 +1,39 @@1name: Sync23# run by hand (from the gitea app too): copies my bluesky posts into the4# html, publishes my writing to standard.site, and commits the result. the5# push is made with SYNC_TOKEN, a personal access token, because pushes made6# with the built-in actions token don't trigger other workflows, and Mirror7# and Deploy has to run after this.8on:9 workflow_dispatch:1011jobs:12 sync:13 runs-on: ubuntu-latest14 steps:15 - name: Checkout16 uses: actions/checkout@v417 with:18 token: ${{ secrets.SYNC_TOKEN }}1920 - name: Sync posts21 run: |22 node --version23 node scripts/sync-posts.mjs2425 - name: Publish to standard.site26 env:27 ATPROTO_APP_PASSWORD: ${{ secrets.ATPROTO_APP_PASSWORD }}28 run: node scripts/sync-standard.mjs2930 - name: Commit and push31 run: |32 if git diff --quiet; then33 echo "nothing changed"34 exit 035 fi36 git config user.name "${{ gitea.actor }}"37 git config user.email "${{ gitea.actor }}@noreply.git.danieldaum.net"38 git commit -am "chore: sync"39 git push
.well-known/atproto-didadded
+1 −0
@@ -0,0 +1 @@1did:plc:e3z5gj5iyuwgqao562bo4bdf
.well-known/site.standard.publicationadded
+1 −0
@@ -0,0 +1 @@1at://did:plc:e3z5gj5iyuwgqao562bo4bdf/site.standard.publication/3mbd3542k2222
README.md
+42 −0
@@ -0,0 +1,42 @@1# saturn23my personal site, live at [danieldaum.net](https://danieldaum.net). mostly handwritten html and css, no build step. pushing to main deploys it.45## run it locally67```8mise install9mise run serve10```1112then open localhost:8080.1314## post on bluesky15161. post on bluesky172. gitea → actions → sync → run1819it shows up on the home page, /blog/ and /posts/ a minute or two later. `git pull` before working on the site again.2021## new blog post22231. `git pull`242. copy `internal/template.html` to `blog/<name>/index.html` (or `now/<name>/` for a now page)253. add it to the top of the writing list in `blog/index.html`264. add it to recent writing on the home page, with the word count275. add it to `feed.xml`286. if it's a now page, update `/now/` too297. push, then gitea → actions → sync → run. that puts it on standard.site3031reviews go in the same writing list, tagged #game, #movie, #show, #book or #album. they don't go in the feed.3233## new photos34351. upload the photo to r2, in `img/photos/`362. add a tile and a lightbox to `photos/index.html`, newest first373. copy a photo page to `photos/<name>/`384. fix the newer / older links on the photos next to it3940## good to know4142- `internal/` never gets deployed. `internal/styles.html` shows every style on the site.
_headers
+6 −0
@@ -1,2 +1,8 @@11/feed.xml22 Content-Type: application/atom+xml; charset=utf-834/.well-known/atproto-did5 Content-Type: text/plain; charset=utf-867/.well-known/site.standard.publication8 Content-Type: text/plain; charset=utf-8
about/index.html
+1 −0
@@ -95,6 +95,7 @@9595 name="twitter:image:alt"9696 content="daniel daum - software engineer, avid reader, aspiring game dev - danieldaum.net"9797 />98 <link rel="site.standard.document" href="at://did:plc:e3z5gj5iyuwgqao562bo4bdf/site.standard.document/3mu5cslx622sk" />9899 </head>99100100101 <body>
blog/index.html
+46 −56
@@ -9,7 +9,7 @@99 />1010 <meta1111 http-equiv="Content-Security-Policy"12 content="default-src 'self'; style-src 'self'; font-src 'self'; img-src 'self' https://assets.danieldaum.net; media-src 'self' https://assets.danieldaum.net;"12 content="default-src 'self'; style-src 'self'; font-src 'self'; img-src 'self' https://assets.danieldaum.net https://pds.danieldaum.net https://cdn.bsky.app https://video.bsky.app https://video.cdn.bsky.app; media-src 'self' https://assets.danieldaum.net;"1313 />1414 <meta name="referrer" content="strict-origin-when-cross-origin" />1515 <link@@ -118,65 +118,55 @@118118 <header class="page-header">119119 <h1><span aria-hidden="true">/</span>blog</h1>120120 <p class="meta">121 Things I've written — posts, notes, project logs, and122 now pages121 Things I've written — short posts, long-form writing,122 and notes on what I've played, watched and read.123123 </p>124124 </header>125125126 <!-- LONGFORM -->127 <section aria-label="longform writing">128 <table class="table">129 <thead>130 <tr>131 <th scope="col">title</th>132 <th scope="col" class="table-col-date">date</th>133 <th scope="col" class="table-col-tag">tags</th>134 </tr>135 </thead>136 <tbody>137 <tr class="table-row">138 <td>139 <a class="table-title" href="/now/sep-2026/"140 >Wake Me Up When September Ends</a141 >142 </td>143 <td class="table-date">144 <time datetime="2026-09-03"145 >3 September 2026</time146 >147 </td>148 <td class="table-tag">#now</td>149 </tr>150151 <tr class="table-row">152 <td>153 <a class="table-title" href="/about/"154 >Let Me Introduce Myself</a155 >156 </td>157 <td class="table-date">158 <time datetime="2026-08-28"159 >28 August 2026</time160 >161 </td>162 <td class="table-tag">#about</td>163 </tr>126 <!-- POSTS: filled by scripts/sync-posts.mjs -->127 <section aria-labelledby="blog-posts">128 <h2 class="section-label" id="blog-posts">posts</h2>129 <!-- posts:highlight -->130 <a class="post-card" href="/posts/#3mxffhxusws2o">131 <span class="post-card-meta">132 <span>↻ reposted</span>133 <time datetime="2026-10-08T21:24:37.374Z">8 Oct 2026, 2:24 pm</time>134 </span>135 <span class="post-card-text">jenn schiffer 😎: i just keep getting hotter and smarter</span>136 </a>137 <!-- /posts:highlight -->138 <p class="post-feed-more caps"><a href="/posts/">all posts →</a></p>139 </section>164140165 <tr class="table-row">166 <td>167 <a class="table-title" href="/now/jan-2026/"168 >My First Now Page</a169 >170 </td>171 <td class="table-date">172 <time datetime="2026-01-21"173 >21 January 2026</time174 >175 </td>176 <td class="table-tag">#now</td>177 </tr>178 </tbody>179 </table>141 <!-- WRITING, newest first: long-form posts and, later, notes142 (reviews). a note row links to the media page and is tagged143 #game, #movie, #show, #book or #album. notes never go in144 feed.xml -->145 <section aria-labelledby="blog-writing">146 <h2 class="section-label" id="blog-writing">writing</h2>147 <ol class="archive">148 <li>149 <a class="archive-row" href="/now/sep-2026/">150 <span class="archive-title">Wake Me Up When September Ends</span>151 <span class="archive-tag">#now</span>152 <time class="archive-date" datetime="2026-09-03">03 Sep 26</time>153 </a>154 </li>155 <li>156 <a class="archive-row" href="/about/">157 <span class="archive-title">Let Me Introduce Myself</span>158 <span class="archive-tag">#about</span>159 <time class="archive-date" datetime="2026-08-28">28 Aug 26</time>160 </a>161 </li>162 <li>163 <a class="archive-row" href="/now/jan-2026/">164 <span class="archive-title">My First Now Page</span>165 <span class="archive-tag">#now</span>166 <time class="archive-date" datetime="2026-01-21">21 Jan 26</time>167 </a>168 </li>169 </ol>180170 </section>181171 </main>182172
global.css
+349 −1
@@ -898,6 +898,249 @@ article:has(> .page-header--post) {898898 fill: currentColor;899899}900900901/*============================*/902/* components - posts feed */903/*============================*/904905/* written by scripts/sync-posts.mjs from my bluesky posts. a quiet log:906 dashed rules between posts, grey meta row, lime only on links */907.post-item {908 display: flex;909 flex-direction: column;910 gap: 0.75rem;911 padding: 1.5rem 0;912 scroll-margin-top: 1rem;913}914915.post-item + .post-item {916 border-top: 1px dashed var(--borders);917}918919/* arriving from a permalink: the post sits in the panel colour */920.post-item:target {921 margin-inline: -1rem;922 padding-inline: 1rem;923 background-color: var(--surface);924 box-shadow: inset 2px 0 0 var(--accent);925}926927/* time left, reply right; both grey until hovered, like the footer */928.post-item-meta {929 display: flex;930 flex-wrap: wrap;931 justify-content: space-between;932 align-items: baseline;933 gap: 0.25rem 1rem;934 margin: 0;935 font-size: 0.75rem;936 letter-spacing: 0.08em;937}938939.post-item-time,940.post-item-reply {941 color: var(--text-secondary);942 border-bottom: 1px solid transparent;943 transition:944 color 150ms ease,945 border-bottom-color 150ms ease;946}947948.post-item-time:hover,949.post-item-reply:hover {950 color: var(--accent);951 border-bottom-color: var(--accent);952}953954.post-item-body {955 margin: 0;956}957958/* one image keeps its shape */959.post-item-media img,960.post-item-video img {961 width: auto;962 height: auto;963 max-height: 26rem;964 border: 1px solid var(--borders);965}966967/* two or more: a cropped grid, two across */968.post-item-media--grid {969 display: grid;970 grid-template-columns: 1fr 1fr;971 gap: 0.4rem;972}973974.post-item-media--grid img {975 width: 100%;976 height: 100%;977 aspect-ratio: 1;978 object-fit: cover;979}980981/* video: bluesky's thumbnail with a play mark, links out to watch */982.post-item-video {983 position: relative;984 align-self: flex-start;985}986987.post-item-video::after {988 content: "\25B6";989 position: absolute;990 inset: 50% auto auto 50%;991 translate: -50% -50%;992 display: grid;993 place-items: center;994 width: 3rem;995 height: 3rem;996 padding-left: 0.2rem;997 border: 1px solid var(--borders);998 background-color: color-mix(in srgb, var(--background-dark) 80%, transparent);999 color: var(--text-headings);1000 font-size: 1rem;1001 transition:1002 color 150ms ease,1003 border-color 150ms ease;1004}10051006.post-item-video:hover::after {1007 color: var(--accent);1008 border-color: var(--accent);1009}10101011/* link cards and quoted posts */1012.post-item-card {1013 display: flex;1014 flex-direction: column;1015 gap: 0.3rem;1016 padding: 0.875rem 1rem;1017 border: 1px solid var(--borders);1018 background-color: var(--surface);1019 transition: border-color 150ms ease;1020}10211022.post-item-card:hover {1023 border-color: var(--accent);1024}10251026.post-item-card-title {1027 color: var(--text-headings);1028 font-size: 0.9375rem;1029}10301031.post-item-card-desc,1032.post-item-quote-text {1033 color: var(--text-body);1034 font-size: 0.85rem;1035 line-height: 1.55;1036 display: -webkit-box;1037 -webkit-box-orient: vertical;1038 -webkit-line-clamp: 2;1039 overflow: hidden;1040}10411042.post-item-quote-text {1043 -webkit-line-clamp: 4;1044}10451046.post-item-card-meta {1047 color: var(--text-secondary);1048 font-size: 0.75rem;1049 letter-spacing: 0.04em;1050}10511052.post-item-quote .post-item-card-meta {1053 color: var(--text-headings);1054}10551056.post-item-quote .post-item-card-meta span {1057 color: var(--text-secondary);1058}10591060.post-item-note {1061 margin: 0;1062 font-size: 0.85rem;1063}10641065/* a repost: small label before the time, the original post in a panel */1066.post-item-label {1067 margin-right: 0.5rem;1068 color: var(--text-secondary);1069}10701071.post-item-label::before {1072 content: "\21BB\00A0";1073}10741075.post-item-repost {1076 display: flex;1077 flex-direction: column;1078 gap: 0.75rem;1079 padding: 1rem;1080 border: 1px solid var(--borders);1081 background-color: var(--surface);1082}10831084.post-item-repost > .post-item-card-meta {1085 margin: 0;1086 color: var(--text-headings);1087}10881089.post-item-repost > .post-item-card-meta span {1090 color: var(--text-secondary);1091}10921093/* cards inside the panel step back down to the page colour */1094.post-item-repost .post-item-card {1095 background-color: var(--background-dark);1096}10971098/* "all posts ->" under the post card on / and /blog/ */1099.post-feed-more {1100 margin: 1rem 0 0;1101 font-size: 0.85rem;1102}11031104/* the newest post on / and /blog/: a small panel, set apart from the1105 lists around it */1106.post-card {1107 display: flex;1108 flex-direction: column;1109 gap: 0.5rem;1110 padding: 1rem 1.25rem;1111 border: 1px solid var(--borders);1112 background-color: var(--surface);1113 transition: border-color 150ms ease;1114}11151116.post-card:hover {1117 border-color: var(--accent);1118}11191120.post-card-meta {1121 display: flex;1122 flex-wrap: wrap;1123 justify-content: space-between;1124 gap: 0.25rem 1rem;1125}11261127.post-card-meta,1128.post-card-extra {1129 font-size: 0.72rem;1130 letter-spacing: 0.08em;1131 color: var(--text-secondary);1132}11331134.post-card-text {1135 color: var(--text-headings);1136 font-size: 0.9375rem;1137 line-height: 1.6;1138 display: -webkit-box;1139 -webkit-box-orient: vertical;1140 -webkit-line-clamp: 4;1141 overflow: hidden;1142}11439011144/*============================*/9021145/* components - pager */9031146/*============================*/@@ -1199,6 +1442,103 @@ article:has(> .page-header--post) + .pager {11991442 }12001443}120114441445/*============================*/1446/* components - archive list */1447/*============================*/14481449/* /blog/'s index: one line per entry, title . . . . tag date. no header row1450 and no rules; the dotted leader carries the eye to the date */1451.archive {1452 list-style: none;1453 margin: 0;1454 padding: 0;1455}14561457.archive li {1458 margin: 0;1459}14601461.archive-row {1462 display: flex;1463 align-items: baseline;1464 align-items: last baseline;1465 gap: 0 0.75rem;1466 padding: 0.45rem 0;1467 color: var(--text-secondary);1468}14691470/* the leader: an empty flex item whose dotted bottom border sits on the1471 baseline, under the last line of a wrapped title */1472.archive-row::after {1473 content: "";1474 order: 1;1475 flex: 1 1 2rem;1476 min-width: 2rem;1477 border-bottom: 1px dotted var(--borders);1478 transition: border-color 150ms ease;1479}14801481.archive-title {1482 order: 0;1483 color: var(--text-headings);1484 font-size: 0.9rem;1485 line-height: 1.45;1486 transition: color 150ms ease;1487}14881489.archive-tag,1490.archive-date {1491 flex: none;1492 font-size: 0.75rem;1493 letter-spacing: 0.08em;1494 white-space: nowrap;1495}14961497/* fixed width so the dates line up whatever the tag */1498.archive-tag {1499 order: 2;1500 width: 7ch;1501}15021503.archive-date {1504 order: 3;1505 font-variant-numeric: tabular-nums;1506}15071508.archive-row:hover .archive-title {1509 color: var(--accent);1510}15111512.archive-row:hover::after {1513 border-bottom-color: var(--text-secondary);1514}15151516/* writing, then notes */1517.archive + .section-label {1518 margin-top: 1.75rem;1519}15201521/* phones: title on its own line, tag and date under it, no leader */1522@media (max-width: 600px) {1523 .archive-row {1524 flex-wrap: wrap;1525 gap: 0.15rem 0.75rem;1526 padding: 0.55rem 0;1527 }15281529 .archive-row::after {1530 display: none;1531 }15321533 .archive-title {1534 flex: 0 0 100%;1535 }15361537 .archive-tag {1538 width: auto;1539 }1540}154112021542/*============================*/12031543/* components - rating */12041544/*============================*/@@ -2131,7 +2471,15 @@ footer nav a,21312471.social-title,21322472.comment-author,21332473.comment-time,2134.comment-link {2474.comment-link,2475.post-item-time,2476.post-item-reply,2477.post-item-label,2478.archive-title,2479.archive-tag,2480.archive-date,2481.post-card-meta,2482.post-card-extra {21352483 text-transform: uppercase;21362484}21372485
index.html
+18 −2
@@ -9,7 +9,7 @@99 />1010 <meta1111 http-equiv="Content-Security-Policy"12 content="default-src 'self'; style-src 'self'; font-src 'self'; img-src 'self' https://assets.danieldaum.net; media-src 'self' https://assets.danieldaum.net;"12 content="default-src 'self'; style-src 'self'; font-src 'self'; img-src 'self' https://assets.danieldaum.net https://pds.danieldaum.net https://cdn.bsky.app https://video.bsky.app https://video.cdn.bsky.app; media-src 'self' https://assets.danieldaum.net;"1313 />1414 <meta name="referrer" content="strict-origin-when-cross-origin" />1515 <link@@ -117,7 +117,8 @@117117 <main id="main">118118 <header class="page-header">119119 <h1>120 Software engineer.<br />Avid reader.<br />Aspiring game dev.120 building software.<br />reading books.<br />learning game121 dev.121122 </h1>122123 <p class="meta">123124 Building backend services in Oakland, CA. Currently learning@@ -125,6 +126,21 @@125126 </p>126127 </header>127128129 <!-- LATEST POST: filled by scripts/sync-posts.mjs -->130 <section aria-labelledby="home-post">131 <h2 class="section-label" id="home-post">latest post</h2>132 <!-- posts:highlight -->133 <a class="post-card" href="/posts/#3mxffhxusws2o">134 <span class="post-card-meta">135 <span>↻ reposted</span>136 <time datetime="2026-10-08T21:24:37.374Z">8 Oct 2026, 2:24 pm</time>137 </span>138 <span class="post-card-text">jenn schiffer 😎: i just keep getting hotter and smarter</span>139 </a>140 <!-- /posts:highlight -->141 <p class="post-feed-more caps"><a href="/posts/">all posts →</a></p>142 </section>143128144 <!-- RECENT WRITING -->129145 <section aria-label="recent writing">130146 <h2 class="section-label">recent writing</h2>
internal/styles.html
+96 −1
@@ -137,6 +137,7 @@137137 <li><a href="#type">type</a></li>138138 <li><a href="#text">text</a></li>139139 <li><a href="#post">post</a></li>140 <li><a href="#posts">posts</a></li>140141 <li><a href="#wayfinding">wayfinding</a></li>141142 <li><a href="#listings">listings</a></li>142143 <li><a href="#projects">projects</a></li>@@ -500,6 +501,80 @@500501 </div>501502 </section>502503504 <!-- ===================== -->505 <!-- POSTS -->506 <!-- ===================== -->507 <section class="guide-section" id="posts" aria-label="posts">508 <h2>posts</h2>509510 <div class="demo">511 <p class="demo-label">.post-item: written by scripts/sync-posts.mjs between <!-- posts:all --> markers, never by hand</p>512 <article class="post-item" id="demo-post">513 <p class="post-item-meta">514 <a class="post-item-time" href="#demo-post"><time datetime="2026-10-08T21:01:00Z">8 Oct 2026, 2:01 pm</time></a>515 <a class="post-item-reply" href="#posts">reply on bluesky</a>516 </p>517 <p class="post-item-body">a short post with a <a href="#posts">link</a>, a <a href="#posts">#tag</a> and a <a href="#posts">@mention</a>.<br />line breaks are kept.</p>518 <a class="post-item-card" href="#posts">519 <span class="post-item-card-title">daniel daum - blog</span>520 <span class="post-item-card-desc">daniel daum's blog — everything i write, in one place</span>521 <span class="post-item-card-meta">danieldaum.net</span>522 </a>523 </article>524 </div>525526 <div class="demo">527 <p class="demo-label">.post-card: the newest post on / and /blog/, via <!-- posts:highlight -->, then .post-feed-more</p>528 <a class="post-card" href="#posts">529 <span class="post-card-meta">530 <span>@danieldaum.net</span>531 <time datetime="2026-10-08T21:24:00Z">8 Oct 2026, 2:24 pm</time>532 </span>533 <span class="post-card-text">the post's own text, sentence case, four lines at most.</span>534 <span class="post-card-extra">2 images</span>535 </a>536 <p class="post-feed-more caps"><a href="#posts">all posts →</a></p>537 </div>538539 <div class="demo">540 <p class="demo-label">.post-item-media (one image keeps its shape) / .post-item-media--grid (two or more, square crops)</p>541 <article class="post-item">542 <div class="post-item-media post-item-media--grid">543 <img src="https://assets.danieldaum.net/img/photos/regatta-lineup.webp" alt="rowing boats lined up for a regatta" loading="lazy" />544 <img src="https://assets.danieldaum.net/img/photos/lake-tahoe-boat.webp" alt="boat on lake tahoe" loading="lazy" />545 </div>546 </article>547 </div>548549 <div class="demo">550 <p class="demo-label">.post-item--repost: .post-item-label in the meta row, the original post in .post-item-repost</p>551 <article class="post-item post-item--repost">552 <p class="post-item-meta">553 <span><span class="post-item-label">reposted</span> <a class="post-item-time" href="#posts"><time datetime="2026-10-08T21:30:00Z">8 Oct 2026, 2:30 pm</time></a></span>554 <a class="post-item-reply" href="#posts">reply on bluesky</a>555 </p>556 <div class="post-item-repost">557 <p class="post-item-card-meta">someone <span>@someone.example</span></p>558 <p class="post-item-body">someone else's post, with its <a href="#posts">links</a> and media.</p>559 </div>560 </article>561 </div>562563 <div class="demo">564 <p class="demo-label">.post-item-quote, .post-item-video (bluesky's thumbnail, links out), .post-item-note (fallback when the appview lookup fails)</p>565 <article class="post-item">566 <a class="post-item-card post-item-quote" href="#posts">567 <span class="post-item-card-meta">someone <span>@someone.example</span></span>568 <span class="post-item-quote-text">the quoted post's text, clamped to four lines.</span>569 </a>570 <a class="post-item-video" href="#posts">571 <img src="https://assets.danieldaum.net/img/photos/wildcat-beach.webp" alt="video, plays on bluesky" width="400" height="400" loading="lazy" />572 </a>573 <p class="post-item-note"><a href="#posts">quoting →</a></p>574 </article>575 </div>576 </section>577503578 <!-- ===================== -->504579 <!-- WAYFINDING -->505580 <!-- ===================== -->@@ -561,7 +636,27 @@561636 </div>562637563638 <div class="demo">564 <p class="demo-label">.table, title / date / tag</p>639 <p class="demo-label">.archive: /blog/'s list. dotted leader, tag column fixed width, dd mmm yy dates; stacks under 600px</p>640 <ol class="archive">641 <li>642 <a class="archive-row" href="#listings">643 <span class="archive-title">Wake Me Up When September Ends</span>644 <span class="archive-tag">#now</span>645 <time class="archive-date" datetime="2026-09-03">03 Sep 26</time>646 </a>647 </li>648 <li>649 <a class="archive-row" href="#listings">650 <span class="archive-title">Hard-Boiled Wonderland and the End of the World</span>651 <span class="archive-tag">#book</span>652 <time class="archive-date" datetime="2026-10-08">08 Oct 26</time>653 </a>654 </li>655 </ol>656 </div>657658 <div class="demo">659 <p class="demo-label">.table, title / date / tag (garden, ratings)</p>565660 <table class="table">566661 <thead>567662 <tr>
mise.toml
+10 −0
@@ -6,3 +6,13 @@ node = "latest"66[tasks.serve]77description = "Run the site in live-reload mode"88run = "five-server --port=8080"910# mise run sync-posts11[tasks.sync-posts]12description = "Copy my bluesky posts from my pds into the html"13run = "node scripts/sync-posts.mjs"1415# ATPROTO_APP_PASSWORD=... mise run sync-standard16[tasks.sync-standard]17description = "Publish my writing to standard.site"18run = "node scripts/sync-standard.mjs"
now/jan-2026/index.html
+1 −0
@@ -36,6 +36,7 @@3636 <meta name="twitter:description" content="daniel daum's now page - oakland based software engineer" />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" />39 <link rel="site.standard.document" href="at://did:plc:e3z5gj5iyuwgqao562bo4bdf/site.standard.document/3mcwmoxyw224h" />3940</head>40414142<body>
now/sep-2026/index.html
+1 −0
@@ -36,6 +36,7 @@3636 <meta name="twitter:description" content="daniel daum's now page - oakland based software engineer" />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" />39 <link rel="site.standard.document" href="at://did:plc:e3z5gj5iyuwgqao562bo4bdf/site.standard.document/3mumfm4po22sr" />3940</head>40414142<body>
photos/berkeley-aquatic-park/index.html
+4 −0
@@ -74,6 +74,10 @@7474 </article>75757676 <nav class="pager" aria-label="photo navigation">77 <a class="pager-link pager-prev" href="/photos/slayyyter/" rel="prev">78 <span class="pager-label">← newer</span>79 <span class="pager-title">Slayyyter</span>80 </a>7781 <a class="pager-link pager-next" href="/photos/neighbor-snail/" rel="next">7882 <span class="pager-label">older →</span>7983 <span class="pager-title">Neighbor Snail</span>
photos/index.html
+164 −14
@@ -130,67 +130,133 @@130130131131 <!-- newest first. tile id = file name; its lightbox is #view-<file name> -->132132 <section class="photo-wall" aria-label="photo wall">133 <figure class="photo-tile photo-tile--new" id="berkeley-aquatic-park">133 <figure class="photo-tile photo-tile--new" id="jungle-stage">134 <a class="photo-link" href="#view-jungle-stage" aria-label="view full size: Greek Theater">135 <img src="https://assets.danieldaum.net/img/photos/jungle-stage.webp" alt="jungle playing the greek theatre at dusk, the crowd below lit red and the stage lit green" loading="lazy" />136 </a>137 <figcaption class="photo-caption">138 <span class="photo-caption-name">Greek Theater <span class="new-tag">New!</span></span>139 <span class="photo-caption-location">Berkeley, California</span>140 <span class="photo-caption-date">7 October 2026</span>141 </figcaption>142 </figure>143144 <figure class="photo-tile photo-tile--new" id="long-exposure-selfie">145 <a class="photo-link" href="#view-long-exposure-selfie" aria-label="view full size: A Long Exposure">146 <img src="https://assets.danieldaum.net/img/photos/long-exposure-selfie.webp" alt="a double-exposure selfie of two friends at the greek theatre before the show" loading="lazy" />147 </a>148 <figcaption class="photo-caption">149 <span class="photo-caption-name">A Long Exposure <span class="new-tag">New!</span></span>150 <span class="photo-caption-location">Berkeley, California</span>151 <span class="photo-caption-date">7 October 2026</span>152 </figcaption>153 </figure>154155 <figure class="photo-tile photo-tile--new" id="run-by-the-sea">156 <a class="photo-link" href="#view-run-by-the-sea" aria-label="view full size: Run by the Sea">157 <img src="https://assets.danieldaum.net/img/photos/run-by-the-sea.webp" alt="runners on a grassy trail above the ocean, one in a red shirt in front" loading="lazy" />158 </a>159 <figcaption class="photo-caption">160 <span class="photo-caption-name">Run by the Sea <span class="new-tag">New!</span></span>161 <span class="photo-caption-location">Santa Cruz, California</span>162 <span class="photo-caption-date">4 October 2026</span>163 </figcaption>164 </figure>165166 <figure class="photo-tile photo-tile--new" id="porch-light">167 <a class="photo-link" href="#view-porch-light" aria-label="view full size: Porch Light">168 <img src="https://assets.danieldaum.net/img/photos/porch-light.webp" alt="a band on a small stage under a row of spotlights, the crowd in silhouette" loading="lazy" />169 </a>170 <figcaption class="photo-caption">171 <span class="photo-caption-name">Porch Light <span class="new-tag">New!</span></span>172 <span class="photo-caption-location">San Francisco, California</span>173 <span class="photo-caption-date">30 September 2026</span>174 </figcaption>175 </figure>176177 <figure class="photo-tile photo-tile--new" id="ocean-beach">178 <a class="photo-link" href="#view-ocean-beach" aria-label="view full size: Ocean Beach">179 <img src="https://assets.danieldaum.net/img/photos/ocean-beach.webp" alt="ocean beach looking north toward the headlands, waves on one side and a ledge of sand on the other" loading="lazy" />180 </a>181 <figcaption class="photo-caption">182 <span class="photo-caption-name">Ocean Beach <span class="new-tag">New!</span></span>183 <span class="photo-caption-location">Ocean Beach, California</span>184 <span class="photo-caption-date">14 September 2026</span>185 </figcaption>186 </figure>187188 <figure class="photo-tile photo-tile--new" id="slayyyter">189 <a class="photo-link" href="#view-slayyyter" aria-label="view full size: Slayyyter">190 <img src="https://assets.danieldaum.net/img/photos/slayyyter.webp" alt="slayyyter on a theater stage through haze and spotlights, a packed crowd in front" loading="lazy" />191 </a>192 <figcaption class="photo-caption">193 <span class="photo-caption-name">Slayyyter <span class="new-tag">New!</span></span>194 <span class="photo-caption-location">Oakland, California</span>195 <span class="photo-caption-date">9 September 2026</span>196 </figcaption>197 </figure>198199 <figure class="photo-tile" id="berkeley-aquatic-park">134200 <a class="photo-link" href="#view-berkeley-aquatic-park" aria-label="view full size: Berkeley Aquatic Park">135201 <img src="https://assets.danieldaum.net/img/photos/berkeley-aquatic-park.webp" alt="berkeley aquatic park" loading="lazy" />136202 </a>137203 <figcaption class="photo-caption">138 <span class="photo-caption-name">Berkeley Aquatic Park <span class="new-tag">New!</span></span>204 <span class="photo-caption-name">Berkeley Aquatic Park</span>139205 <span class="photo-caption-location">Berkeley, California</span>140206 <span class="photo-caption-date">21 August 2026</span>141207 </figcaption>142208 </figure>143209144 <figure class="photo-tile photo-tile--new" id="neighbor-snail">210 <figure class="photo-tile" id="neighbor-snail">145211 <a class="photo-link" href="#view-neighbor-snail" aria-label="view full size: Neighbor Snail">146212 <img src="https://assets.danieldaum.net/img/photos/neighbor-snail.webp" alt="a blue snail in my neighborhood on a plant" loading="lazy" />147213 </a>148214 <figcaption class="photo-caption">149 <span class="photo-caption-name">Neighbor Snail <span class="new-tag">New!</span></span>215 <span class="photo-caption-name">Neighbor Snail</span>150216 <span class="photo-caption-location">Oakland, California</span>151217 <span class="photo-caption-date">14 August 2026</span>152218 </figcaption>153219 </figure>154220155 <figure class="photo-tile photo-tile--new" id="fire-truck">221 <figure class="photo-tile" id="fire-truck">156222 <a class="photo-link" href="#view-fire-truck" aria-label="view full size: Fire Truck">157223 <img src="https://assets.danieldaum.net/img/photos/fire-truck.webp" alt="a fire truck at night in san francisco" loading="lazy" />158224 </a>159225 <figcaption class="photo-caption">160 <span class="photo-caption-name">Fire Truck <span class="new-tag">New!</span></span>226 <span class="photo-caption-name">Fire Truck</span>161227 <span class="photo-caption-location">San Francisco, California</span>162228 <span class="photo-caption-date">12 August 2026</span>163229 </figcaption>164230 </figure>165231166 <figure class="photo-tile photo-tile--new" id="oracle-park-night">232 <figure class="photo-tile" id="oracle-park-night">167233 <a class="photo-link" href="#view-oracle-park-night" aria-label="view full size: Oracle Park">168234 <img src="https://assets.danieldaum.net/img/photos/oracle-park-night.webp" alt="oracle park at night" loading="lazy" />169235 </a>170236 <figcaption class="photo-caption">171 <span class="photo-caption-name">Oracle Park <span class="new-tag">New!</span></span>237 <span class="photo-caption-name">Oracle Park</span>172238 <span class="photo-caption-location">San Francisco, California</span>173239 <span class="photo-caption-date">12 August 2026</span>174240 </figcaption>175241 </figure>176242177 <figure class="photo-tile photo-tile--new" id="lake-michigan-swim">243 <figure class="photo-tile" id="lake-michigan-swim">178244 <a class="photo-link" href="#view-lake-michigan-swim" aria-label="view full size: Swim Prep">179245 <img src="https://assets.danieldaum.net/img/photos/lake-michigan-swim.webp" alt="getting ready for a swim in lake michigan" loading="lazy" />180246 </a>181247 <figcaption class="photo-caption">182 <span class="photo-caption-name">Swim Prep <span class="new-tag">New!</span></span>248 <span class="photo-caption-name">Swim Prep</span>183249 <span class="photo-caption-location">Lake Michigan</span>184250 <span class="photo-caption-date">4 August 2026</span>185251 </figcaption>186252 </figure>187253188 <figure class="photo-tile photo-tile--new" id="blond-raccoon">254 <figure class="photo-tile" id="blond-raccoon">189255 <a class="photo-link" href="#view-blond-raccoon" aria-label="view full size: Blond Raccoon">190256 <img src="https://assets.danieldaum.net/img/photos/blond-raccoon.webp" alt="a blond raccoon eating chips on doorsteps in oakland" loading="lazy" />191257 </a>192258 <figcaption class="photo-caption">193 <span class="photo-caption-name">Blond Raccoon <span class="new-tag">New!</span></span>259 <span class="photo-caption-name">Blond Raccoon</span>194260 <span class="photo-caption-location">Oakland, California</span>195261 <span class="photo-caption-date">10 July 2026</span>196262 </figcaption>@@ -287,6 +353,90 @@287353288354 <!-- ===== LIGHTBOXES ===== -->289355 <!-- one per photo, same order as the wall; arrows wrap around -->356 <div class="lightbox" id="view-jungle-stage" role="dialog" aria-label="Greek Theater, full size" tabindex="-1">357 <a class="lightbox-backdrop" href="#jungle-stage" tabindex="-1" aria-hidden="true"></a>358 <figure class="lightbox-content">359 <img src="https://assets.danieldaum.net/img/photos/jungle-stage.webp" alt="jungle playing the greek theatre at dusk, the crowd below lit red and the stage lit green" loading="lazy" />360 <figcaption class="lightbox-meta">361 <p class="lightbox-meta-name">Greek Theater</p>362 <a class="lightbox-details" href="/photos/jungle-stage/">details →</a>363 </figcaption>364 </figure>365 <a class="lightbox-nav lightbox-prev" href="#view-bart-blurry" aria-label="previous photo">‹</a>366 <a class="lightbox-nav lightbox-next" href="#view-long-exposure-selfie" aria-label="next photo">›</a>367 <a class="lightbox-close" href="#jungle-stage" aria-label="close full size photo">×</a>368 </div>369370 <div class="lightbox" id="view-long-exposure-selfie" role="dialog" aria-label="A Long Exposure, full size" tabindex="-1">371 <a class="lightbox-backdrop" href="#long-exposure-selfie" tabindex="-1" aria-hidden="true"></a>372 <figure class="lightbox-content">373 <img src="https://assets.danieldaum.net/img/photos/long-exposure-selfie.webp" alt="a double-exposure selfie of two friends at the greek theatre before the show" loading="lazy" />374 <figcaption class="lightbox-meta">375 <p class="lightbox-meta-name">A Long Exposure</p>376 <a class="lightbox-details" href="/photos/long-exposure-selfie/">details →</a>377 </figcaption>378 </figure>379 <a class="lightbox-nav lightbox-prev" href="#view-jungle-stage" aria-label="previous photo">‹</a>380 <a class="lightbox-nav lightbox-next" href="#view-run-by-the-sea" aria-label="next photo">›</a>381 <a class="lightbox-close" href="#long-exposure-selfie" aria-label="close full size photo">×</a>382 </div>383384 <div class="lightbox" id="view-run-by-the-sea" role="dialog" aria-label="Run by the Sea, full size" tabindex="-1">385 <a class="lightbox-backdrop" href="#run-by-the-sea" tabindex="-1" aria-hidden="true"></a>386 <figure class="lightbox-content">387 <img src="https://assets.danieldaum.net/img/photos/run-by-the-sea.webp" alt="runners on a grassy trail above the ocean, one in a red shirt in front" loading="lazy" />388 <figcaption class="lightbox-meta">389 <p class="lightbox-meta-name">Run by the Sea</p>390 <a class="lightbox-details" href="/photos/run-by-the-sea/">details →</a>391 </figcaption>392 </figure>393 <a class="lightbox-nav lightbox-prev" href="#view-long-exposure-selfie" aria-label="previous photo">‹</a>394 <a class="lightbox-nav lightbox-next" href="#view-porch-light" aria-label="next photo">›</a>395 <a class="lightbox-close" href="#run-by-the-sea" aria-label="close full size photo">×</a>396 </div>397398 <div class="lightbox" id="view-porch-light" role="dialog" aria-label="Porch Light, full size" tabindex="-1">399 <a class="lightbox-backdrop" href="#porch-light" tabindex="-1" aria-hidden="true"></a>400 <figure class="lightbox-content">401 <img src="https://assets.danieldaum.net/img/photos/porch-light.webp" alt="a band on a small stage under a row of spotlights, the crowd in silhouette" loading="lazy" />402 <figcaption class="lightbox-meta">403 <p class="lightbox-meta-name">Porch Light</p>404 <a class="lightbox-details" href="/photos/porch-light/">details →</a>405 </figcaption>406 </figure>407 <a class="lightbox-nav lightbox-prev" href="#view-run-by-the-sea" aria-label="previous photo">‹</a>408 <a class="lightbox-nav lightbox-next" href="#view-ocean-beach" aria-label="next photo">›</a>409 <a class="lightbox-close" href="#porch-light" aria-label="close full size photo">×</a>410 </div>411412 <div class="lightbox" id="view-ocean-beach" role="dialog" aria-label="Ocean Beach, full size" tabindex="-1">413 <a class="lightbox-backdrop" href="#ocean-beach" tabindex="-1" aria-hidden="true"></a>414 <figure class="lightbox-content">415 <img src="https://assets.danieldaum.net/img/photos/ocean-beach.webp" alt="ocean beach looking north toward the headlands, waves on one side and a ledge of sand on the other" loading="lazy" />416 <figcaption class="lightbox-meta">417 <p class="lightbox-meta-name">Ocean Beach</p>418 <a class="lightbox-details" href="/photos/ocean-beach/">details →</a>419 </figcaption>420 </figure>421 <a class="lightbox-nav lightbox-prev" href="#view-porch-light" aria-label="previous photo">‹</a>422 <a class="lightbox-nav lightbox-next" href="#view-slayyyter" aria-label="next photo">›</a>423 <a class="lightbox-close" href="#ocean-beach" aria-label="close full size photo">×</a>424 </div>425426 <div class="lightbox" id="view-slayyyter" role="dialog" aria-label="Slayyyter, full size" tabindex="-1">427 <a class="lightbox-backdrop" href="#slayyyter" tabindex="-1" aria-hidden="true"></a>428 <figure class="lightbox-content">429 <img src="https://assets.danieldaum.net/img/photos/slayyyter.webp" alt="slayyyter on a theater stage through haze and spotlights, a packed crowd in front" loading="lazy" />430 <figcaption class="lightbox-meta">431 <p class="lightbox-meta-name">Slayyyter</p>432 <a class="lightbox-details" href="/photos/slayyyter/">details →</a>433 </figcaption>434 </figure>435 <a class="lightbox-nav lightbox-prev" href="#view-ocean-beach" aria-label="previous photo">‹</a>436 <a class="lightbox-nav lightbox-next" href="#view-berkeley-aquatic-park" aria-label="next photo">›</a>437 <a class="lightbox-close" href="#slayyyter" aria-label="close full size photo">×</a>438 </div>439290440 <div class="lightbox" id="view-berkeley-aquatic-park" role="dialog" aria-label="Berkeley Aquatic Park, full size" tabindex="-1">291441 <a class="lightbox-backdrop" href="#berkeley-aquatic-park" tabindex="-1" aria-hidden="true"></a>292442 <figure class="lightbox-content">@@ -296,7 +446,7 @@296446 <a class="lightbox-details" href="/photos/berkeley-aquatic-park/">details →</a>297447 </figcaption>298448 </figure>299 <a class="lightbox-nav lightbox-prev" href="#view-bart-blurry" aria-label="previous photo">‹</a>449 <a class="lightbox-nav lightbox-prev" href="#view-slayyyter" aria-label="previous photo">‹</a>300450 <a class="lightbox-nav lightbox-next" href="#view-neighbor-snail" aria-label="next photo">›</a>301451 <a class="lightbox-close" href="#berkeley-aquatic-park" aria-label="close full size photo">×</a>302452 </div>@@ -479,7 +629,7 @@479629 </figcaption>480630 </figure>481631 <a class="lightbox-nav lightbox-prev" href="#view-farm-forest" aria-label="previous photo">‹</a>482 <a class="lightbox-nav lightbox-next" href="#view-berkeley-aquatic-park" aria-label="next photo">›</a>632 <a class="lightbox-nav lightbox-next" href="#view-jungle-stage" aria-label="next photo">›</a>483633 <a class="lightbox-close" href="#bart-blurry" aria-label="close full size photo">×</a>484634 </div>485635 </main>
photos/jungle-stage/index.htmladded
+111 −0
@@ -0,0 +1,111 @@1<!doctype html>2<html lang="en">34<head>5 <meta charset="UTF-8" />6 <meta name="viewport" content="width=device-width, initial-scale=1.0" />7 <meta name="description" content="Greek Theater, a photo by daniel daum" />8 <meta http-equiv="Content-Security-Policy"9 content="default-src 'self'; style-src 'self'; font-src 'self'; img-src 'self' https://assets.danieldaum.net; media-src 'self' https://assets.danieldaum.net;" />10 <meta name="referrer" content="strict-origin-when-cross-origin" />11 <link rel="preload" href="/assets/fonts/ioskeleymono/IoskeleyMono-Regular.woff2" as="font" type="font/woff2" crossorigin />12 <link rel="preload" href="/assets/fonts/ioskeleymono/IoskeleyMono-Bold.woff2" as="font" type="font/woff2" crossorigin />13 <link rel="preload" href="/assets/fonts/ioskeleymono/IoskeleyMono-SemiBold.woff2" as="font" type="font/woff2" crossorigin />14 <link rel="preconnect" href="https://assets.danieldaum.net" />15 <link rel="stylesheet" href="/global.css" />16 <link rel="icon" type="image/png" sizes="32x32" href="/assets/favicon/favicon-32x32.png" />17 <link rel="icon" type="image/png" sizes="16x16" href="/assets/favicon/favicon-16x16.png" />18 <link rel="apple-touch-icon" sizes="180x180" href="/assets/favicon/apple-touch-icon.png" />19 <link rel="manifest" href="/assets/favicon/site.webmanifest" />20 <link rel="alternate" type="application/atom+xml" title="daniel daum" href="https://danieldaum.net/feed.xml" />21 <title>daniel daum - Greek Theater</title>2223 <!-- link previews show the photo itself -->24 <meta property="og:type" content="article" />25 <meta property="og:site_name" content="daniel daum" />26 <meta property="og:title" content="daniel daum - Greek Theater" />27 <meta property="og:description" content="Greek Theater, a photo by daniel daum" />28 <meta property="og:url" content="https://danieldaum.net/photos/jungle-stage/" />29 <meta property="og:image" content="https://assets.danieldaum.net/img/photos/jungle-stage.webp" />30 <meta property="og:image:alt" content="jungle playing the greek theatre at dusk, the crowd below lit red and the stage lit green" />3132 <meta name="twitter:card" content="summary_large_image" />33 <meta name="twitter:title" content="daniel daum - Greek Theater" />34 <meta name="twitter:description" content="Greek Theater, a photo by daniel daum" />35 <meta name="twitter:image" content="https://assets.danieldaum.net/img/photos/jungle-stage.webp" />36 <meta name="twitter:image:alt" content="jungle playing the greek theatre at dusk, the crowd below lit red and the stage lit green" />37</head>3839<body>40 <a class="skip-link" href="#main">skip to content</a>4142 <!-- ===== HEADER ===== -->43 <header class="site-header">44 <a class="site-name" href="/">Daniel Daum</a>45 <nav aria-label="main navigation">46 <a href="/">home</a>47 <a href="/about/">about</a>48 <a href="/now/">now</a>49 <a href="/blog/">blog</a>50 <a href="/projects/">projects</a>51 <a href="/garden/">garden</a>52 </nav>53 </header>5455 <!-- ===== MAIN ===== -->56 <main id="main">57 <nav class="breadcrumb" aria-label="breadcrumb"><a href="/garden/">garden</a> <span aria-hidden="true">-></span> <a href="/photos/">photos</a></nav>5859 <article class="photo-entry" id="photo">60 <a class="photo-entry-link" href="#full" aria-label="view full size: Greek Theater">61 <img src="https://assets.danieldaum.net/img/photos/jungle-stage.webp" alt="jungle playing the greek theatre at dusk, the crowd below lit red and the stage lit green" fetchpriority="high" />62 </a>6364 <div class="entry-heading">65 <h1>Greek Theater</h1>66 <ul class="entry-meta">67 <li><time datetime="2026-10-07">7 October 2026</time></li>68 <li>Berkeley, California</li>69 <li>iPhone 16 Pro · Main 24mm ƒ/1.78 · 12MP · ISO 64 · 0EV</li>70 <li>MOOD: PORTRA 800-S</li>71 </ul>72 <!-- optional: a <p> about the photo, or a "used in" list of posts with it as their banner -->73 </div>74 </article>7576 <nav class="pager" aria-label="photo navigation">77 <a class="pager-link pager-next" href="/photos/long-exposure-selfie/" rel="next">78 <span class="pager-label">older →</span>79 <span class="pager-title">A Long Exposure</span>80 </a>81 </nav>8283 <!-- ===== LIGHTBOX ===== -->84 <div class="lightbox" id="full" role="dialog" aria-label="Greek Theater, full size" tabindex="-1">85 <a class="lightbox-backdrop" href="#photo" tabindex="-1" aria-hidden="true"></a>86 <figure class="lightbox-content">87 <img src="https://assets.danieldaum.net/img/photos/jungle-stage.webp" alt="jungle playing the greek theatre at dusk, the crowd below lit red and the stage lit green" loading="lazy" />88 <figcaption class="lightbox-meta">89 <p class="lightbox-meta-name">Greek Theater</p>90 </figcaption>91 </figure>92 <a class="lightbox-close" href="#photo" aria-label="close full size photo">×</a>93 </div>94 </main>9596 <!-- ===== FOOTER ===== -->97 <footer>98 <nav aria-label="site links">99 <p aria-hidden="true">//</p>100 <a href="mailto:daniel@danieldaum.net">email</a>101 <a href="https://git.danieldaum.net/" aria-label="git (opens in new tab)" target="_blank"102 rel="noopener noreferrer">git</a>103 <a href="/pgp.asc" aria-label="PGP public key (516E97FF)">PGP</a>104 <a href="/changelog/">changelog</a>105 <a href="/privacy/">privacy</a>106 <a href="/feed.xml">feed</a>107 </nav>108 </footer>109</body>110111</html>
photos/long-exposure-selfie/index.htmladded
+115 −0
@@ -0,0 +1,115 @@1<!doctype html>2<html lang="en">34<head>5 <meta charset="UTF-8" />6 <meta name="viewport" content="width=device-width, initial-scale=1.0" />7 <meta name="description" content="A Long Exposure, a photo by daniel daum" />8 <meta http-equiv="Content-Security-Policy"9 content="default-src 'self'; style-src 'self'; font-src 'self'; img-src 'self' https://assets.danieldaum.net; media-src 'self' https://assets.danieldaum.net;" />10 <meta name="referrer" content="strict-origin-when-cross-origin" />11 <link rel="preload" href="/assets/fonts/ioskeleymono/IoskeleyMono-Regular.woff2" as="font" type="font/woff2" crossorigin />12 <link rel="preload" href="/assets/fonts/ioskeleymono/IoskeleyMono-Bold.woff2" as="font" type="font/woff2" crossorigin />13 <link rel="preload" href="/assets/fonts/ioskeleymono/IoskeleyMono-SemiBold.woff2" as="font" type="font/woff2" crossorigin />14 <link rel="preconnect" href="https://assets.danieldaum.net" />15 <link rel="stylesheet" href="/global.css" />16 <link rel="icon" type="image/png" sizes="32x32" href="/assets/favicon/favicon-32x32.png" />17 <link rel="icon" type="image/png" sizes="16x16" href="/assets/favicon/favicon-16x16.png" />18 <link rel="apple-touch-icon" sizes="180x180" href="/assets/favicon/apple-touch-icon.png" />19 <link rel="manifest" href="/assets/favicon/site.webmanifest" />20 <link rel="alternate" type="application/atom+xml" title="daniel daum" href="https://danieldaum.net/feed.xml" />21 <title>daniel daum - A Long Exposure</title>2223 <!-- link previews show the photo itself -->24 <meta property="og:type" content="article" />25 <meta property="og:site_name" content="daniel daum" />26 <meta property="og:title" content="daniel daum - A Long Exposure" />27 <meta property="og:description" content="A Long Exposure, a photo by daniel daum" />28 <meta property="og:url" content="https://danieldaum.net/photos/long-exposure-selfie/" />29 <meta property="og:image" content="https://assets.danieldaum.net/img/photos/long-exposure-selfie.webp" />30 <meta property="og:image:alt" content="a double-exposure selfie of two friends at the greek theatre before the show" />3132 <meta name="twitter:card" content="summary_large_image" />33 <meta name="twitter:title" content="daniel daum - A Long Exposure" />34 <meta name="twitter:description" content="A Long Exposure, a photo by daniel daum" />35 <meta name="twitter:image" content="https://assets.danieldaum.net/img/photos/long-exposure-selfie.webp" />36 <meta name="twitter:image:alt" content="a double-exposure selfie of two friends at the greek theatre before the show" />37</head>3839<body>40 <a class="skip-link" href="#main">skip to content</a>4142 <!-- ===== HEADER ===== -->43 <header class="site-header">44 <a class="site-name" href="/">Daniel Daum</a>45 <nav aria-label="main navigation">46 <a href="/">home</a>47 <a href="/about/">about</a>48 <a href="/now/">now</a>49 <a href="/blog/">blog</a>50 <a href="/projects/">projects</a>51 <a href="/garden/">garden</a>52 </nav>53 </header>5455 <!-- ===== MAIN ===== -->56 <main id="main">57 <nav class="breadcrumb" aria-label="breadcrumb"><a href="/garden/">garden</a> <span aria-hidden="true">-></span> <a href="/photos/">photos</a></nav>5859 <article class="photo-entry" id="photo">60 <a class="photo-entry-link" href="#full" aria-label="view full size: A Long Exposure">61 <img src="https://assets.danieldaum.net/img/photos/long-exposure-selfie.webp" alt="a double-exposure selfie of two friends at the greek theatre before the show" fetchpriority="high" />62 </a>6364 <div class="entry-heading">65 <h1>A Long Exposure</h1>66 <ul class="entry-meta">67 <li><time datetime="2026-10-07">7 October 2026</time></li>68 <li>Berkeley, California</li>69 <li>iPhone 16 Pro · Main 24mm ƒ/1.78 · 12MP · ISO 64 · 0EV</li>70 <li>MOOD: CINE 400-U</li>71 </ul>72 <!-- optional: a <p> about the photo, or a "used in" list of posts with it as their banner -->73 </div>74 </article>7576 <nav class="pager" aria-label="photo navigation">77 <a class="pager-link pager-prev" href="/photos/jungle-stage/" rel="prev">78 <span class="pager-label">← newer</span>79 <span class="pager-title">Greek Theater</span>80 </a>81 <a class="pager-link pager-next" href="/photos/run-by-the-sea/" rel="next">82 <span class="pager-label">older →</span>83 <span class="pager-title">Run by the Sea</span>84 </a>85 </nav>8687 <!-- ===== LIGHTBOX ===== -->88 <div class="lightbox" id="full" role="dialog" aria-label="A Long Exposure, full size" tabindex="-1">89 <a class="lightbox-backdrop" href="#photo" tabindex="-1" aria-hidden="true"></a>90 <figure class="lightbox-content">91 <img src="https://assets.danieldaum.net/img/photos/long-exposure-selfie.webp" alt="a double-exposure selfie of two friends at the greek theatre before the show" loading="lazy" />92 <figcaption class="lightbox-meta">93 <p class="lightbox-meta-name">A Long Exposure</p>94 </figcaption>95 </figure>96 <a class="lightbox-close" href="#photo" aria-label="close full size photo">×</a>97 </div>98 </main>99100 <!-- ===== FOOTER ===== -->101 <footer>102 <nav aria-label="site links">103 <p aria-hidden="true">//</p>104 <a href="mailto:daniel@danieldaum.net">email</a>105 <a href="https://git.danieldaum.net/" aria-label="git (opens in new tab)" target="_blank"106 rel="noopener noreferrer">git</a>107 <a href="/pgp.asc" aria-label="PGP public key (516E97FF)">PGP</a>108 <a href="/changelog/">changelog</a>109 <a href="/privacy/">privacy</a>110 <a href="/feed.xml">feed</a>111 </nav>112 </footer>113</body>114115</html>
photos/ocean-beach/index.htmladded
+115 −0
@@ -0,0 +1,115 @@1<!doctype html>2<html lang="en">34<head>5 <meta charset="UTF-8" />6 <meta name="viewport" content="width=device-width, initial-scale=1.0" />7 <meta name="description" content="Ocean Beach, a photo by daniel daum" />8 <meta http-equiv="Content-Security-Policy"9 content="default-src 'self'; style-src 'self'; font-src 'self'; img-src 'self' https://assets.danieldaum.net; media-src 'self' https://assets.danieldaum.net;" />10 <meta name="referrer" content="strict-origin-when-cross-origin" />11 <link rel="preload" href="/assets/fonts/ioskeleymono/IoskeleyMono-Regular.woff2" as="font" type="font/woff2" crossorigin />12 <link rel="preload" href="/assets/fonts/ioskeleymono/IoskeleyMono-Bold.woff2" as="font" type="font/woff2" crossorigin />13 <link rel="preload" href="/assets/fonts/ioskeleymono/IoskeleyMono-SemiBold.woff2" as="font" type="font/woff2" crossorigin />14 <link rel="preconnect" href="https://assets.danieldaum.net" />15 <link rel="stylesheet" href="/global.css" />16 <link rel="icon" type="image/png" sizes="32x32" href="/assets/favicon/favicon-32x32.png" />17 <link rel="icon" type="image/png" sizes="16x16" href="/assets/favicon/favicon-16x16.png" />18 <link rel="apple-touch-icon" sizes="180x180" href="/assets/favicon/apple-touch-icon.png" />19 <link rel="manifest" href="/assets/favicon/site.webmanifest" />20 <link rel="alternate" type="application/atom+xml" title="daniel daum" href="https://danieldaum.net/feed.xml" />21 <title>daniel daum - Ocean Beach</title>2223 <!-- link previews show the photo itself -->24 <meta property="og:type" content="article" />25 <meta property="og:site_name" content="daniel daum" />26 <meta property="og:title" content="daniel daum - Ocean Beach" />27 <meta property="og:description" content="Ocean Beach, a photo by daniel daum" />28 <meta property="og:url" content="https://danieldaum.net/photos/ocean-beach/" />29 <meta property="og:image" content="https://assets.danieldaum.net/img/photos/ocean-beach.webp" />30 <meta property="og:image:alt" content="ocean beach looking north toward the headlands, waves on one side and a ledge of sand on the other" />3132 <meta name="twitter:card" content="summary_large_image" />33 <meta name="twitter:title" content="daniel daum - Ocean Beach" />34 <meta name="twitter:description" content="Ocean Beach, a photo by daniel daum" />35 <meta name="twitter:image" content="https://assets.danieldaum.net/img/photos/ocean-beach.webp" />36 <meta name="twitter:image:alt" content="ocean beach looking north toward the headlands, waves on one side and a ledge of sand on the other" />37</head>3839<body>40 <a class="skip-link" href="#main">skip to content</a>4142 <!-- ===== HEADER ===== -->43 <header class="site-header">44 <a class="site-name" href="/">Daniel Daum</a>45 <nav aria-label="main navigation">46 <a href="/">home</a>47 <a href="/about/">about</a>48 <a href="/now/">now</a>49 <a href="/blog/">blog</a>50 <a href="/projects/">projects</a>51 <a href="/garden/">garden</a>52 </nav>53 </header>5455 <!-- ===== MAIN ===== -->56 <main id="main">57 <nav class="breadcrumb" aria-label="breadcrumb"><a href="/garden/">garden</a> <span aria-hidden="true">-></span> <a href="/photos/">photos</a></nav>5859 <article class="photo-entry" id="photo">60 <a class="photo-entry-link" href="#full" aria-label="view full size: Ocean Beach">61 <img src="https://assets.danieldaum.net/img/photos/ocean-beach.webp" alt="ocean beach looking north toward the headlands, waves on one side and a ledge of sand on the other" fetchpriority="high" />62 </a>6364 <div class="entry-heading">65 <h1>Ocean Beach</h1>66 <ul class="entry-meta">67 <li><time datetime="2026-09-14">14 September 2026</time></li>68 <li>Ocean Beach, California</li>69 <li>iPhone 16 Pro · Main 24mm ƒ/1.78 · 12MP · ISO 64 · 0EV</li>70 <li>MOOD: CINE 400-U</li>71 </ul>72 <!-- optional: a <p> about the photo, or a "used in" list of posts with it as their banner -->73 </div>74 </article>7576 <nav class="pager" aria-label="photo navigation">77 <a class="pager-link pager-prev" href="/photos/porch-light/" rel="prev">78 <span class="pager-label">← newer</span>79 <span class="pager-title">Porch Light</span>80 </a>81 <a class="pager-link pager-next" href="/photos/slayyyter/" rel="next">82 <span class="pager-label">older →</span>83 <span class="pager-title">Slayyyter</span>84 </a>85 </nav>8687 <!-- ===== LIGHTBOX ===== -->88 <div class="lightbox" id="full" role="dialog" aria-label="Ocean Beach, full size" tabindex="-1">89 <a class="lightbox-backdrop" href="#photo" tabindex="-1" aria-hidden="true"></a>90 <figure class="lightbox-content">91 <img src="https://assets.danieldaum.net/img/photos/ocean-beach.webp" alt="ocean beach looking north toward the headlands, waves on one side and a ledge of sand on the other" loading="lazy" />92 <figcaption class="lightbox-meta">93 <p class="lightbox-meta-name">Ocean Beach</p>94 </figcaption>95 </figure>96 <a class="lightbox-close" href="#photo" aria-label="close full size photo">×</a>97 </div>98 </main>99100 <!-- ===== FOOTER ===== -->101 <footer>102 <nav aria-label="site links">103 <p aria-hidden="true">//</p>104 <a href="mailto:daniel@danieldaum.net">email</a>105 <a href="https://git.danieldaum.net/" aria-label="git (opens in new tab)" target="_blank"106 rel="noopener noreferrer">git</a>107 <a href="/pgp.asc" aria-label="PGP public key (516E97FF)">PGP</a>108 <a href="/changelog/">changelog</a>109 <a href="/privacy/">privacy</a>110 <a href="/feed.xml">feed</a>111 </nav>112 </footer>113</body>114115</html>
photos/porch-light/index.htmladded
+115 −0
@@ -0,0 +1,115 @@1<!doctype html>2<html lang="en">34<head>5 <meta charset="UTF-8" />6 <meta name="viewport" content="width=device-width, initial-scale=1.0" />7 <meta name="description" content="Porch Light, a photo by daniel daum" />8 <meta http-equiv="Content-Security-Policy"9 content="default-src 'self'; style-src 'self'; font-src 'self'; img-src 'self' https://assets.danieldaum.net; media-src 'self' https://assets.danieldaum.net;" />10 <meta name="referrer" content="strict-origin-when-cross-origin" />11 <link rel="preload" href="/assets/fonts/ioskeleymono/IoskeleyMono-Regular.woff2" as="font" type="font/woff2" crossorigin />12 <link rel="preload" href="/assets/fonts/ioskeleymono/IoskeleyMono-Bold.woff2" as="font" type="font/woff2" crossorigin />13 <link rel="preload" href="/assets/fonts/ioskeleymono/IoskeleyMono-SemiBold.woff2" as="font" type="font/woff2" crossorigin />14 <link rel="preconnect" href="https://assets.danieldaum.net" />15 <link rel="stylesheet" href="/global.css" />16 <link rel="icon" type="image/png" sizes="32x32" href="/assets/favicon/favicon-32x32.png" />17 <link rel="icon" type="image/png" sizes="16x16" href="/assets/favicon/favicon-16x16.png" />18 <link rel="apple-touch-icon" sizes="180x180" href="/assets/favicon/apple-touch-icon.png" />19 <link rel="manifest" href="/assets/favicon/site.webmanifest" />20 <link rel="alternate" type="application/atom+xml" title="daniel daum" href="https://danieldaum.net/feed.xml" />21 <title>daniel daum - Porch Light</title>2223 <!-- link previews show the photo itself -->24 <meta property="og:type" content="article" />25 <meta property="og:site_name" content="daniel daum" />26 <meta property="og:title" content="daniel daum - Porch Light" />27 <meta property="og:description" content="Porch Light, a photo by daniel daum" />28 <meta property="og:url" content="https://danieldaum.net/photos/porch-light/" />29 <meta property="og:image" content="https://assets.danieldaum.net/img/photos/porch-light.webp" />30 <meta property="og:image:alt" content="a band on a small stage under a row of spotlights, the crowd in silhouette" />3132 <meta name="twitter:card" content="summary_large_image" />33 <meta name="twitter:title" content="daniel daum - Porch Light" />34 <meta name="twitter:description" content="Porch Light, a photo by daniel daum" />35 <meta name="twitter:image" content="https://assets.danieldaum.net/img/photos/porch-light.webp" />36 <meta name="twitter:image:alt" content="a band on a small stage under a row of spotlights, the crowd in silhouette" />37</head>3839<body>40 <a class="skip-link" href="#main">skip to content</a>4142 <!-- ===== HEADER ===== -->43 <header class="site-header">44 <a class="site-name" href="/">Daniel Daum</a>45 <nav aria-label="main navigation">46 <a href="/">home</a>47 <a href="/about/">about</a>48 <a href="/now/">now</a>49 <a href="/blog/">blog</a>50 <a href="/projects/">projects</a>51 <a href="/garden/">garden</a>52 </nav>53 </header>5455 <!-- ===== MAIN ===== -->56 <main id="main">57 <nav class="breadcrumb" aria-label="breadcrumb"><a href="/garden/">garden</a> <span aria-hidden="true">-></span> <a href="/photos/">photos</a></nav>5859 <article class="photo-entry" id="photo">60 <a class="photo-entry-link" href="#full" aria-label="view full size: Porch Light">61 <img src="https://assets.danieldaum.net/img/photos/porch-light.webp" alt="a band on a small stage under a row of spotlights, the crowd in silhouette" fetchpriority="high" />62 </a>6364 <div class="entry-heading">65 <h1>Porch Light</h1>66 <ul class="entry-meta">67 <li><time datetime="2026-09-30">30 September 2026</time></li>68 <li>San Francisco, California</li>69 <li>iPhone 16 Pro · Main 24mm ƒ/1.78 · 12MP · ISO 64 · 0EV</li>70 <li>MOOD: MONO 1600-U</li>71 </ul>72 <!-- optional: a <p> about the photo, or a "used in" list of posts with it as their banner -->73 </div>74 </article>7576 <nav class="pager" aria-label="photo navigation">77 <a class="pager-link pager-prev" href="/photos/run-by-the-sea/" rel="prev">78 <span class="pager-label">← newer</span>79 <span class="pager-title">Run by the Sea</span>80 </a>81 <a class="pager-link pager-next" href="/photos/ocean-beach/" rel="next">82 <span class="pager-label">older →</span>83 <span class="pager-title">Ocean Beach</span>84 </a>85 </nav>8687 <!-- ===== LIGHTBOX ===== -->88 <div class="lightbox" id="full" role="dialog" aria-label="Porch Light, full size" tabindex="-1">89 <a class="lightbox-backdrop" href="#photo" tabindex="-1" aria-hidden="true"></a>90 <figure class="lightbox-content">91 <img src="https://assets.danieldaum.net/img/photos/porch-light.webp" alt="a band on a small stage under a row of spotlights, the crowd in silhouette" loading="lazy" />92 <figcaption class="lightbox-meta">93 <p class="lightbox-meta-name">Porch Light</p>94 </figcaption>95 </figure>96 <a class="lightbox-close" href="#photo" aria-label="close full size photo">×</a>97 </div>98 </main>99100 <!-- ===== FOOTER ===== -->101 <footer>102 <nav aria-label="site links">103 <p aria-hidden="true">//</p>104 <a href="mailto:daniel@danieldaum.net">email</a>105 <a href="https://git.danieldaum.net/" aria-label="git (opens in new tab)" target="_blank"106 rel="noopener noreferrer">git</a>107 <a href="/pgp.asc" aria-label="PGP public key (516E97FF)">PGP</a>108 <a href="/changelog/">changelog</a>109 <a href="/privacy/">privacy</a>110 <a href="/feed.xml">feed</a>111 </nav>112 </footer>113</body>114115</html>
photos/run-by-the-sea/index.htmladded
+114 −0
@@ -0,0 +1,114 @@1<!doctype html>2<html lang="en">34<head>5 <meta charset="UTF-8" />6 <meta name="viewport" content="width=device-width, initial-scale=1.0" />7 <meta name="description" content="Run by the Sea, a photo by daniel daum" />8 <meta http-equiv="Content-Security-Policy"9 content="default-src 'self'; style-src 'self'; font-src 'self'; img-src 'self' https://assets.danieldaum.net; media-src 'self' https://assets.danieldaum.net;" />10 <meta name="referrer" content="strict-origin-when-cross-origin" />11 <link rel="preload" href="/assets/fonts/ioskeleymono/IoskeleyMono-Regular.woff2" as="font" type="font/woff2" crossorigin />12 <link rel="preload" href="/assets/fonts/ioskeleymono/IoskeleyMono-Bold.woff2" as="font" type="font/woff2" crossorigin />13 <link rel="preload" href="/assets/fonts/ioskeleymono/IoskeleyMono-SemiBold.woff2" as="font" type="font/woff2" crossorigin />14 <link rel="preconnect" href="https://assets.danieldaum.net" />15 <link rel="stylesheet" href="/global.css" />16 <link rel="icon" type="image/png" sizes="32x32" href="/assets/favicon/favicon-32x32.png" />17 <link rel="icon" type="image/png" sizes="16x16" href="/assets/favicon/favicon-16x16.png" />18 <link rel="apple-touch-icon" sizes="180x180" href="/assets/favicon/apple-touch-icon.png" />19 <link rel="manifest" href="/assets/favicon/site.webmanifest" />20 <link rel="alternate" type="application/atom+xml" title="daniel daum" href="https://danieldaum.net/feed.xml" />21 <title>daniel daum - Run by the Sea</title>2223 <!-- link previews show the photo itself -->24 <meta property="og:type" content="article" />25 <meta property="og:site_name" content="daniel daum" />26 <meta property="og:title" content="daniel daum - Run by the Sea" />27 <meta property="og:description" content="Run by the Sea, a photo by daniel daum" />28 <meta property="og:url" content="https://danieldaum.net/photos/run-by-the-sea/" />29 <meta property="og:image" content="https://assets.danieldaum.net/img/photos/run-by-the-sea.webp" />30 <meta property="og:image:alt" content="runners on a grassy trail above the ocean, one in a red shirt in front" />3132 <meta name="twitter:card" content="summary_large_image" />33 <meta name="twitter:title" content="daniel daum - Run by the Sea" />34 <meta name="twitter:description" content="Run by the Sea, a photo by daniel daum" />35 <meta name="twitter:image" content="https://assets.danieldaum.net/img/photos/run-by-the-sea.webp" />36 <meta name="twitter:image:alt" content="runners on a grassy trail above the ocean, one in a red shirt in front" />37</head>3839<body>40 <a class="skip-link" href="#main">skip to content</a>4142 <!-- ===== HEADER ===== -->43 <header class="site-header">44 <a class="site-name" href="/">Daniel Daum</a>45 <nav aria-label="main navigation">46 <a href="/">home</a>47 <a href="/about/">about</a>48 <a href="/now/">now</a>49 <a href="/blog/">blog</a>50 <a href="/projects/">projects</a>51 <a href="/garden/">garden</a>52 </nav>53 </header>5455 <!-- ===== MAIN ===== -->56 <main id="main">57 <nav class="breadcrumb" aria-label="breadcrumb"><a href="/garden/">garden</a> <span aria-hidden="true">-></span> <a href="/photos/">photos</a></nav>5859 <article class="photo-entry" id="photo">60 <a class="photo-entry-link" href="#full" aria-label="view full size: Run by the Sea">61 <img src="https://assets.danieldaum.net/img/photos/run-by-the-sea.webp" alt="runners on a grassy trail above the ocean, one in a red shirt in front" fetchpriority="high" />62 </a>6364 <div class="entry-heading">65 <h1>Run by the Sea</h1>66 <ul class="entry-meta">67 <li><time datetime="2026-10-04">4 October 2026</time></li>68 <li>Santa Cruz, California</li>69 <li>iPhone 16 Pro · Main 24mm ƒ/1.78 · 12MP · ISO 64 · 0EV</li>70 </ul>71 <!-- optional: a <p> about the photo, or a "used in" list of posts with it as their banner -->72 </div>73 </article>7475 <nav class="pager" aria-label="photo navigation">76 <a class="pager-link pager-prev" href="/photos/long-exposure-selfie/" rel="prev">77 <span class="pager-label">← newer</span>78 <span class="pager-title">A Long Exposure</span>79 </a>80 <a class="pager-link pager-next" href="/photos/porch-light/" rel="next">81 <span class="pager-label">older →</span>82 <span class="pager-title">Porch Light</span>83 </a>84 </nav>8586 <!-- ===== LIGHTBOX ===== -->87 <div class="lightbox" id="full" role="dialog" aria-label="Run by the Sea, full size" tabindex="-1">88 <a class="lightbox-backdrop" href="#photo" tabindex="-1" aria-hidden="true"></a>89 <figure class="lightbox-content">90 <img src="https://assets.danieldaum.net/img/photos/run-by-the-sea.webp" alt="runners on a grassy trail above the ocean, one in a red shirt in front" loading="lazy" />91 <figcaption class="lightbox-meta">92 <p class="lightbox-meta-name">Run by the Sea</p>93 </figcaption>94 </figure>95 <a class="lightbox-close" href="#photo" aria-label="close full size photo">×</a>96 </div>97 </main>9899 <!-- ===== FOOTER ===== -->100 <footer>101 <nav aria-label="site links">102 <p aria-hidden="true">//</p>103 <a href="mailto:daniel@danieldaum.net">email</a>104 <a href="https://git.danieldaum.net/" aria-label="git (opens in new tab)" target="_blank"105 rel="noopener noreferrer">git</a>106 <a href="/pgp.asc" aria-label="PGP public key (516E97FF)">PGP</a>107 <a href="/changelog/">changelog</a>108 <a href="/privacy/">privacy</a>109 <a href="/feed.xml">feed</a>110 </nav>111 </footer>112</body>113114</html>
photos/slayyyter/index.htmladded
+115 −0
@@ -0,0 +1,115 @@1<!doctype html>2<html lang="en">34<head>5 <meta charset="UTF-8" />6 <meta name="viewport" content="width=device-width, initial-scale=1.0" />7 <meta name="description" content="Slayyyter, a photo by daniel daum" />8 <meta http-equiv="Content-Security-Policy"9 content="default-src 'self'; style-src 'self'; font-src 'self'; img-src 'self' https://assets.danieldaum.net; media-src 'self' https://assets.danieldaum.net;" />10 <meta name="referrer" content="strict-origin-when-cross-origin" />11 <link rel="preload" href="/assets/fonts/ioskeleymono/IoskeleyMono-Regular.woff2" as="font" type="font/woff2" crossorigin />12 <link rel="preload" href="/assets/fonts/ioskeleymono/IoskeleyMono-Bold.woff2" as="font" type="font/woff2" crossorigin />13 <link rel="preload" href="/assets/fonts/ioskeleymono/IoskeleyMono-SemiBold.woff2" as="font" type="font/woff2" crossorigin />14 <link rel="preconnect" href="https://assets.danieldaum.net" />15 <link rel="stylesheet" href="/global.css" />16 <link rel="icon" type="image/png" sizes="32x32" href="/assets/favicon/favicon-32x32.png" />17 <link rel="icon" type="image/png" sizes="16x16" href="/assets/favicon/favicon-16x16.png" />18 <link rel="apple-touch-icon" sizes="180x180" href="/assets/favicon/apple-touch-icon.png" />19 <link rel="manifest" href="/assets/favicon/site.webmanifest" />20 <link rel="alternate" type="application/atom+xml" title="daniel daum" href="https://danieldaum.net/feed.xml" />21 <title>daniel daum - Slayyyter</title>2223 <!-- link previews show the photo itself -->24 <meta property="og:type" content="article" />25 <meta property="og:site_name" content="daniel daum" />26 <meta property="og:title" content="daniel daum - Slayyyter" />27 <meta property="og:description" content="Slayyyter, a photo by daniel daum" />28 <meta property="og:url" content="https://danieldaum.net/photos/slayyyter/" />29 <meta property="og:image" content="https://assets.danieldaum.net/img/photos/slayyyter.webp" />30 <meta property="og:image:alt" content="slayyyter on a theater stage through haze and spotlights, a packed crowd in front" />3132 <meta name="twitter:card" content="summary_large_image" />33 <meta name="twitter:title" content="daniel daum - Slayyyter" />34 <meta name="twitter:description" content="Slayyyter, a photo by daniel daum" />35 <meta name="twitter:image" content="https://assets.danieldaum.net/img/photos/slayyyter.webp" />36 <meta name="twitter:image:alt" content="slayyyter on a theater stage through haze and spotlights, a packed crowd in front" />37</head>3839<body>40 <a class="skip-link" href="#main">skip to content</a>4142 <!-- ===== HEADER ===== -->43 <header class="site-header">44 <a class="site-name" href="/">Daniel Daum</a>45 <nav aria-label="main navigation">46 <a href="/">home</a>47 <a href="/about/">about</a>48 <a href="/now/">now</a>49 <a href="/blog/">blog</a>50 <a href="/projects/">projects</a>51 <a href="/garden/">garden</a>52 </nav>53 </header>5455 <!-- ===== MAIN ===== -->56 <main id="main">57 <nav class="breadcrumb" aria-label="breadcrumb"><a href="/garden/">garden</a> <span aria-hidden="true">-></span> <a href="/photos/">photos</a></nav>5859 <article class="photo-entry" id="photo">60 <a class="photo-entry-link" href="#full" aria-label="view full size: Slayyyter">61 <img src="https://assets.danieldaum.net/img/photos/slayyyter.webp" alt="slayyyter on a theater stage through haze and spotlights, a packed crowd in front" fetchpriority="high" />62 </a>6364 <div class="entry-heading">65 <h1>Slayyyter</h1>66 <ul class="entry-meta">67 <li><time datetime="2026-09-09">9 September 2026</time></li>68 <li>Oakland, California</li>69 <li>iPhone 16 Pro · Main 24mm ƒ/1.78 · 12MP · ISO 64 · 0EV</li>70 <li>MOOD: MONO 1600-U</li>71 </ul>72 <!-- optional: a <p> about the photo, or a "used in" list of posts with it as their banner -->73 </div>74 </article>7576 <nav class="pager" aria-label="photo navigation">77 <a class="pager-link pager-prev" href="/photos/ocean-beach/" rel="prev">78 <span class="pager-label">← newer</span>79 <span class="pager-title">Ocean Beach</span>80 </a>81 <a class="pager-link pager-next" href="/photos/berkeley-aquatic-park/" rel="next">82 <span class="pager-label">older →</span>83 <span class="pager-title">Berkeley Aquatic Park</span>84 </a>85 </nav>8687 <!-- ===== LIGHTBOX ===== -->88 <div class="lightbox" id="full" role="dialog" aria-label="Slayyyter, full size" tabindex="-1">89 <a class="lightbox-backdrop" href="#photo" tabindex="-1" aria-hidden="true"></a>90 <figure class="lightbox-content">91 <img src="https://assets.danieldaum.net/img/photos/slayyyter.webp" alt="slayyyter on a theater stage through haze and spotlights, a packed crowd in front" loading="lazy" />92 <figcaption class="lightbox-meta">93 <p class="lightbox-meta-name">Slayyyter</p>94 </figcaption>95 </figure>96 <a class="lightbox-close" href="#photo" aria-label="close full size photo">×</a>97 </div>98 </main>99100 <!-- ===== FOOTER ===== -->101 <footer>102 <nav aria-label="site links">103 <p aria-hidden="true">//</p>104 <a href="mailto:daniel@danieldaum.net">email</a>105 <a href="https://git.danieldaum.net/" aria-label="git (opens in new tab)" target="_blank"106 rel="noopener noreferrer">git</a>107 <a href="/pgp.asc" aria-label="PGP public key (516E97FF)">PGP</a>108 <a href="/changelog/">changelog</a>109 <a href="/privacy/">privacy</a>110 <a href="/feed.xml">feed</a>111 </nav>112 </footer>113</body>114115</html>
posts/index.htmladded
+178 −0
@@ -0,0 +1,178 @@1<!doctype html>2<html lang="en">3 <head>4 <meta charset="UTF-8" />5 <meta name="viewport" content="width=device-width, initial-scale=1.0" />6 <meta7 name="description"8 content="daniel daum's posts — short thoughts, synced from bluesky"9 />10 <meta11 http-equiv="Content-Security-Policy"12 content="default-src 'self'; style-src 'self'; font-src 'self'; img-src 'self' https://assets.danieldaum.net https://pds.danieldaum.net https://cdn.bsky.app https://video.bsky.app https://video.cdn.bsky.app; media-src 'self' https://assets.danieldaum.net;"13 />14 <meta name="referrer" content="strict-origin-when-cross-origin" />15 <link16 rel="preload"17 href="/assets/fonts/ioskeleymono/IoskeleyMono-Regular.woff2"18 as="font"19 type="font/woff2"20 crossorigin21 />22 <link23 rel="preload"24 href="/assets/fonts/ioskeleymono/IoskeleyMono-Bold.woff2"25 as="font"26 type="font/woff2"27 crossorigin28 />29 <link30 rel="preload"31 href="/assets/fonts/ioskeleymono/IoskeleyMono-SemiBold.woff2"32 as="font"33 type="font/woff2"34 crossorigin35 />36 <link rel="preconnect" href="https://assets.danieldaum.net" />37 <link rel="stylesheet" href="/global.css" />38 <link39 rel="icon"40 type="image/png"41 sizes="32x32"42 href="/assets/favicon/favicon-32x32.png"43 />44 <link45 rel="icon"46 type="image/png"47 sizes="16x16"48 href="/assets/favicon/favicon-16x16.png"49 />50 <link51 rel="apple-touch-icon"52 sizes="180x180"53 href="/assets/favicon/apple-touch-icon.png"54 />55 <link rel="manifest" href="/assets/favicon/site.webmanifest" />56 <link57 rel="alternate"58 type="application/atom+xml"59 title="daniel daum"60 href="https://danieldaum.net/feed.xml"61 />62 <title>daniel daum - posts</title>6364 <meta property="og:type" content="website" />65 <meta property="og:site_name" content="daniel daum" />66 <meta property="og:title" content="daniel daum - posts" />67 <meta68 property="og:description"69 content="daniel daum's posts — short thoughts, synced from bluesky"70 />71 <meta property="og:url" content="https://danieldaum.net/posts/" />72 <meta73 property="og:image"74 content="https://assets.danieldaum.net/img/misc/og.jpg"75 />76 <meta property="og:image:type" content="image/jpeg" />77 <meta property="og:image:width" content="1200" />78 <meta property="og:image:height" content="630" />79 <meta80 property="og:image:alt"81 content="daniel daum - software engineer, avid reader, aspiring game dev - danieldaum.net"82 />8384 <meta name="twitter:card" content="summary_large_image" />85 <meta name="twitter:title" content="daniel daum - posts" />86 <meta87 name="twitter:description"88 content="daniel daum's posts — short thoughts, synced from bluesky"89 />90 <meta91 name="twitter:image"92 content="https://assets.danieldaum.net/img/misc/og.jpg"93 />94 <meta95 name="twitter:image:alt"96 content="daniel daum - software engineer, avid reader, aspiring game dev - danieldaum.net"97 />98 </head>99100 <body>101 <a class="skip-link" href="#main">skip to content</a>102103 <!-- ===== HEADER ===== -->104 <header class="site-header">105 <a class="site-name" href="/">Daniel Daum</a>106 <nav aria-label="main navigation">107 <a href="/">home</a>108 <a href="/about/">about</a>109 <a href="/now/">now</a>110 <a href="/blog/">blog</a>111 <a href="/projects/">projects</a>112 <a href="/garden/">garden</a>113 </nav>114 </header>115116 <!-- ===== MAIN ===== -->117 <main id="main">118 <nav class="breadcrumb" aria-label="breadcrumb">119 <a href="/blog/">blog</a> <span aria-hidden="true">-></span>120 <a href="/posts/">posts</a>121 </nav>122123 <header class="page-header">124 <h1><span aria-hidden="true">/</span>posts</h1>125 <p class="meta">126 Short posts. Written on127 <a href="https://bsky.app/profile/danieldaum.net">bluesky</a>128 and synced here.129 </p>130 </header>131132 <!-- filled by scripts/sync-posts.mjs (mise run sync-posts) -->133 <section class="post-feed" aria-label="posts">134 <!-- posts:all -->135 <article class="post-item post-item--repost" id="3mxffhxusws2o">136 <p class="post-item-meta">137 <span><span class="post-item-label">reposted</span> <a class="post-item-time" href="/posts/#3mxffhxusws2o"><time datetime="2026-10-08T21:24:37.374Z">8 Oct 2026, 2:24 pm</time></a></span>138 <a class="post-item-reply" href="https://bsky.app/profile/did:plc:x5leeami62gbmjekf7ro6sqo/post/3juhp6h6uw32g">reply on bluesky</a>139 </p>140 <div class="post-item-repost">141 <p class="post-item-card-meta">jenn schiffer 😎 <span>@jennschiffer.com</span></p>142 <p class="post-item-body">i just keep getting hotter and smarter</p>143 </div>144 </article>145146 <article class="post-item" id="3mxfdssp34s2p">147 <p class="post-item-meta">148 <a class="post-item-time" href="/posts/#3mxfdssp34s2p"><time datetime="2026-10-08T20:54:53.604Z">8 Oct 2026, 1:54 pm</time></a>149 <a class="post-item-reply" href="https://bsky.app/profile/danieldaum.net/post/3mxfdssp34s2p">reply on bluesky</a>150 </p>151 <p class="post-item-body">hi</p>152 </article>153 <!-- /posts:all -->154 </section>155 </main>156157 <!-- ===== FOOTER ===== -->158 <footer>159 <nav aria-label="site links">160 <p aria-hidden="true">//</p>161 <a href="mailto:daniel@danieldaum.net"> email </a>162 <a163 href="https://git.danieldaum.net/"164 aria-label="git (opens in new tab)"165 target="_blank"166 rel="noopener noreferrer"167 >git168 </a>169 <a href="/pgp.asc" aria-label="PGP public key (516E97FF)"170 >PGP</a171 >172 <a href="/changelog/">changelog</a>173 <a href="/privacy/">privacy</a>174 <a href="/feed.xml">feed</a>175 </nav>176 </footer>177 </body>178</html>
scripts/sync-posts.mjsadded
+375 −0
@@ -0,0 +1,375 @@1// pulls my bluesky posts from my pds and writes them into the static html.2// run with `mise run sync-posts`. no dependencies, node 18+.3//4// a page opts in with a pair of marker comments; everything between them is5// replaced on every run:6//7// <!-- posts:all -->...<!-- /posts:all --> every post8// <!-- posts:3 -->...<!-- /posts:3 --> the newest 39// <!-- posts:highlight -->...<!-- /posts:highlight --> the newest one as10// a card (/, /blog/)11//12// my own top-level posts and my reposts are kept, newest first; replies are13// dropped. a repost shows the original post, the way bluesky does.14//15// my pds only holds my own records, so reposted posts, quoted posts and video16// thumbnails are looked up on bluesky's public api. that happens here, at sync17// time, never when a page loads. if it fails, they fall back to plain links.18//19// if the pds20// can't be reached, or comes back empty while the site still has posts, the21// script exits non-zero and touches nothing (--force allows the empty case).2223import { readFile, writeFile } from "node:fs/promises";2425const PDS = "https://pds.danieldaum.net";26const DID = "did:plc:e3z5gj5iyuwgqao562bo4bdf";27const HANDLE = "danieldaum.net";28const APPVIEW = "https://public.api.bsky.app";29const TZ = "America/Los_Angeles";3031const PAGES = ["posts/index.html", "blog/index.html", "index.html"];3233// ---------------------------------------------------------------------------34// data3536async function fetchPosts() {37 const posts = (await listRecords("app.bsky.feed.post"))38 .filter((r) => typeof r.value?.text === "string" && !r.value.reply)39 .map((r) => ({ uri: r.uri, rkey: rkeyOf(r.uri), ...r.value }));4041 const reposts = (await listRecords("app.bsky.feed.repost"))42 .filter((r) => typeof r.value?.subject?.uri === "string")43 .map((r) => ({ rkey: rkeyOf(r.uri), createdAt: r.value.createdAt, subjectUri: r.value.subject.uri }));4445 const views = await fetchViews([...posts.map((p) => p.uri), ...reposts.map((r) => r.subjectUri)]);46 for (const post of posts) post.view = views.get(post.uri)?.embed;47 for (const repost of reposts) repost.subject = views.get(repost.subjectUri);4849 return [...posts, ...reposts].sort((a, b) => Date.parse(b.createdAt) - Date.parse(a.createdAt));50}5152async function listRecords(collection) {53 const records = [];54 let cursor;55 do {56 const url = new URL("/xrpc/com.atproto.repo.listRecords", PDS);57 url.searchParams.set("repo", DID);58 url.searchParams.set("collection", collection);59 url.searchParams.set("limit", "100");60 if (cursor) url.searchParams.set("cursor", cursor);61 const res = await fetch(url);62 if (!res.ok) throw new Error(`listRecords ${collection}: ${res.status} ${res.statusText}`);63 const page = await res.json();64 records.push(...page.records);65 cursor = page.records.length > 0 ? page.cursor : undefined;66 } while (cursor);67 return records;68}6970function rkeyOf(uri) {71 return uri.split("/").pop();72}7374// the appview's hydrated copy of each post: reposted and quoted post text,75// image and video thumbnails. getPosts takes 25 uris per call76async function fetchViews(uris) {77 const views = new Map();78 try {79 for (let i = 0; i < uris.length; i += 25) {80 const url = new URL("/xrpc/app.bsky.feed.getPosts", APPVIEW);81 for (const uri of uris.slice(i, i + 25)) url.searchParams.append("uris", uri);82 const res = await fetch(url);83 if (!res.ok) throw new Error(`getPosts: ${res.status}`);84 for (const view of (await res.json()).posts) views.set(view.uri, view);85 }86 } catch (err) {87 console.warn(`appview lookup failed, reposts, quotes and videos will be plain links (${err.message})`);88 }89 return views;90}9192// ---------------------------------------------------------------------------93// rendering9495function renderItem(item) {96 return item.subjectUri ? renderRepost(item) : renderPost(item);97}9899function renderPost(post) {100 const permalink = `/posts/#${post.rkey}`;101 const bsky = `https://bsky.app/profile/${HANDLE}/post/${post.rkey}`;102 const lines = [103 `<article class="post-item" id="${esc(post.rkey)}">`,104 ` <p class="post-item-meta">`,105 ` <a class="post-item-time" href="${permalink}"><time datetime="${esc(post.createdAt)}">${formatDate(post.createdAt)}</time></a>`,106 ` <a class="post-item-reply" href="${bsky}">reply on bluesky</a>`,107 ` </p>`,108 ];109 if (post.text.trim()) {110 lines.push(` <p class="post-item-body">${renderText(post.text, post.facets)}</p>`);111 }112 lines.push(...renderEmbed(post.embed, post.view, DID, bsky).map((l) => ` ${l}`));113 lines.push(`</article>`);114 return lines.join("\n");115}116117// the original post inside a card. the reply link goes to the original118function renderRepost(repost) {119 const permalink = `/posts/#${repost.rkey}`;120 const href = postHref(repost.subjectUri);121 const subject = repost.subject;122 const lines = [123 `<article class="post-item post-item--repost" id="${esc(repost.rkey)}">`,124 ` <p class="post-item-meta">`,125 ` <span><span class="post-item-label">reposted</span> <a class="post-item-time" href="${permalink}"><time datetime="${esc(repost.createdAt)}">${formatDate(repost.createdAt)}</time></a></span>`,126 ` <a class="post-item-reply" href="${href}">reply on bluesky</a>`,127 ` </p>`,128 ];129 if (!subject || typeof subject.record?.text !== "string") {130 lines.push(` <p class="post-item-note"><a href="${href}">reposted post → view on bluesky</a></p>`);131 } else {132 const author = subject.author?.displayName || subject.author?.handle || "";133 lines.push(134 ` <div class="post-item-repost">`,135 ` <p class="post-item-card-meta">${escText(author)} <span>@${escText(subject.author?.handle || "")}</span></p>`,136 );137 if (subject.record.text.trim()) {138 lines.push(` <p class="post-item-body">${renderText(subject.record.text, subject.record.facets)}</p>`);139 }140 const did = subject.author?.did;141 lines.push(...renderEmbed(subject.record.embed, subject.embed, did, href).map((l) => ` ${l}`));142 lines.push(` </div>`);143 }144 lines.push(`</article>`);145 return lines.join("\n");146}147148// the newest post as a card, set apart from the lists around it. links to149// the post on /posts/150function renderHighlight(item) {151 const subject = item.subjectUri ? item.subject : null;152 const record = item.subjectUri ? subject?.record : item;153 const author = subject ? `${subject.author?.displayName || subject.author?.handle || ""}: ` : "";154 const extras = attachments(record?.embed);155 const text = record?.text?.trim() || extras.join(", ") || "view post";156 return [157 `<a class="post-card" href="/posts/#${esc(item.rkey)}">`,158 ` <span class="post-card-meta">`,159 ` <span>${item.subjectUri ? "↻ reposted" : "@" + HANDLE}</span>`,160 ` <time datetime="${esc(item.createdAt)}">${formatDate(item.createdAt)}</time>`,161 ` </span>`,162 ` <span class="post-card-text">${escText(author + text)}</span>`,163 extras.length ? ` <span class="post-card-extra">${escText(extras.join(" · "))}</span>` : null,164 `</a>`,165 ].filter((l) => l !== null).join("\n");166}167168// "2 images", "video", "link", "quote"169function attachments(embed) {170 switch (embed?.$type) {171 case "app.bsky.embed.images": {172 const n = embed.images?.length || 0;173 return n ? [n === 1 ? "1 image" : `${n} images`] : [];174 }175 case "app.bsky.embed.video":176 return ["video"];177 case "app.bsky.embed.external":178 return ["link"];179 case "app.bsky.embed.record":180 return ["quote"];181 case "app.bsky.embed.recordWithMedia":182 return [...attachments(embed.media), "quote"];183 default:184 return [];185 }186}187188// facets index the text by utf-8 byte offset, not by js string index189function renderText(text, facets = []) {190 const bytes = new TextEncoder().encode(text);191 const decode = (from, to) => new TextDecoder().decode(bytes.slice(from, to));192 const sorted = facets193 .filter((f) => f.index && f.features?.length)194 .sort((a, b) => a.index.byteStart - b.index.byteStart);195196 let out = "";197 let pos = 0;198 for (const facet of sorted) {199 const { byteStart, byteEnd } = facet.index;200 if (byteStart < pos) continue;201 out += escText(decode(pos, byteStart));202 const label = escText(decode(byteStart, byteEnd));203 const href = facetHref(facet.features[0]);204 out += href ? `<a href="${esc(href)}">${label}</a>` : label;205 pos = byteEnd;206 }207 return out + escText(decode(pos));208}209210function facetHref(feature) {211 switch (feature.$type) {212 case "app.bsky.richtext.facet#link":213 return /^https?:\/\//.test(feature.uri) ? feature.uri : null;214 case "app.bsky.richtext.facet#mention":215 return `https://bsky.app/profile/${feature.did}`;216 case "app.bsky.richtext.facet#tag":217 return `https://bsky.app/hashtag/${encodeURIComponent(feature.tag)}`;218 default:219 return null;220 }221}222223// `view` is the appview's copy of the same embed, possibly missing. `did` is224// the post author's: only my own images come straight from my pds. a quote225// with media carries the media one level down, in both226function renderEmbed(embed, view, did, bsky) {227 if (!embed) return [];228 switch (embed.$type) {229 case "app.bsky.embed.images":230 return renderImages(embed.images, view?.images, did);231 case "app.bsky.embed.video":232 return renderVideo(embed, view, bsky);233 case "app.bsky.embed.external":234 return renderCard(embed.external);235 case "app.bsky.embed.record":236 return renderQuote(embed.record, view?.record);237 case "app.bsky.embed.recordWithMedia":238 return [239 ...renderEmbed(embed.media, view?.media, did, bsky),240 ...renderQuote(embed.record?.record, view?.record?.record),241 ];242 default:243 return [];244 }245}246247// one image keeps its shape; two or more go in a cropped grid, like bluesky.248// someone else's images come from bluesky's cdn, via the appview249function renderImages(images = [], views = [], did) {250 const imgs = images251 .map((img, i) => ({ img, src: did === DID ? img.image?.ref?.$link && blobUrl(img.image.ref.$link) : views[i]?.thumb }))252 .filter(({ src }) => typeof src === "string" && /^https:\/\//.test(src))253 .map(({ img, src }) => `<img src="${esc(src)}" alt="${esc(img.alt || "")}"${sizeAttrs(img.aspectRatio)} loading="lazy" />`);254 if (imgs.length === 0) return [];255 const cls = imgs.length === 1 ? "post-item-media" : "post-item-media post-item-media--grid";256 return [`<div class="${cls}">`, ...imgs.map((i) => ` ${i}`), `</div>`];257}258259// the pds can't serve range requests, so safari won't play video from it.260// show bluesky's thumbnail and send people there to watch261function renderVideo(embed, view, bsky) {262 const thumb = view?.thumbnail;263 if (!thumb || !/^https:\/\//.test(thumb)) {264 return [`<p class="post-item-note"><a href="${bsky}">video → watch on bluesky</a></p>`];265 }266 const alt = embed.alt ? `${embed.alt} (video, plays on bluesky)` : "video, plays on bluesky";267 return [268 `<a class="post-item-video" href="${bsky}">`,269 ` <img src="${esc(thumb)}" alt="${esc(alt)}"${sizeAttrs(embed.aspectRatio)} loading="lazy" />`,270 `</a>`,271 ];272}273274function sizeAttrs(ratio) {275 return ratio?.width && ratio?.height ? ` width="${ratio.width}" height="${ratio.height}"` : "";276}277278function renderCard(external) {279 if (!external?.uri || !/^https?:\/\//.test(external.uri)) return [];280 const domain = new URL(external.uri).hostname.replace(/^www\./, "");281 return [282 `<a class="post-item-card" href="${esc(external.uri)}">`,283 ` <span class="post-item-card-title">${escText(external.title || domain)}</span>`,284 external.description ? ` <span class="post-item-card-desc">${escText(external.description)}</span>` : null,285 ` <span class="post-item-card-meta">${escText(domain)}</span>`,286 `</a>`,287 ].filter((l) => l !== null);288}289290// with the appview's copy, the quoted text shows as a card291function renderQuote(ref, view) {292 const href = postHref(ref?.uri);293 if (!href) return [];294 const text = view?.$type === "app.bsky.embed.record#viewRecord" ? view.value?.text : null;295 if (typeof text !== "string") {296 return [`<p class="post-item-note"><a href="${href}">quoting →</a></p>`];297 }298 const author = view.author?.displayName || view.author?.handle || "";299 return [300 `<a class="post-item-card post-item-quote" href="${href}">`,301 ` <span class="post-item-card-meta">${escText(author)} <span>@${escText(view.author?.handle || "")}</span></span>`,302 ` <span class="post-item-quote-text">${escText(text)}</span>`,303 `</a>`,304 ];305}306307// at://did/app.bsky.feed.post/rkey -> https://bsky.app/profile/did/post/rkey308function postHref(uri) {309 const match = /^at:\/\/([^/]+)\/app\.bsky\.feed\.post\/([^/]+)$/.exec(uri || "");310 return match ? `https://bsky.app/profile/${match[1]}/post/${match[2]}` : null;311}312313function blobUrl(cid) {314 const url = new URL("/xrpc/com.atproto.sync.getBlob", PDS);315 url.searchParams.set("did", DID);316 url.searchParams.set("cid", cid);317 return url.toString();318}319320// 8 Oct 2026, 1:42 pm321function formatDate(iso) {322 const d = new Date(iso);323 const day = d.toLocaleDateString("en-GB", { timeZone: TZ, day: "numeric", month: "short", year: "numeric" });324 const time = d.toLocaleTimeString("en-US", { timeZone: TZ, hour: "numeric", minute: "2-digit" }).toLowerCase();325 return `${day}, ${time}`;326}327328function escText(s) {329 return s.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/\n/g, "<br />");330}331332function esc(s) {333 return String(s).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """);334}335336// ---------------------------------------------------------------------------337// writing338339const MARKER = /^([ \t]*)<!-- posts:(all|highlight|\d+) -->[\s\S]*?<!-- \/posts:\2 -->/gm;340341function fill(html, posts) {342 return html.replace(MARKER, (_, indent, mode) => {343 let body;344 if (posts.length === 0) {345 body = `<p class="meta">no posts yet</p>`;346 } else if (mode === "highlight") {347 body = renderHighlight(posts[0]);348 } else {349 body = (mode === "all" ? posts : posts.slice(0, Number(mode))).map(renderItem).join("\n\n");350 }351 const indented = body.replace(/^(?=.)/gm, indent);352 return `${indent}<!-- posts:${mode} -->\n${indented}\n${indent}<!-- /posts:${mode} -->`;353 });354}355356const posts = await fetchPosts();357const pages = await Promise.all(PAGES.map((page) => readFile(page, "utf8")));358359// an empty pds while the site still has posts looks like a reset pds, not360// a deliberate wipe. refuse unless told otherwise361if (posts.length === 0 && !process.argv.includes("--force") && pages.some((html) => html.includes('class="post-item'))) {362 console.error("the pds has no posts but the site does. nothing changed.");363 console.error("if you really deleted everything: mise run sync-posts -- --force");364 process.exit(1);365}366367for (const [i, page] of PAGES.entries()) {368 const before = pages[i];369 const after = fill(before, posts);370 if (after !== before) {371 await writeFile(page, after);372 console.log(`updated ${page}`);373 }374}375console.log(`${posts.length} post${posts.length === 1 ? "" : "s"}`);
scripts/sync-standard.mjsadded
+268 −0
@@ -0,0 +1,268 @@1// publishes my long-form writing to atproto as standard.site records, so2// atproto readers (leaflet, pckt, ...) can find and follow it. metadata only:3// title, description, date, path, tags and the banner as a cover. the post4// itself stays here. run with `mise run sync-standard`, or the sync button.5//6// what gets published is the writing list on /blog/: every row except notes7// (#game, #movie, #show, #book, #album). each post's record key comes from its8// date, so the same post always maps to the same record and this script can9// write the <link rel="site.standard.document"> tag into the page itself.10//11// needs ATPROTO_APP_PASSWORD (a bluesky app password). without it the script12// says so and exits without doing anything.1314import { readFile, writeFile } from "node:fs/promises";15import { createHash } from "node:crypto";1617const PDS = "https://pds.danieldaum.net";18const DID = "did:plc:e3z5gj5iyuwgqao562bo4bdf";19const SITE = "https://danieldaum.net";20const NOTE_TAGS = new Set(["game", "movie", "show", "book", "album"]);21const MAX_BLOB = 1_000_000;22const ASSETS = "https://assets.danieldaum.net";23const COVER_RESIZE = "width=1600,quality=80,format=webp";2425const PUBLICATION = {26 rkey: tid(Date.parse("2026-01-01T00:00:00Z") * 1000, 0),27 name: "daniel daum",28 description: "everything i write, in one place",29 icon: "assets/favicon/android-chrome-512x512.png",30};31const PUBLICATION_URI = `at://${DID}/site.standard.publication/${PUBLICATION.rkey}`;3233// ---------------------------------------------------------------------------34// what to publish3536// rows of the writing list: <a class="archive-row" href> title, tag, date37async function readWritingList() {38 const html = await readFile("blog/index.html", "utf8");39 const rows = [...html.matchAll(/<a class="archive-row" href="([^"]+)">([\s\S]*?)<\/a>/g)];40 return rows41 .map(([, path, inner]) => ({42 path,43 title: decode(/<span class="archive-title">([\s\S]*?)<\/span>/.exec(inner)?.[1]?.trim() || ""),44 tag: /<span class="archive-tag">#([^<]+)<\/span>/.exec(inner)?.[1]?.trim() || "",45 date: /datetime="(\d{4}-\d{2}-\d{2})"/.exec(inner)?.[1] || "",46 }))47 .filter((row) => row.path.startsWith("/") && row.title && row.date && !NOTE_TAGS.has(row.tag));48}4950// the page behind a row: its file, description and banner51async function readPage(path) {52 const file = `${path.replace(/^\//, "")}index.html`;53 const html = await readFile(file, "utf8");54 const description = /<meta\s+name="description"\s+content="([^"]*)"/.exec(html)?.[1];55 const banner = /class="post-banner[^"]*"[\s\S]*?<img[\s\S]*?src="([^"]+)"/.exec(html)?.[1];56 return { file, html, description: description && decode(description), banner };57}5859// ---------------------------------------------------------------------------60// records6162async function documentRecord(row, page, session) {63 const record = {64 $type: "site.standard.document",65 site: PUBLICATION_URI,66 path: row.path,67 title: row.title,68 publishedAt: `${row.date}T12:00:00.000Z`,69 };70 if (page.description) record.description = page.description;71 if (row.tag) record.tags = [row.tag];72 const cover = await coverBlob(page.banner, session);73 if (cover) record.coverImage = cover;74 return record;75}7677// the banner, if it's under the 1MB limit. if it's bigger, a smaller copy78// from cloudflare's image resizing (the original on r2 is left alone)79async function coverBlob(url, session) {80 if (!url) return null;81 const candidates = [url];82 if (url.startsWith(`${ASSETS}/`)) {83 candidates.push(url.replace(`${ASSETS}/`, `${ASSETS}/cdn-cgi/image/${COVER_RESIZE}/`));84 }85 for (const candidate of candidates) {86 const res = await fetch(candidate);87 if (!res.ok) continue;88 const bytes = new Uint8Array(await res.arrayBuffer());89 if (bytes.length <= MAX_BLOB) {90 return blob(bytes, res.headers.get("content-type") || "image/webp", session);91 }92 }93 console.warn(` no cover: ${url} is over 1MB and couldn't be resized`);94 return null;95}9697// a blob ref for these bytes. only uploads when the pds doesn't already have98// them: atproto blob ids are a hash of the bytes, worked out here first99async function blob(bytes, mimeType, session) {100 const ref = { $type: "blob", ref: { $link: cid(bytes) }, mimeType, size: bytes.length };101 session.blobs.push({ ref, bytes });102 return ref;103}104105async function uploadBlobs(blobs, session) {106 for (const { ref, bytes } of blobs) {107 const res = await xrpc("com.atproto.repo.uploadBlob", session, bytes, ref.mimeType);108 const uploaded = (await res.json()).blob;109 if (uploaded.ref.$link !== ref.ref.$link) {110 throw new Error(`blob id mismatch for ${ref.ref.$link}`);111 }112 // the record carries whatever type the pds settled on113 ref.mimeType = uploaded.mimeType;114 }115}116117// create or update a record, only when it differs from what's there118async function putIfChanged(collection, rkey, record, session) {119 const url = new URL("/xrpc/com.atproto.repo.getRecord", PDS);120 url.searchParams.set("repo", DID);121 url.searchParams.set("collection", collection);122 url.searchParams.set("rkey", rkey);123 const res = await fetch(url);124 const existing = res.ok ? (await res.json()).value : null;125 if (existing && canonical(existing) === canonical(record)) {126 session.blobs.length = 0;127 return false;128 }129 await uploadBlobs(session.blobs, session);130 session.blobs.length = 0;131 await xrpc("com.atproto.repo.putRecord", session, { repo: DID, collection, rkey, record });132 return true;133}134135// ---------------------------------------------------------------------------136// the page side137138// <link rel="site.standard.document"> in the page's <head>, added or fixed139function withLinkTag(html, uri) {140 const tag = `<link rel="site.standard.document" href="${uri}" />`;141 if (/<link rel="site\.standard\.document"[^>]*>/.test(html)) {142 return html.replace(/<link rel="site\.standard\.document"[^>]*>/, tag);143 }144 return html.replace(/\n([ \t]*)<\/head>/, (_, indent) => `\n${indent} ${tag}\n${indent}</head>`);145}146147// ---------------------------------------------------------------------------148// atproto plumbing149150async function login() {151 const res = await fetch(new URL("/xrpc/com.atproto.server.createSession", PDS), {152 method: "POST",153 headers: { "content-type": "application/json" },154 body: JSON.stringify({ identifier: DID, password: process.env.ATPROTO_APP_PASSWORD }),155 });156 if (!res.ok) throw new Error(`login failed: ${res.status} ${await res.text()}`);157 return { jwt: (await res.json()).accessJwt, blobs: [] };158}159160async function xrpc(method, session, body, contentType = "application/json") {161 const res = await fetch(new URL(`/xrpc/${method}`, PDS), {162 method: "POST",163 headers: { "content-type": contentType, authorization: `Bearer ${session.jwt}` },164 body: contentType === "application/json" ? JSON.stringify(body) : body,165 });166 if (!res.ok) throw new Error(`${method}: ${res.status} ${await res.text()}`);167 return res;168}169170// a record key: microseconds since 1970 and a 10-bit clock id, as 13 base32171// characters. same inputs, same key172function tid(micros, clockId) {173 const alphabet = "234567abcdefghijklmnopqrstuvwxyz";174 let n = (BigInt(micros) << 10n) | BigInt(clockId & 1023);175 let out = "";176 for (let i = 0; i < 13; i++) {177 out = alphabet[Number(n & 31n)] + out;178 n >>= 5n;179 }180 return out;181}182183// cidv1, raw codec, sha2-256, base32: how atproto names blobs184function cid(bytes) {185 const digest = createHash("sha256").update(bytes).digest();186 const raw = Uint8Array.from([0x01, 0x55, 0x12, 0x20, ...digest]);187 const alphabet = "abcdefghijklmnopqrstuvwxyz234567";188 let bits = 0;189 let value = 0;190 let out = "b";191 for (const byte of raw) {192 value = (value << 8) | byte;193 bits += 8;194 while (bits >= 5) {195 out += alphabet[(value >>> (bits - 5)) & 31];196 bits -= 5;197 }198 }199 if (bits > 0) out += alphabet[(value << (5 - bits)) & 31];200 return out;201}202203// json with sorted keys, so two records compare equal whatever their key order204function canonical(value) {205 if (Array.isArray(value)) return `[${value.map(canonical).join(",")}]`;206 if (value && typeof value === "object") {207 return `{${Object.keys(value).sort().map((k) => `${JSON.stringify(k)}:${canonical(value[k])}`).join(",")}}`;208 }209 return JSON.stringify(value);210}211212function decode(s) {213 return s214 .replace(/'|'/g, "'")215 .replace(/"/g, '"')216 .replace(/</g, "<")217 .replace(/>/g, ">")218 .replace(/—/g, "—")219 .replace(/&/g, "&");220}221222// keeps two posts on the same day apart223function clockIdFor(path) {224 return createHash("sha256").update(path).digest().readUInt16BE(0) & 1023;225}226227// ---------------------------------------------------------------------------228// run229230if (!process.env.ATPROTO_APP_PASSWORD) {231 console.log("standard.site: ATPROTO_APP_PASSWORD isn't set, skipping");232 process.exit(0);233}234235const session = await login();236237const icon = await readFile(PUBLICATION.icon);238const publication = {239 $type: "site.standard.publication",240 url: SITE,241 name: PUBLICATION.name,242 description: PUBLICATION.description,243 icon: await blob(icon, "image/png", session),244};245if (await putIfChanged("site.standard.publication", PUBLICATION.rkey, publication, session)) {246 console.log("updated the publication record");247}248249// the other half of the publication's proof: the domain points back at it250const wellKnown = ".well-known/site.standard.publication";251const currentWellKnown = await readFile(wellKnown, "utf8").catch(() => "");252if (currentWellKnown !== PUBLICATION_URI) {253 await writeFile(wellKnown, PUBLICATION_URI);254 console.log(`updated ${wellKnown}`);255}256257const rows = await readWritingList();258for (const row of rows) {259 const page = await readPage(row.path);260 const rkey = tid(Date.parse(`${row.date}T12:00:00Z`) * 1000, clockIdFor(row.path));261 const uri = `at://${DID}/site.standard.document/${rkey}`;262 const record = await documentRecord(row, page, session);263 const changed = await putIfChanged("site.standard.document", rkey, record, session);264 const html = withLinkTag(page.html, uri);265 if (html !== page.html) await writeFile(page.file, html);266 console.log(`${changed ? "published" : "unchanged"} ${row.path}`);267}268console.log(`standard.site: ${rows.length} post${rows.length === 1 ? "" : "s"}`);