@jant/core 0.8.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (160) hide show
  1. package/dist/{app-CFsmRVJN.js → app-BzH8jmh3.js} +1619 -500
  2. package/dist/client/.vite/manifest.json +2 -2
  3. package/dist/client/_assets/{client-DTLBOHqD.js → client-S8oryJ0m.js} +1 -1
  4. package/dist/client/_assets/{client-auth-D6Ix6SmE.js → client-auth-Ds9G0IgR.js} +1 -1
  5. package/dist/index.js +1 -1
  6. package/dist/node.js +2 -2
  7. package/package.json +1 -1
  8. package/src/__tests__/fixtures/releases/0.8.0/site-export/README.md +130 -0
  9. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/2thjq/_index.md +25 -0
  10. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/2u5e5/_index.md +35 -0
  11. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/41q27/0x4nv/index.md +18 -0
  12. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/41q27/_index.md +44 -0
  13. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/41q27/faqyt/index.md +30 -0
  14. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/41q27/the-potting-mix-guide-i-keep-rereading/index.md +20 -0
  15. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/5kayp/_index.md +23 -0
  16. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/5ynfs/_index.md +31 -0
  17. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/5ynfs/hu597/index.md +21 -0
  18. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/_index.md +5 -0
  19. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/a-night-heron-field-guide-for-my-walk-folder/_index.md +31 -0
  20. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/a-quiet-saturday-after-a-busy-week/_index.md +36 -0
  21. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/archive/_index.md +8 -0
  22. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/are-na-is-the-only-bookmark-pile-i-still-revisit/_index.md +30 -0
  23. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/bought-too-many-lemons-again/_index.md +37 -0
  24. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/city-walks/_index.md +12 -0
  25. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/cleanshot-for-screenshots-ocr-and-screen-recording-on-the-mac/_index.md +33 -0
  26. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/cleanshotmac-shang-de-jie-tu-ocr-lu-ping-gong-ju/_index.md +32 -0
  27. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/co344/_index.md +25 -0
  28. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/collections/_index.md +5 -0
  29. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/current-tea-rotation/_index.md +34 -0
  30. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/derek-sivers-still-writes-the-kind-of-internet-i-want-more-of/_index.md +30 -0
  31. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/desk-but-better/_index.md +25 -0
  32. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/e0kcg/_index.md +22 -0
  33. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/egi3c/_index.md +24 -0
  34. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/evf9j/_index.md +152 -0
  35. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/featured/_index.md +8 -0
  36. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/from-basho/_index.md +25 -0
  37. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/from-epictetus/_index.md +25 -0
  38. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/from-marcus-aurelius/_index.md +25 -0
  39. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/from-seneca/_index.md +26 -0
  40. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/from-thoreau/_index.md +25 -0
  41. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/gkbvv/2cl6d/index.md +18 -0
  42. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/gkbvv/3zqv7/index.md +30 -0
  43. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/gkbvv/5oxsv/index.md +18 -0
  44. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/gkbvv/_index.md +39 -0
  45. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/gwob9/_index.md +25 -0
  46. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/home-cooking/_index.md +12 -0
  47. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/hz729/_index.md +24 -0
  48. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/inaturalist-ai-zi-ran-she-qu/_index.md +44 -0
  49. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/j4v0q/_index.md +35 -0
  50. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/k278t/_index.md +25 -0
  51. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/k4eee/_index.md +22 -0
  52. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/k5vh8/_index.md +32 -0
  53. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/k5vh8/a-reading-log-idea-i-might-steal/index.md +20 -0
  54. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/k5vh8/a83qu/index.md +18 -0
  55. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/k5vh8/from-seneca-5hibo/index.md +21 -0
  56. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/kan-qi-lai-bi-jiao-ku-de-gong-si-men/_index.md +41 -0
  57. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/l2m7y/_index.md +29 -0
  58. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/lan-ya-yao-kong-qi-chuang-shang-yue-du-de-fan-ye-shen-qi/_index.md +57 -0
  59. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/mynoise-for-rainy-afternoons/_index.md +30 -0
  60. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/n09le/_index.md +23 -0
  61. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/ni-fu-jin-de-wei-ji-bai-ke-tiao-mu/_index.md +42 -0
  62. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/nts-archives-are-good-cleaning-music/_index.md +30 -0
  63. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/qgfcu/_index.md +32 -0
  64. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/qgfcu/c91j0/index.md +18 -0
  65. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/qgfcu/qyucy/index.md +18 -0
  66. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/qgfcu/wsgck/index.md +18 -0
  67. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/rain-makes-my-neighborhood-look-better/_index.md +46 -0
  68. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/reading-notes/_index.md +12 -0
  69. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/s4r3e/_index.md +25 -0
  70. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/serious-eats-on-tomato-and-egg-soup/_index.md +30 -0
  71. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/te812/_index.md +44 -0
  72. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/te812/cxiu6/index.md +18 -0
  73. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/te812/t77ms/index.md +18 -0
  74. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/te812/the-soup-trick-i-always-forget/index.md +20 -0
  75. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/telk3/_index.md +30 -0
  76. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/telk3/from-thoreau-pawt2/index.md +21 -0
  77. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/the-five-minute-reset-is-still-the-best-habit-i-have/_index.md +36 -0
  78. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/the-hallway-light-took-12-minutes-and-3-months/_index.md +32 -0
  79. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/the-recurse-center-manual-is-weirdly-calming/_index.md +30 -0
  80. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/tiny-projects/_index.md +12 -0
  81. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/tong-wang-xing-fu-zhi-lu/_index.md +68 -0
  82. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/tou-ma-yan-jiang-ju-le-bu-chu-ti-yan/_index.md +62 -0
  83. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/useful-links/_index.md +12 -0
  84. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/weekend-notes/_index.md +12 -0
  85. package/src/__tests__/fixtures/releases/0.8.0/site-export/content/what-i-actually-use-my-notebook-for/_index.md +52 -0
  86. package/src/__tests__/fixtures/releases/0.8.0/site-export/data/jant.toml +124 -0
  87. package/src/__tests__/fixtures/releases/0.8.0/site-export/hugo.toml +45 -0
  88. package/src/__tests__/fixtures/releases/0.8.0/site-export/static/_redirects +25 -0
  89. package/src/__tests__/fixtures/releases/0.8.0/site-export/static/media/15d51730a4f7-med_01kn8jtq3penf98tfq4gzmh9g9.png +0 -0
  90. package/src/__tests__/fixtures/releases/0.8.0/site-export/static/media/med_01kn8jtx8qenf98tm9ahxr48sw.webp +0 -0
  91. package/src/__tests__/fixtures/releases/0.8.0/site-export/static/media/med_01kn8jv0jdenf98tp6qr9zgjjc.webp +0 -0
  92. package/src/__tests__/fixtures/releases/0.8.0/site-export/static/media/med_01kn8jv452enf98trbkwrvhvgd.webp +0 -0
  93. package/src/__tests__/fixtures/releases/0.8.0/site-export/static/media/med_01kn8jvb16enf98txp7p0pf5ge.webp +0 -0
  94. package/src/__tests__/fixtures/releases/0.8.0/site-export/static/media/med_01kn8jve5nenf98tzap11gpxzr.webp +0 -0
  95. package/src/__tests__/fixtures/releases/0.8.0/site-export/static/media/med_01kn8jvq58enf98v538w5vsqp4.webp +0 -0
  96. package/src/__tests__/fixtures/releases/0.8.0/site-export/static/media/med_01kn8jvsaeenf98v6ct4gjzppc.webp +0 -0
  97. package/src/__tests__/fixtures/releases/0.8.0/site-export/static/media/med_01kn8jw26cenf98vc7k0ppz5k8.webp +0 -0
  98. package/src/__tests__/fixtures/releases/0.8.0/site-export/static/media/med_01m313q1hme4e8cmby77dn66yy.webp +0 -0
  99. package/src/__tests__/fixtures/releases/0.8.0/site-export/static/media/med_01m313q2w7e4e8cmc20036yh66.webp +0 -0
  100. package/src/__tests__/fixtures/releases/0.8.0/site-export/static/media/med_01m313q7d2e4e8cmdeqjmyafby.webp +0 -0
  101. package/src/__tests__/fixtures/releases/0.8.0/site-export/static/media/med_01m313q887e4e8cmdjssych7yh.webp +0 -0
  102. package/src/__tests__/fixtures/releases/0.8.0/site-export/static/media/med_01m3167jx2f6ct88pkz45j3ycp-poster.webp +0 -0
  103. package/src/__tests__/fixtures/releases/0.8.0/site-export/static/media/med_01m3167jx2f6ct88pkz45j3ycp.mp4 +0 -0
  104. package/src/__tests__/fixtures/releases/0.8.0/site-export/static/media/med_01m3167mbdf6ct88pr4ga1b9kf-poster.webp +0 -0
  105. package/src/__tests__/fixtures/releases/0.8.0/site-export/static/media/med_01m3167mbdf6ct88pr4ga1b9kf.mp4 +0 -0
  106. package/src/__tests__/fixtures/releases/0.8.0/site-export/static/media/med_01m3167nsvf6ct88q1anhz4svb-poster.webp +0 -0
  107. package/src/__tests__/fixtures/releases/0.8.0/site-export/static/media/med_01m3167nsvf6ct88q1anhz4svb.mp4 +0 -0
  108. package/src/__tests__/fixtures/releases/0.8.0/site-export/static/media/med_01m3167qaxf6ct88qfndwzxx83-poster.webp +0 -0
  109. package/src/__tests__/fixtures/releases/0.8.0/site-export/static/media/med_01m3167qaxf6ct88qfndwzxx83.mp4 +0 -0
  110. package/src/__tests__/fixtures/releases/0.8.0/site-export/static/media/med_01m3167sm0f6ct88qw5brtsgcw.webp +0 -0
  111. package/src/__tests__/fixtures/releases/0.8.0/site-export/static/media/med_01m3167tf8f6ct88r169s51j49.webp +0 -0
  112. package/src/__tests__/fixtures/releases/0.8.0/site-export/static/media/med_01m3167vaaf6ct88rbx5ztenwb.webp +0 -0
  113. package/src/__tests__/fixtures/releases/0.8.0/site-export/static/media/med_01m3167w51f6ct88rp19pybkw1.webp +0 -0
  114. package/src/__tests__/fixtures/releases/0.8.0/site-export/static/media/med_01m3167x0nf6ct88rzajb84tw3.webp +0 -0
  115. package/src/__tests__/fixtures/releases/0.8.0/site-export/static/media/med_01m3167xxbf6ct88s5t2300bjk.webp +0 -0
  116. package/src/__tests__/fixtures/releases/0.8.0/site-export/static/media/med_01m3167yq5f6ct88s9pjwt5fxg.webp +0 -0
  117. package/src/__tests__/fixtures/releases/0.8.0/site-export/static/media/med_01m3167zg4f6ct88sge8jp28ja.webp +0 -0
  118. package/src/__tests__/fixtures/releases/0.8.0/site-export/themes/jant/static/apple-touch-icon.png +0 -0
  119. package/src/__tests__/fixtures/releases/0.8.0/site-export/themes/jant/static/custom.css +0 -0
  120. package/src/__tests__/fixtures/releases/0.8.0/site-export/themes/jant/static/favicon.ico +0 -0
  121. package/src/__tests__/fixtures/releases/0.8.0/site-export/wrangler.jsonc +24 -0
  122. package/src/__tests__/fixtures/releases/0.8.0/snapshot/db.sql +322 -0
  123. package/src/__tests__/fixtures/releases/0.8.0/snapshot/meta.json +11 -0
  124. package/src/__tests__/helpers/cursor-walk.ts +82 -0
  125. package/src/__tests__/release-fixtures.test.ts +6 -2
  126. package/src/app.tsx +4 -0
  127. package/src/lib/__tests__/post-list-cursor.test.ts +105 -0
  128. package/src/lib/__tests__/thread-fold.test.ts +43 -0
  129. package/src/lib/__tests__/timeline.test.ts +14 -14
  130. package/src/lib/api-posts.ts +110 -2
  131. package/src/lib/api-public-posts.ts +263 -0
  132. package/src/lib/api-threads.ts +207 -0
  133. package/src/lib/post-list-cursor.ts +211 -0
  134. package/src/lib/thread-fold.ts +83 -41
  135. package/src/lib/thread-query.ts +143 -0
  136. package/src/middleware/cors.ts +8 -1
  137. package/src/middleware/deprecation.ts +48 -0
  138. package/src/routes/api/__tests__/mcp.test.ts +147 -0
  139. package/src/routes/api/__tests__/posts.test.ts +157 -0
  140. package/src/routes/api/__tests__/public-access.test.ts +5 -0
  141. package/src/routes/api/__tests__/threads.test.ts +115 -0
  142. package/src/routes/api/posts.ts +19 -112
  143. package/src/routes/api/public/__tests__/archive.test.ts +261 -0
  144. package/src/routes/api/public/__tests__/posts.test.ts +344 -19
  145. package/src/routes/api/public/__tests__/threads.test.ts +363 -0
  146. package/src/routes/api/public/archive.ts +82 -79
  147. package/src/routes/api/public/posts.ts +97 -299
  148. package/src/routes/api/public/threads.ts +141 -0
  149. package/src/routes/api/threads.ts +128 -0
  150. package/src/services/__tests__/post.test.ts +342 -36
  151. package/src/services/__tests__/thread.test.ts +495 -0
  152. package/src/services/index.ts +4 -0
  153. package/src/services/mcp.ts +213 -63
  154. package/src/services/post.ts +734 -361
  155. package/src/services/thread.ts +392 -0
  156. package/src/types/constants.ts +25 -0
  157. package/src/ui/feed/ThreadPreview.tsx +9 -14
  158. package/src/ui/feed/__tests__/thread-preview.test.ts +18 -22
  159. package/src/ui/feed/thread-preview-state.ts +0 -35
  160. package/src/ui/shared/Pagination.tsx +1 -1
@@ -239,7 +239,7 @@
239
239
  ]
240
240
  },
241
241
  "src/client-auth.ts": {
242
- "file": "_assets/client-auth-D6Ix6SmE.js",
242
+ "file": "_assets/client-auth-Ds9G0IgR.js",
243
243
  "name": "client-auth",
244
244
  "src": "src/client-auth.ts",
245
245
  "isEntry": true,
@@ -306,7 +306,7 @@
306
306
  ]
307
307
  },
308
308
  "src/client.ts": {
309
- "file": "_assets/client-DTLBOHqD.js",
309
+ "file": "_assets/client-S8oryJ0m.js",
310
310
  "name": "client",
311
311
  "src": "src/client.ts",
312
312
  "isEntry": true,
@@ -292,4 +292,4 @@ ${c}`:c;break;case`event`:r.event=c;break;case`id`:e(r.id=c);break;case`retry`:{
292
292
  </div>`}
293
293
  </div>
294
294
  </dialog>
295
- `:t}};customElements.define(`jant-text-preview`,gn);function _n(e){return e.button!==0||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey}function vn(e,t){t&&(e.textContent=t)}function yn(e){let t=e.target;if(!(t instanceof globalThis.Element))return;let n=t.closest(`a[data-note-expand]`);if(!n||_n(e))return;let r=n.closest(`article[data-post]`),i=r?.querySelector(`[data-post-body]`);if(r&&i&&i.querySelector(`[data-note-break]`)){if(e.preventDefault(),i.hasAttribute(`data-note-clamp`)){i.removeAttribute(`data-note-clamp`),n.setAttribute(`aria-expanded`,`true`),vn(n,n.dataset.labelLess);return}i.setAttribute(`data-note-clamp`,``),n.setAttribute(`aria-expanded`,`false`),vn(n,n.dataset.labelMore),r.getBoundingClientRect().top<0&&typeof r.scrollIntoView==`function`&&r.scrollIntoView({block:`start`})}}document.addEventListener(`click`,yn),document.querySelectorAll(`.archive-chip-dropdown`).forEach(e=>{let t=e.querySelector(`:scope > button`),n=e.querySelector(`:scope > [data-popover]`),r=n?n.querySelector(`[role="listbox"]`):null;if(!t||!n||!r)return;let i=Array.from(r.querySelectorAll(`[role="option"]`)),a=e.classList.contains(`archive-chip-media`),o=e.dataset.filterKey,s=new Set;a&&i.forEach(e=>{!e.dataset.navigate&&e.getAttribute(`aria-selected`)===`true`&&s.add(e.dataset.value)});let c=new Set(s),l=()=>{document.dispatchEvent(new CustomEvent(`basecoat:popover`,{detail:{source:e}})),n.setAttribute(`aria-hidden`,`false`),t.setAttribute(`aria-expanded`,`true`),a&&(c=new Set(s))},u=(e=!0)=>{if(n.getAttribute(`aria-hidden`)!==`true`&&(n.setAttribute(`aria-hidden`,`true`),t.setAttribute(`aria-expanded`,`false`),e&&t.focus(),a&&o&&(s.size!==c.size||[...s].some(e=>!c.has(e))))){let e=new URL(window.location.href),t=[...s];t.length>0?e.searchParams.set(o,t.join(`,`)):e.searchParams.delete(o),e.searchParams.delete(`hasMedia`),e.searchParams.delete(`page`),window.location.href=e.pathname+(e.search||``)}};t.addEventListener(`click`,e=>{e.target.closest(`.archive-chip-clear`)||(t.getAttribute(`aria-expanded`)===`true`?u():l())}),document.addEventListener(`click`,t=>{e.contains(t.target)||u(!1)}),document.addEventListener(`basecoat:popover`,t=>{t.detail.source!==e&&u(!1)}),r.addEventListener(`click`,e=>{let t=e.target.closest(`[role="option"]`);if(t){if(t.dataset.navigate){let e=t.dataset.value;typeof e==`string`&&e.startsWith(`/`)&&(window.location.href=e);return}if(a){let e=t.dataset.value;s.has(e)?(s.delete(e),t.removeAttribute(`aria-selected`)):(s.add(e),t.setAttribute(`aria-selected`,`true`))}else{let e=t.dataset.value;typeof e==`string`&&e.startsWith(`/`)&&(window.location.href=e)}}});let d=-1,f=e=>{d>-1&&i[d]&&i[d].classList.remove(`active`),d=e,d>-1&&i[d]&&(i[d].classList.add(`active`),i[d].scrollIntoView({block:`nearest`}))};r.addEventListener(`mousemove`,e=>{let t=e.target.closest(`[role="option"]`);if(t){let e=i.indexOf(t);e!==-1&&e!==d&&f(e)}}),r.addEventListener(`mouseleave`,()=>{f(-1)}),t.addEventListener(`keydown`,e=>{let t=n.getAttribute(`aria-hidden`)===`false`;if(e.key===`Escape`){t&&(e.preventDefault(),u());return}if(!t&&[`ArrowDown`,`ArrowUp`].includes(e.key)){e.preventDefault(),l();return}t&&(e.preventDefault(),e.key===`ArrowDown`?f(Math.min(d+1,i.length-1)):e.key===`ArrowUp`?f(Math.max(d-1,0)):e.key===`Enter`&&d>-1&&(i[d].click(),!a&&!i[d].dataset.navigate&&u()))})});function bn(e=document){e.querySelectorAll(`.collection-sort-menu`).forEach(e=>{if(e.dataset.collectionSortMenuInitialized===`true`)return;let t=e.querySelector(`:scope > .collection-sort-trigger`),n=e.querySelector(`:scope > [data-popover]`),r=n?.querySelector(`[data-collection-sort-options]`);if(!(t instanceof HTMLButtonElement)||!n||!r)return;let i=(e=!1)=>{n.getAttribute(`aria-hidden`)!==`true`&&(n.setAttribute(`aria-hidden`,`true`),t.setAttribute(`aria-expanded`,`false`),e&&t.focus())},a=()=>{document.dispatchEvent(new CustomEvent(`basecoat:popover`,{detail:{source:e}})),n.setAttribute(`aria-hidden`,`false`),t.setAttribute(`aria-expanded`,`true`)};t.addEventListener(`click`,e=>{e.preventDefault(),e.stopPropagation(),t.getAttribute(`aria-expanded`)===`true`?i(!1):a()}),t.addEventListener(`keydown`,e=>{if(e.key===`Escape`){e.preventDefault(),i(!0);return}if(e.key===`ArrowDown`){e.preventDefault(),t.getAttribute(`aria-expanded`)!==`true`&&a();let n=r.querySelector(`a[href]`);n instanceof HTMLElement&&n.focus()}}),n.addEventListener(`keydown`,e=>{e.key===`Escape`&&(e.preventDefault(),i(!0))}),document.addEventListener(`click`,t=>{t.target instanceof Node&&(e.contains(t.target)||i(!1))}),document.addEventListener(`basecoat:popover`,t=>{t.detail?.source!==e&&i(!1)}),e.dataset.collectionSortMenuInitialized=`true`})}bn(),r(),document.documentElement.dataset.jantVersion=`0.8.0-5df7f503450f7a72`;
295
+ `:t}};customElements.define(`jant-text-preview`,gn);function _n(e){return e.button!==0||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey}function vn(e,t){t&&(e.textContent=t)}function yn(e){let t=e.target;if(!(t instanceof globalThis.Element))return;let n=t.closest(`a[data-note-expand]`);if(!n||_n(e))return;let r=n.closest(`article[data-post]`),i=r?.querySelector(`[data-post-body]`);if(r&&i&&i.querySelector(`[data-note-break]`)){if(e.preventDefault(),i.hasAttribute(`data-note-clamp`)){i.removeAttribute(`data-note-clamp`),n.setAttribute(`aria-expanded`,`true`),vn(n,n.dataset.labelLess);return}i.setAttribute(`data-note-clamp`,``),n.setAttribute(`aria-expanded`,`false`),vn(n,n.dataset.labelMore),r.getBoundingClientRect().top<0&&typeof r.scrollIntoView==`function`&&r.scrollIntoView({block:`start`})}}document.addEventListener(`click`,yn),document.querySelectorAll(`.archive-chip-dropdown`).forEach(e=>{let t=e.querySelector(`:scope > button`),n=e.querySelector(`:scope > [data-popover]`),r=n?n.querySelector(`[role="listbox"]`):null;if(!t||!n||!r)return;let i=Array.from(r.querySelectorAll(`[role="option"]`)),a=e.classList.contains(`archive-chip-media`),o=e.dataset.filterKey,s=new Set;a&&i.forEach(e=>{!e.dataset.navigate&&e.getAttribute(`aria-selected`)===`true`&&s.add(e.dataset.value)});let c=new Set(s),l=()=>{document.dispatchEvent(new CustomEvent(`basecoat:popover`,{detail:{source:e}})),n.setAttribute(`aria-hidden`,`false`),t.setAttribute(`aria-expanded`,`true`),a&&(c=new Set(s))},u=(e=!0)=>{if(n.getAttribute(`aria-hidden`)!==`true`&&(n.setAttribute(`aria-hidden`,`true`),t.setAttribute(`aria-expanded`,`false`),e&&t.focus(),a&&o&&(s.size!==c.size||[...s].some(e=>!c.has(e))))){let e=new URL(window.location.href),t=[...s];t.length>0?e.searchParams.set(o,t.join(`,`)):e.searchParams.delete(o),e.searchParams.delete(`hasMedia`),e.searchParams.delete(`page`),window.location.href=e.pathname+(e.search||``)}};t.addEventListener(`click`,e=>{e.target.closest(`.archive-chip-clear`)||(t.getAttribute(`aria-expanded`)===`true`?u():l())}),document.addEventListener(`click`,t=>{e.contains(t.target)||u(!1)}),document.addEventListener(`basecoat:popover`,t=>{t.detail.source!==e&&u(!1)}),r.addEventListener(`click`,e=>{let t=e.target.closest(`[role="option"]`);if(t){if(t.dataset.navigate){let e=t.dataset.value;typeof e==`string`&&e.startsWith(`/`)&&(window.location.href=e);return}if(a){let e=t.dataset.value;s.has(e)?(s.delete(e),t.removeAttribute(`aria-selected`)):(s.add(e),t.setAttribute(`aria-selected`,`true`))}else{let e=t.dataset.value;typeof e==`string`&&e.startsWith(`/`)&&(window.location.href=e)}}});let d=-1,f=e=>{d>-1&&i[d]&&i[d].classList.remove(`active`),d=e,d>-1&&i[d]&&(i[d].classList.add(`active`),i[d].scrollIntoView({block:`nearest`}))};r.addEventListener(`mousemove`,e=>{let t=e.target.closest(`[role="option"]`);if(t){let e=i.indexOf(t);e!==-1&&e!==d&&f(e)}}),r.addEventListener(`mouseleave`,()=>{f(-1)}),t.addEventListener(`keydown`,e=>{let t=n.getAttribute(`aria-hidden`)===`false`;if(e.key===`Escape`){t&&(e.preventDefault(),u());return}if(!t&&[`ArrowDown`,`ArrowUp`].includes(e.key)){e.preventDefault(),l();return}t&&(e.preventDefault(),e.key===`ArrowDown`?f(Math.min(d+1,i.length-1)):e.key===`ArrowUp`?f(Math.max(d-1,0)):e.key===`Enter`&&d>-1&&(i[d].click(),!a&&!i[d].dataset.navigate&&u()))})});function bn(e=document){e.querySelectorAll(`.collection-sort-menu`).forEach(e=>{if(e.dataset.collectionSortMenuInitialized===`true`)return;let t=e.querySelector(`:scope > .collection-sort-trigger`),n=e.querySelector(`:scope > [data-popover]`),r=n?.querySelector(`[data-collection-sort-options]`);if(!(t instanceof HTMLButtonElement)||!n||!r)return;let i=(e=!1)=>{n.getAttribute(`aria-hidden`)!==`true`&&(n.setAttribute(`aria-hidden`,`true`),t.setAttribute(`aria-expanded`,`false`),e&&t.focus())},a=()=>{document.dispatchEvent(new CustomEvent(`basecoat:popover`,{detail:{source:e}})),n.setAttribute(`aria-hidden`,`false`),t.setAttribute(`aria-expanded`,`true`)};t.addEventListener(`click`,e=>{e.preventDefault(),e.stopPropagation(),t.getAttribute(`aria-expanded`)===`true`?i(!1):a()}),t.addEventListener(`keydown`,e=>{if(e.key===`Escape`){e.preventDefault(),i(!0);return}if(e.key===`ArrowDown`){e.preventDefault(),t.getAttribute(`aria-expanded`)!==`true`&&a();let n=r.querySelector(`a[href]`);n instanceof HTMLElement&&n.focus()}}),n.addEventListener(`keydown`,e=>{e.key===`Escape`&&(e.preventDefault(),i(!0))}),document.addEventListener(`click`,t=>{t.target instanceof Node&&(e.contains(t.target)||i(!1))}),document.addEventListener(`basecoat:popover`,t=>{t.detail?.source!==e&&i(!1)}),e.dataset.collectionSortMenuInitialized=`true`})}bn(),r(),document.documentElement.dataset.jantVersion=`0.9.0-f5f1d977f9cb3f8e`;
@@ -1,4 +1,4 @@
1
- import{T as e,g as t,h as n,i as r,m as i,n as a,t as o,u as s,x as ee,y as te}from"./chunks/lit-DW8VmJAT.js";import"./client-DTLBOHqD.js";import{n as c,t as ne}from"./chunks/confirm-D7GrwsCN.js";import{_ as l,a as re,d as u,f as d,g as f,h as p,i as ie,l as m,m as ae,n as oe,p as se,r as ce,t as h,u as g,v as _,y as le}from"./chunks/unsafe-svg-BkscJx69.js";import{r as v}from"./chunks/slug-format-CRXO1AL5.js";import{h as y,l as ue,u as b}from"./chunks/types-D5iF3H1a.js";import{t as de}from"./chunks/settings-paths-BcdySNx6.js";var x=`M12 3 10.1 10.1 3 12l7.1 1.9L12 21l1.9-7.1L21 12l-7.1-1.9Z`,fe=`M4 4 20 20`,pe=200,me=class extends o{static properties={_open:{state:!0},_query:{state:!0},_items:{state:!0},_note:{state:!0},_loading:{state:!0},_searched:{state:!0}};#e=null;#t=null;#n=0;createRenderRoot(){return this.innerHTML=``,this}constructor(){super(),this._open=!1,this._query=``,this._items=[],this._note=``,this._loading=!1,this._searched=!1}disconnectedCallback(){super.disconnectedCallback();let e=this.#e;this.#e=null,e?.resolve(null)}pick(e){return this.#e?.resolve(null),this._query=``,this._items=[],this._note=``,this._loading=!1,this._searched=!1,this._open=!0,new Promise(t=>{this.#e={...e,resolve:t},this.updateComplete.then(()=>{let e=this.querySelector(`.picker-dialog`);e&&!e.open&&e.showModal(),this.querySelector(`.picker-dialog-input`)?.focus()})})}#r(e){this.#t&&clearTimeout(this.#t),this.#t=null,this.#n+=1;let t=this.querySelector(`.picker-dialog`);t?.open&&t.close();let n=this.#e;this.#e=null,this._open=!1,n?.resolve(e)}#i(e){let t=this.#e;if(!t)return;let n=e.target.value;this._query=n,this.#t&&clearTimeout(this.#t);let r=t.minQueryLength??2;if(n.trim().length<r){this.#n+=1,this._items=[],this._note=``,this._loading=!1,this._searched=!1;return}this._loading=!0,this.#t=setTimeout(()=>{this.#a(n,t)},pe)}async#a(e,t){let n=++this.#n;try{let r=await t.search(e);if(n!==this.#n)return;this._items=r.items,this._note=r.note??``}catch{if(n!==this.#n)return;this._items=[],this._note=``}finally{n===this.#n&&(this._loading=!1,this._searched=!0)}}#o(e){if(e.key===`Escape`){e.preventDefault(),this.#r(null);return}if(e.key!==`ArrowDown`&&e.key!==`ArrowUp`)return;let t=Array.from(this.querySelectorAll(`.picker-dialog-option`));if(t.length===0)return;e.preventDefault();let n=document.activeElement,r=t.findIndex(e=>e===n),i=e.key===`ArrowDown`?r<0?0:Math.min(r+1,t.length-1):r<=0?-1:r-1;if(i<0){this.querySelector(`.picker-dialog-input`)?.focus();return}t[i]?.focus()}#s(e){e.target===e.currentTarget&&this.#r(null)}render(){let e=this.#e;if(!this._open||!e)return a;let t=e.minQueryLength??2,n=this._query.trim().length<t;return r`
1
+ import{T as e,g as t,h as n,i as r,m as i,n as a,t as o,u as s,x as ee,y as te}from"./chunks/lit-DW8VmJAT.js";import"./client-S8oryJ0m.js";import{n as c,t as ne}from"./chunks/confirm-D7GrwsCN.js";import{_ as l,a as re,d as u,f as d,g as f,h as p,i as ie,l as m,m as ae,n as oe,p as se,r as ce,t as h,u as g,v as _,y as le}from"./chunks/unsafe-svg-BkscJx69.js";import{r as v}from"./chunks/slug-format-CRXO1AL5.js";import{h as y,l as ue,u as b}from"./chunks/types-D5iF3H1a.js";import{t as de}from"./chunks/settings-paths-BcdySNx6.js";var x=`M12 3 10.1 10.1 3 12l7.1 1.9L12 21l1.9-7.1L21 12l-7.1-1.9Z`,fe=`M4 4 20 20`,pe=200,me=class extends o{static properties={_open:{state:!0},_query:{state:!0},_items:{state:!0},_note:{state:!0},_loading:{state:!0},_searched:{state:!0}};#e=null;#t=null;#n=0;createRenderRoot(){return this.innerHTML=``,this}constructor(){super(),this._open=!1,this._query=``,this._items=[],this._note=``,this._loading=!1,this._searched=!1}disconnectedCallback(){super.disconnectedCallback();let e=this.#e;this.#e=null,e?.resolve(null)}pick(e){return this.#e?.resolve(null),this._query=``,this._items=[],this._note=``,this._loading=!1,this._searched=!1,this._open=!0,new Promise(t=>{this.#e={...e,resolve:t},this.updateComplete.then(()=>{let e=this.querySelector(`.picker-dialog`);e&&!e.open&&e.showModal(),this.querySelector(`.picker-dialog-input`)?.focus()})})}#r(e){this.#t&&clearTimeout(this.#t),this.#t=null,this.#n+=1;let t=this.querySelector(`.picker-dialog`);t?.open&&t.close();let n=this.#e;this.#e=null,this._open=!1,n?.resolve(e)}#i(e){let t=this.#e;if(!t)return;let n=e.target.value;this._query=n,this.#t&&clearTimeout(this.#t);let r=t.minQueryLength??2;if(n.trim().length<r){this.#n+=1,this._items=[],this._note=``,this._loading=!1,this._searched=!1;return}this._loading=!0,this.#t=setTimeout(()=>{this.#a(n,t)},pe)}async#a(e,t){let n=++this.#n;try{let r=await t.search(e);if(n!==this.#n)return;this._items=r.items,this._note=r.note??``}catch{if(n!==this.#n)return;this._items=[],this._note=``}finally{n===this.#n&&(this._loading=!1,this._searched=!0)}}#o(e){if(e.key===`Escape`){e.preventDefault(),this.#r(null);return}if(e.key!==`ArrowDown`&&e.key!==`ArrowUp`)return;let t=Array.from(this.querySelectorAll(`.picker-dialog-option`));if(t.length===0)return;e.preventDefault();let n=document.activeElement,r=t.findIndex(e=>e===n),i=e.key===`ArrowDown`?r<0?0:Math.min(r+1,t.length-1):r<=0?-1:r-1;if(i<0){this.querySelector(`.picker-dialog-input`)?.focus();return}t[i]?.focus()}#s(e){e.target===e.currentTarget&&this.#r(null)}render(){let e=this.#e;if(!this._open||!e)return a;let t=e.minQueryLength??2,n=this._query.trim().length<t;return r`
2
2
  <dialog
3
3
  class="dialog picker-dialog"
4
4
  @cancel=${e=>{e.preventDefault(),this.#r(null)}}
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import { n as createApp } from "./app-CFsmRVJN.js";
1
+ import { n as createApp } from "./app-BzH8jmh3.js";
2
2
  export { createApp };
package/dist/node.js CHANGED
@@ -1,4 +1,4 @@
1
- import { A as BUILTIN_FONT_THEMES, C as getEnvString, D as getTelegramBotPool, E as getSiteResolutionMode, F as BUILTIN_COLOR_THEMES, I as getPublicAssetBasePath, L as isAssetPath, M as getFontThemeCssVariables, N as resolveCjkFontProfile, O as getTelegramWebhookSecret, P as buildThemeStyle, S as getConfiguredStorageDriver, T as getPort, _ as createNodeDatabase, a as setUpNodeInstance, b as getConfiguredSingleSiteOrigin, c as resolveDatabaseDialect, d as getWebhookUrl, f as setMyCommands, g as sqliteSchemaBundle, h as pgSchemaBundle, i as createNodeRequestRuntime, j as getCjkFontCssVariables, k as shouldTrustProxy, l as createExportService, m as createStorageDriver, n as createApp, o as createSiteService, p as setWebhook, r as createNodeCliRuntime, s as getHostBasedStartupConfigurationIssues, u as resolveConfig, v as schema_exports, w as getHostedControlPlaneBaseUrl, x as getConfiguredSingleSitePathPrefix, y as now } from "./app-CFsmRVJN.js";
1
+ import { A as BUILTIN_FONT_THEMES, C as getEnvString, D as getTelegramBotPool, E as getSiteResolutionMode, F as BUILTIN_COLOR_THEMES, I as getPublicAssetBasePath, L as isAssetPath, M as getFontThemeCssVariables, N as resolveCjkFontProfile, O as getTelegramWebhookSecret, P as buildThemeStyle, S as getConfiguredStorageDriver, T as getPort, _ as createNodeDatabase, a as setUpNodeInstance, b as getConfiguredSingleSiteOrigin, c as resolveDatabaseDialect, d as getWebhookUrl, f as setMyCommands, g as sqliteSchemaBundle, h as pgSchemaBundle, i as createNodeRequestRuntime, j as getCjkFontCssVariables, k as shouldTrustProxy, l as createExportService, m as createStorageDriver, n as createApp, o as createSiteService, p as setWebhook, r as createNodeCliRuntime, s as getHostBasedStartupConfigurationIssues, u as resolveConfig, v as schema_exports, w as getHostedControlPlaneBaseUrl, x as getConfiguredSingleSitePathPrefix, y as now } from "./app-BzH8jmh3.js";
2
2
  import { drizzle } from "drizzle-orm/better-sqlite3";
3
3
  import { serve } from "@hono/node-server";
4
4
  import Database from "better-sqlite3";
@@ -530,7 +530,7 @@ async function createNodeRequestHandler(options) {
530
530
  async function start(env = process.env, app) {
531
531
  const handler = await createNodeRequestHandler({
532
532
  env,
533
- app: async () => app ?? (await import("./app-CFsmRVJN.js").then((n) => n.t)).createApp()
533
+ app: async () => app ?? (await import("./app-BzH8jmh3.js").then((n) => n.t)).createApp()
534
534
  });
535
535
  const hostname = resolveHost(env);
536
536
  const port = resolvePort(env);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jant/core",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "description": "A modern, open-source microblogging platform built on Cloudflare Workers",
5
5
  "type": "module",
6
6
  "exports": {
@@ -0,0 +1,130 @@
1
+ # Jant Demo — Hugo Export
2
+
3
+ This is a static site exported from [Jant](https://github.com/jant-me/jant), ready to build with [Hugo](https://gohugo.io/).
4
+
5
+ ## Install Hugo
6
+
7
+ This export targets Hugo **extended 0.147.7+**.
8
+
9
+ **macOS (Homebrew):**
10
+
11
+ ```sh
12
+ brew install hugo
13
+ ```
14
+
15
+ **Windows (Scoop):**
16
+
17
+ ```sh
18
+ scoop install hugo-extended
19
+ ```
20
+
21
+ **Linux:**
22
+
23
+ Download the extended build from <https://github.com/gohugoio/hugo/releases>.
24
+
25
+ See the [Hugo installation docs](https://gohugo.io/installation/) for more options.
26
+
27
+ ## Quick start
28
+
29
+ Preview locally:
30
+
31
+ ```sh
32
+ hugo serve
33
+ ```
34
+
35
+ Then open <http://localhost:1313> in your browser.
36
+
37
+ Build the site for deployment:
38
+
39
+ ```sh
40
+ hugo --minify
41
+ ```
42
+
43
+ The output goes to the `public/` directory. Upload it to any static host (Netlify, Vercel, Cloudflare Pages, GitHub Pages, etc.).
44
+
45
+ ## Deploy to Cloudflare Workers
46
+
47
+ `wrangler.jsonc` at the root is the deploy config: it names the Worker, runs `hugo --gc --minify`, and points the upload at `public/`. Connect this repository to Cloudflare Workers Builds and leave the commands Cloudflare offers as they are:
48
+
49
+ | Field | Value |
50
+ | --------------- | ------------------------------ |
51
+ | Build command | leave empty |
52
+ | Deploy command | `npx wrangler deploy` |
53
+ | Version command | `npx wrangler versions upload` |
54
+
55
+ The build belongs to `wrangler.jsonc` rather than to that field: Workers Builds reads a `package.json` to detect a framework, a Hugo site has none, and an empty build command deploys a `public/` that was never built. Filling the field in as well makes Hugo run twice.
56
+
57
+ Check one thing before the first deploy: `name` in `wrangler.jsonc` has to match the Worker's name in the Cloudflare dashboard. Workers Builds fails the build when they differ, and a deploy run by hand under another name goes to another Worker. A Worker imported from a repository is named after the repository, so an export pushed by GitHub Sync uses the repository name. A downloaded export has no repository and uses the name GitHub Sync suggests when it creates one for this site. If the Worker is named something else, change `name` to match — Cloudflare names each build token `<worker-name> build token`, so the token list is one place to read it.
58
+
59
+ Jant writes `wrangler.jsonc` once and never overwrites it, so a corrected name survives later syncs.
60
+
61
+ `static/_redirects` needs no configuration here. Hugo copies it to `public/_redirects` and Workers applies the rules as published.
62
+
63
+ ## Feeds
64
+
65
+ The feed addresses changed. Jant served them under `/feed`; Hugo serves them as `index.xml` inside each section:
66
+
67
+ | Jant | This export |
68
+ | -------------------- | ------------------------- |
69
+ | `/feed` | `/featured/index.xml` |
70
+ | `/latest/feed` | `/index.xml` |
71
+ | `/featured/feed` | `/featured/index.xml` |
72
+ | `/archive/feed` | `/archive/index.xml` |
73
+ | `/{collection}/feed` | `/{collection}/index.xml` |
74
+
75
+ A reader who is already subscribed holds one of the old addresses, and a feed reader that gets a 404 stops delivering posts. `static/_redirects` maps every old address to its new one with a 301. Cloudflare Pages and Netlify read that file as published; on any other host, translate its rules into that host's redirect configuration before you point the domain here.
76
+
77
+ Hugo's `aliases:` cannot cover this. An alias page redirects with a meta refresh and a script, and feed readers fetch XML without running either — only an HTTP redirect reaches them.
78
+
79
+ Feed entries keep the IDs Jant gave them, so feed readers don't show old posts again. Each root post stores its ID in `feed_id`: the post's address on Jant, which is not its page URL here. Don't change `feed_id`, or feed readers show that post again. A post you add here without one uses its page URL.
80
+
81
+ The **Subscribe** entry in the site navigation points at `/featured/index.xml`. The exported site has no `/subscribe` page; that page belongs to the Jant runtime.
82
+
83
+ ## Project structure
84
+
85
+ ```
86
+ hugo.toml — Site configuration (baseURL, title, theme, params)
87
+ wrangler.jsonc — Cloudflare Workers deploy config (see Deploy above)
88
+ content/
89
+ _index.md — Home section
90
+ archive/_index.md — Archive section
91
+ collections/_index.md — Collections directory section
92
+ featured/_index.md — Featured section
93
+ {slug}/
94
+ _index.md — Thread root (branch bundle)
95
+ {reply-slug}/
96
+ index.md — Reply (leaf bundle, not rendered as its own URL)
97
+ data/
98
+ jant.toml — Nav items, branding, display preferences, ordered collections directory
99
+ themes/jant/ — Bundled Hugo theme (overrideable via layouts/ at the site root)
100
+ static/ — Copy files here to add them to the published site
101
+ _redirects — Feed redirects (see Feeds above)
102
+ ```
103
+
104
+ ## Customizing
105
+
106
+ - **Site settings** — edit `hugo.toml` to change the baseURL, title, or pagination.
107
+ - **Jant metadata** — `data/jant.toml` drives nav and the collections directory, and is preserved across round-trip import.
108
+ - **Styles** — edit `themes/jant/static/main.css`, or drop a `static/main.css` at the site root to override.
109
+ - **Templates** — add files under `layouts/` at the site root to override the bundled theme.
110
+ - **Debugging** — from a Jant site project, run `npx jant site export --url <site-url> --output ./my-site`, then `cd my-site && hugo serve`.
111
+
112
+ ## Fetching media locally
113
+
114
+ When the source site has a storage provider configured (R2/S3/local proxy), images and attachments in this export link to the provider URL instead of being bundled. That keeps the repo small but means the files aren't on disk — fine if Hugo can reach the internet, not fine if you want a fully self-contained archive.
115
+
116
+ To download every referenced media file into `static/media/` and rewrite the references to local paths, run this from the root of the export:
117
+
118
+ ```sh
119
+ npx @jant/core site pull-media --path .
120
+ ```
121
+
122
+ Safe to re-run; files already on disk are reused. Anything that fails to download keeps its original URL so the site still builds.
123
+
124
+ ## Notes
125
+
126
+ - Each thread is a Hugo branch bundle. Replies live as nested leaf bundles with `build.render = "never"` so they do not produce standalone URLs; they render inside the thread page.
127
+ - `/{reply-slug}/` URLs are preserved via `aliases:` on the root post, so old links still land on the right thread anchor.
128
+ - Feed addresses are the exception: they move to `index.xml` and stay reachable only through `static/_redirects`. See [Feeds](#feeds).
129
+ - Media is emitted under `static/media/{id}.ext` and referenced from a flat `media:` array on each post. When a storage provider has a configured public URL (R2/S3/local proxy), the exporter links to the provider URL instead of re-bundling the bytes.
130
+ - Posts with `draft: true` in front matter are only built when you pass `--buildDrafts` to `hugo` / `hugo serve`.
@@ -0,0 +1,25 @@
1
+ ---
2
+ id: "pst_01m313qex8e4e8cmgte4rezjpc"
3
+ date: "2025-10-30T01:30:00.000Z"
4
+ updated: "2026-09-21T05:42:53.000Z"
5
+ slug: "2thjq"
6
+ type: "post"
7
+ feed_id: "http://127.0.0.1:61670/2thjq"
8
+ format: "quote"
9
+ status: "published"
10
+ visibility: "public"
11
+ summary_text: "在你能清楚复述作者的立场之前,你不许说\"我同意\"或\"我不同意\"。"
12
+ source_name: "《如何记住你读过的内容》"
13
+ source_url: "https://readwise-assets.s3.amazonaws.com/media/wisereads/articles/how-to-remember-everything-you/1031.pdf"
14
+ quote_text: "在你能清楚复述作者的立场之前,你不许说\"我同意\"或\"我不同意\"。"
15
+ collections:
16
+ - slug: "reading-notes"
17
+ title: "Reading Notes"
18
+ collected_at: "2026-09-21T04:31:29.000Z"
19
+ position: 0
20
+ pinned_at: null
21
+ created: "2026-09-21T04:31:29.000Z"
22
+ language: "zh-Hans"
23
+ ---
24
+
25
+
@@ -0,0 +1,35 @@
1
+ ---
2
+ id: "pst_01m313qb63e4e8cmetm7g1bsrr"
3
+ date: "2025-09-10T03:05:00.000Z"
4
+ updated: "2026-09-21T05:42:56.000Z"
5
+ slug: "2u5e5"
6
+ type: "post"
7
+ feed_id: "http://127.0.0.1:61670/2u5e5"
8
+ format: "note"
9
+ status: "published"
10
+ visibility: "public"
11
+ summary_text: "推荐一下武夷路上的 All Day Coffee,用来办公心情很好。"
12
+ collections:
13
+ - slug: "city-walks"
14
+ title: "City Walks"
15
+ collected_at: "2026-09-21T04:31:25.000Z"
16
+ position: 0
17
+ pinned_at: null
18
+ media:
19
+ - id: "med_01m313q1hme4e8cmby77dn66yy"
20
+ kind: "image"
21
+ src: "/media/med_01m313q1hme4e8cmby77dn66yy.webp"
22
+ position: 3055
23
+ alt: "咖啡馆的开阔工位区,大玻璃窗、绿植和空着的大理石桌"
24
+ width: 1000
25
+ height: 750
26
+ original_name: "cafe-wuyi-road.webp"
27
+ mime_type: "image/webp"
28
+ size: 55272
29
+ provider: "local"
30
+ storage_key: "media/sit_01kn8jq3t4famtyg9hjd074ckr/files/med_01m313q1hme4e8cmby77dn66yy.webp"
31
+ created: "2026-09-21T04:31:25.000Z"
32
+ language: "zh-Hans"
33
+ ---
34
+
35
+ 推荐一下武夷路上的 All Day Coffee,用来办公心情很好。
@@ -0,0 +1,18 @@
1
+ ---
2
+ id: "pst_01kn8jtzmzenf98tnj3x0bzmzk"
3
+ date: "2025-09-27T09:00:00.000Z"
4
+ updated: "2026-04-03T02:30:29.000Z"
5
+ slug: "0x4nv"
6
+ type: "post"
7
+ build:
8
+ render: "never"
9
+ list: "local"
10
+ format: "note"
11
+ status: "published"
12
+ visibility: "public"
13
+ summary_text: "I keep forgetting that plants mostly want consistency, not inspiration. Fair enough."
14
+ created: "2026-04-03T02:30:29.000Z"
15
+ weight: 2
16
+ ---
17
+
18
+ I keep forgetting that plants mostly want consistency, not inspiration. Fair enough.
@@ -0,0 +1,44 @@
1
+ ---
2
+ id: "pst_01kn8jty2henf98tmnw0xzbhet"
3
+ date: "2025-09-27T08:15:00.000Z"
4
+ updated: "2026-04-03T02:30:27.000Z"
5
+ slug: "41q27"
6
+ type: "post"
7
+ aliases:
8
+ - "/the-potting-mix-guide-i-keep-rereading/"
9
+ - "/0x4nv/"
10
+ - "/faqyt/"
11
+ feed_id: "http://127.0.0.1:61670/41q27"
12
+ format: "note"
13
+ status: "published"
14
+ visibility: "public"
15
+ summary_text: "Repotted the balcony herbs before breakfast. Basil was dramatic. Mint did not care at all."
16
+ collections:
17
+ - slug: "tiny-projects"
18
+ title: "Tiny Projects"
19
+ collected_at: "2026-04-03T02:30:27.000Z"
20
+ position: 0
21
+ pinned_at: null
22
+ - slug: "weekend-notes"
23
+ title: "Weekend Notes"
24
+ collected_at: "2026-04-03T02:30:27.000Z"
25
+ position: 1
26
+ pinned_at: null
27
+ media:
28
+ - id: "med_01kn8jtx8qenf98tm9ahxr48sw"
29
+ kind: "image"
30
+ src: "/media/med_01kn8jtx8qenf98tm9ahxr48sw.webp"
31
+ position: 3055
32
+ width: 1200
33
+ height: 900
34
+ original_name: "herbs-window.webp"
35
+ mime_type: "image/webp"
36
+ size: 13352
37
+ provider: "local"
38
+ storage_key: "media/sit_01kn8jq3t4famtyg9hjd074ckr/files/med_01kn8jtx8qenf98tm9ahxr48sw.webp"
39
+ created: "2026-04-03T02:30:27.000Z"
40
+ last_activity_at: "2025-09-27T16:50:00.000Z"
41
+ language: "en"
42
+ ---
43
+
44
+ Repotted the balcony herbs before breakfast. Basil was dramatic. Mint did not care at all.
@@ -0,0 +1,30 @@
1
+ ---
2
+ id: "pst_01kn8jv1anenf98tp9ngn8jbyj"
3
+ date: "2025-09-27T16:50:00.000Z"
4
+ updated: "2026-04-03T02:30:30.000Z"
5
+ slug: "faqyt"
6
+ type: "post"
7
+ build:
8
+ render: "never"
9
+ list: "local"
10
+ format: "note"
11
+ status: "published"
12
+ visibility: "public"
13
+ summary_text: "By late afternoon the basil was standing up again. I respect a fast recovery."
14
+ media:
15
+ - id: "med_01kn8jv0jdenf98tp6qr9zgjjc"
16
+ kind: "image"
17
+ src: "/media/med_01kn8jv0jdenf98tp6qr9zgjjc.webp"
18
+ position: 3055
19
+ width: 1200
20
+ height: 900
21
+ original_name: "balcony-light.webp"
22
+ mime_type: "image/webp"
23
+ size: 15058
24
+ provider: "local"
25
+ storage_key: "media/sit_01kn8jq3t4famtyg9hjd074ckr/files/med_01kn8jv0jdenf98tp6qr9zgjjc.webp"
26
+ created: "2026-04-03T02:30:30.000Z"
27
+ weight: 3
28
+ ---
29
+
30
+ By late afternoon the basil was standing up again. I respect a fast recovery.
@@ -0,0 +1,20 @@
1
+ ---
2
+ id: "pst_01kn8jtys8enf98tn2zvcq2hsm"
3
+ title: "The potting mix guide I keep rereading"
4
+ date: "2025-09-27T09:40:00.000Z"
5
+ updated: "2026-04-03T02:30:28.000Z"
6
+ slug: "the-potting-mix-guide-i-keep-rereading"
7
+ type: "post"
8
+ build:
9
+ render: "never"
10
+ list: "local"
11
+ format: "link"
12
+ status: "published"
13
+ visibility: "public"
14
+ summary_text: "Basic, clear, and good for confidence when I start overthinking dirt."
15
+ link_url: "https://www.rhs.org.uk/plants/types/houseplants/repotting"
16
+ created: "2026-04-03T02:30:28.000Z"
17
+ weight: 1
18
+ ---
19
+
20
+ Basic, clear, and good for confidence when I start overthinking dirt.
@@ -0,0 +1,23 @@
1
+ ---
2
+ id: "pst_01m313qd63e4e8cmfrestyc6qf"
3
+ date: "2025-10-18T12:15:00.000Z"
4
+ updated: "2026-09-21T05:42:54.000Z"
5
+ slug: "5kayp"
6
+ type: "post"
7
+ feed_id: "http://127.0.0.1:61670/5kayp"
8
+ format: "note"
9
+ status: "published"
10
+ visibility: "public"
11
+ summary_text: "一个人在家还是在街上更感到无聊呢?那肯定是在街上。因为一个人在家可太有意思了,在舒服的家里上网冲浪,互联网会填满所有无聊的时间;但是一个人在街上,那可就不一样了,你独自一人,被周边所有看起来幸福快乐的人包围。"
12
+ collections:
13
+ - slug: "weekend-notes"
14
+ title: "Weekend Notes"
15
+ collected_at: "2026-09-21T04:31:27.000Z"
16
+ position: 0
17
+ pinned_at: null
18
+ created: "2026-09-21T04:31:27.000Z"
19
+ language: "zh-Hans"
20
+ translation_group: "tgr_01m315g5kwf6ct88n3zf9m9ve1"
21
+ ---
22
+
23
+ 一个人在家还是在街上更感到无聊呢?那肯定是在街上。因为一个人在家可太有意思了,在舒服的家里上网冲浪,互联网会填满所有无聊的时间;但是一个人在街上,那可就不一样了,你独自一人,被周边所有看起来幸福快乐的人包围。
@@ -0,0 +1,31 @@
1
+ ---
2
+ id: "pst_01m317smmbf2297zew1waqqbz6"
3
+ date: "2026-03-06T13:40:00.000Z"
4
+ updated: "2026-09-21T05:51:21.000Z"
5
+ slug: "5ynfs"
6
+ type: "post"
7
+ aliases:
8
+ - "/hu597/"
9
+ feed_id: "http://127.0.0.1:61670/5ynfs"
10
+ format: "quote"
11
+ status: "published"
12
+ visibility: "public"
13
+ summary_text: "现在吃一块巧克力棒并不会让你不健康,就像不吃它也不会让你变得健康一样。今天存点钱并不会让你变得富有,就像不存钱也不会让你变得贫穷一样。今天读一本好书的一章并不会解决你的问题,就像不读它也不会让问题变得更糟一样。 在最初的那一天,那些对我们有益的选择与那些对我们有害的选择之间的区别并不明显。但随着日子一天天过去,周复一周,年复一年,十年又十年,这些微小的选择最终会带来天壤之别。"
14
+ source_name: "Farnam Street"
15
+ source_url: "https://fs.blog/small-steps-giant-leaps/"
16
+ quote_text: "现在吃一块巧克力棒并不会让你不健康,就像不吃它也不会让你变得健康一样。今天存点钱并不会让你变得富有,就像不存钱也不会让你变得贫穷一样。今天读一本好书的一章并不会解决你的问题,就像不读它也不会让问题变得更糟一样。
17
+
18
+
19
+ 在最初的那一天,那些对我们有益的选择与那些对我们有害的选择之间的区别并不明显。但随着日子一天天过去,周复一周,年复一年,十年又十年,这些微小的选择最终会带来天壤之别。"
20
+ collections:
21
+ - slug: "reading-notes"
22
+ title: "Reading Notes"
23
+ collected_at: "2026-09-21T05:42:35.000Z"
24
+ position: 0
25
+ pinned_at: null
26
+ created: "2026-09-21T05:42:35.000Z"
27
+ last_activity_at: "2026-03-07T02:05:00.000Z"
28
+ language: "zh-Hans"
29
+ ---
30
+
31
+
@@ -0,0 +1,21 @@
1
+ ---
2
+ id: "pst_01m317sp22f2297zfejzvjsn3r"
3
+ date: "2026-03-07T02:05:00.000Z"
4
+ updated: "2026-09-21T05:51:22.000Z"
5
+ slug: "hu597"
6
+ type: "post"
7
+ build:
8
+ render: "never"
9
+ list: "local"
10
+ format: "quote"
11
+ status: "published"
12
+ visibility: "public"
13
+ summary_text: "要想让你的选择产生复利效应,就必须保持一致性。高强度只能让你在短期内取得成效,但若想获得复利效应,就需要持之以恒。在没有立竿见影的回报时,我们虽然能保持高强度一段时间,但大多数人最终都会变得断断续续。"
14
+ source_name: "Farnam Street"
15
+ source_url: "https://fs.blog/small-steps-giant-leaps/"
16
+ quote_text: "要想让你的选择产生复利效应,就必须保持一致性。高强度只能让你在短期内取得成效,但若想获得复利效应,就需要持之以恒。在没有立竿见影的回报时,我们虽然能保持高强度一段时间,但大多数人最终都会变得断断续续。"
17
+ created: "2026-09-21T05:42:36.000Z"
18
+ weight: 1
19
+ ---
20
+
21
+
@@ -0,0 +1,5 @@
1
+ ---
2
+ title: "Jant Demo"
3
+ type: "home"
4
+ ---
5
+
@@ -0,0 +1,31 @@
1
+ ---
2
+ id: "pst_01kn8jv2anenf98tpt6kqt3xg6"
3
+ title: "A night heron field guide for my walk folder"
4
+ date: "2026-03-05T09:10:00.000Z"
5
+ updated: "2026-09-21T04:31:40.000Z"
6
+ slug: "a-night-heron-field-guide-for-my-walk-folder"
7
+ type: "post"
8
+ feed_id: "http://127.0.0.1:61670/a-night-heron-field-guide-for-my-walk-folder"
9
+ format: "link"
10
+ status: "published"
11
+ visibility: "public"
12
+ summary_text: "Posting this here so I can find it again the next time I see a suspiciously patient bird near the water."
13
+ link_url: "https://www.audubon.org/field-guide/bird/black-crowned-night-heron"
14
+ rating: 4
15
+ collections:
16
+ - slug: "city-walks"
17
+ title: "City Walks"
18
+ collected_at: "2026-04-03T02:30:32.000Z"
19
+ position: 0
20
+ pinned_at: null
21
+ - slug: "useful-links"
22
+ title: "Useful Links"
23
+ collected_at: "2026-04-03T02:30:32.000Z"
24
+ position: 1
25
+ pinned_at: null
26
+ created: "2026-04-03T02:30:32.000Z"
27
+ language: "en"
28
+ translation_group: "tgr_01m313qshhe4e8cms1jvmsbthy"
29
+ ---
30
+
31
+ Posting this here so I can find it again the next time I see a suspiciously patient bird near the water.
@@ -0,0 +1,36 @@
1
+ ---
2
+ id: "pst_01kn8jv2x0enf98tqf9hm0deme"
3
+ title: "A Quiet Saturday After a Busy Week"
4
+ date: "2025-08-03T09:10:00.000Z"
5
+ updated: "2026-04-03T02:30:32.000Z"
6
+ slug: "a-quiet-saturday-after-a-busy-week"
7
+ type: "post"
8
+ feed_id: "http://127.0.0.1:61670/a-quiet-saturday-after-a-busy-week"
9
+ format: "note"
10
+ status: "published"
11
+ visibility: "public"
12
+ summary_text: "Last week felt like six weeks compressed into five days. I spent most of it answering things, moving things, and promising myself I would slow down later. Today was the later I had in mind. Breakfast took an hour. I opened the windows even though it was still cold. I put the phone on the bookshelf and left it there long enough to hear the apartment settle down."
13
+ truncated: true
14
+ featured_at: "2026-04-03T02:30:32.000Z"
15
+ featured_post_ids:
16
+ - "pst_01kn8jv2x0enf98tqf9hm0deme"
17
+ featured_sort_at: "2025-08-03T09:10:00.000Z"
18
+ collections:
19
+ - slug: "weekend-notes"
20
+ title: "Weekend Notes"
21
+ collected_at: "2026-04-03T02:30:32.000Z"
22
+ position: 0
23
+ pinned_at: null
24
+ created: "2026-04-03T02:30:32.000Z"
25
+ language: "en"
26
+ ---
27
+
28
+ Last week felt like six weeks compressed into five days. I spent most of it answering things, moving things, and promising myself I would slow down later. Today was the later I had in mind.
29
+
30
+ Breakfast took an hour. I opened the windows even though it was still cold. I put the phone on the bookshelf and left it there long enough to hear the apartment settle down.
31
+
32
+ <!--more-->
33
+
34
+ What helped most was not turning the free day into a project. I made coffee, wiped the kitchen counter, read twenty pages, and sat in the chair by the window without trying to optimize anything.
35
+
36
+ A good day does not always need a headline. Sometimes it only needs enough room to happen.
@@ -0,0 +1,8 @@
1
+ ---
2
+ title: "Archive"
3
+ type: "archive"
4
+ outputs:
5
+ - "html"
6
+ - "rss"
7
+ ---
8
+
@@ -0,0 +1,30 @@
1
+ ---
2
+ id: "pst_01kn8jv3exenf98tqxkzk0sjck"
3
+ title: "Are.na is the only bookmark pile I still revisit"
4
+ date: "2025-10-15T14:15:00.000Z"
5
+ updated: "2026-04-03T02:30:33.000Z"
6
+ slug: "are-na-is-the-only-bookmark-pile-i-still-revisit"
7
+ type: "post"
8
+ feed_id: "http://127.0.0.1:61670/are-na-is-the-only-bookmark-pile-i-still-revisit"
9
+ format: "link"
10
+ status: "published"
11
+ visibility: "public"
12
+ summary_text: "Most saved links disappear into a hole. This one still feels calm enough to browse on purpose."
13
+ link_url: "https://www.are.na/"
14
+ rating: 4
15
+ collections:
16
+ - slug: "tiny-projects"
17
+ title: "Tiny Projects"
18
+ collected_at: "2026-04-03T02:30:33.000Z"
19
+ position: 0
20
+ pinned_at: null
21
+ - slug: "useful-links"
22
+ title: "Useful Links"
23
+ collected_at: "2026-04-03T02:30:33.000Z"
24
+ position: 1
25
+ pinned_at: null
26
+ created: "2026-04-03T02:30:33.000Z"
27
+ language: "en"
28
+ ---
29
+
30
+ Most saved links disappear into a hole. This one still feels calm enough to browse on purpose.
@@ -0,0 +1,37 @@
1
+ ---
2
+ id: "pst_01kn8jv4z8enf98trm559j8yeh"
3
+ title: "Bought Too Many Lemons Again"
4
+ date: "2025-11-09T09:20:00.000Z"
5
+ updated: "2026-04-03T02:30:34.000Z"
6
+ slug: "bought-too-many-lemons-again"
7
+ type: "post"
8
+ feed_id: "http://127.0.0.1:61670/bought-too-many-lemons-again"
9
+ format: "note"
10
+ status: "published"
11
+ visibility: "public"
12
+ summary_text: "Came home from the market with a bag of lemons, parsley, eggs, and zero idea what dinner was going to be. This keeps happening. I think part of me believes citrus counts as a plan."
13
+ collections:
14
+ - slug: "home-cooking"
15
+ title: "Home Cooking"
16
+ collected_at: "2026-04-03T02:30:34.000Z"
17
+ position: 0
18
+ pinned_at: null
19
+ media:
20
+ - id: "med_01kn8jv452enf98trbkwrvhvgd"
21
+ kind: "image"
22
+ src: "/media/med_01kn8jv452enf98trbkwrvhvgd.webp"
23
+ position: 3055
24
+ width: 1200
25
+ height: 900
26
+ original_name: "market-lemons.webp"
27
+ mime_type: "image/webp"
28
+ size: 16484
29
+ provider: "local"
30
+ storage_key: "media/sit_01kn8jq3t4famtyg9hjd074ckr/files/med_01kn8jv452enf98trbkwrvhvgd.webp"
31
+ created: "2026-04-03T02:30:34.000Z"
32
+ language: "en"
33
+ ---
34
+
35
+ Came home from the market with a bag of lemons, parsley, eggs, and zero idea what dinner was going to be.
36
+
37
+ This keeps happening. I think part of me believes citrus counts as a plan.