@geekity/cms 0.3.0 → 0.5.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 (660) hide show
  1. package/README.md +2217 -214
  2. package/admin/components/fields.njk +165 -0
  3. package/admin/layouts/base.njk +1 -1
  4. package/admin/layouts/settings-page.njk +26 -0
  5. package/admin/layouts/shell.njk +17 -3
  6. package/admin/pages/account/forgot.njk +47 -0
  7. package/admin/pages/account/login.njk +26 -0
  8. package/admin/pages/account/reset.njk +38 -0
  9. package/admin/pages/account/setup.njk +28 -0
  10. package/admin/pages/appearance/themes.njk +69 -0
  11. package/admin/pages/comments/all.njk +133 -0
  12. package/admin/{layouts/dashboard.njk → pages/dashboard/home.njk} +8 -15
  13. package/admin/{layouts/document-conflict.njk → pages/documents/conflict.njk} +1 -0
  14. package/admin/{layouts/document-editor.njk → pages/documents/editor.njk} +75 -59
  15. package/admin/{layouts/document-list.njk → pages/documents/list.njk} +19 -2
  16. package/admin/pages/documents/taxonomy.njk +95 -0
  17. package/admin/pages/federation/followers.njk +238 -0
  18. package/admin/pages/federation/settings.njk +77 -0
  19. package/admin/pages/media/library.njk +160 -0
  20. package/admin/pages/messages/all.njk +110 -0
  21. package/admin/pages/navigation/menus.njk +129 -0
  22. package/admin/{layouts → pages}/placeholder.njk +5 -1
  23. package/admin/pages/settings/discussion.njk +99 -0
  24. package/admin/pages/settings/email.njk +203 -0
  25. package/admin/pages/settings/general.njk +29 -0
  26. package/admin/pages/settings/permalinks.njk +50 -0
  27. package/admin/pages/settings/reading.njk +64 -0
  28. package/admin/pages/tools/content-index.njk +89 -0
  29. package/admin/pages/users/edit.njk +239 -0
  30. package/admin/pages/users/list.njk +51 -0
  31. package/admin/pages/users/new.njk +41 -0
  32. package/admin/static/admin.css +558 -3
  33. package/admin/static/copy.js +52 -0
  34. package/admin/static/editor.js +16 -16
  35. package/admin/static/slug.js +61 -0
  36. package/dist/access-log.d.ts +44 -0
  37. package/dist/access-log.d.ts.map +1 -0
  38. package/dist/access-log.js +71 -0
  39. package/dist/access-log.js.map +1 -0
  40. package/dist/admin/accounts.d.ts +413 -0
  41. package/dist/admin/accounts.d.ts.map +1 -0
  42. package/dist/admin/accounts.js +680 -0
  43. package/dist/admin/accounts.js.map +1 -0
  44. package/dist/admin/appearance.d.ts +80 -0
  45. package/dist/admin/appearance.d.ts.map +1 -0
  46. package/dist/admin/appearance.js +136 -0
  47. package/dist/admin/appearance.js.map +1 -0
  48. package/dist/admin/comments.d.ts +90 -0
  49. package/dist/admin/comments.d.ts.map +1 -0
  50. package/dist/admin/comments.js +244 -0
  51. package/dist/admin/comments.js.map +1 -0
  52. package/dist/admin/credentials.d.ts +26 -2
  53. package/dist/admin/credentials.d.ts.map +1 -1
  54. package/dist/admin/credentials.js +35 -2
  55. package/dist/admin/credentials.js.map +1 -1
  56. package/dist/admin/documents.d.ts +117 -10
  57. package/dist/admin/documents.d.ts.map +1 -1
  58. package/dist/admin/documents.js +328 -41
  59. package/dist/admin/documents.js.map +1 -1
  60. package/dist/admin/federation.d.ts +161 -50
  61. package/dist/admin/federation.d.ts.map +1 -1
  62. package/dist/admin/federation.js +235 -93
  63. package/dist/admin/federation.js.map +1 -1
  64. package/dist/admin/formatting.d.ts +20 -0
  65. package/dist/admin/formatting.d.ts.map +1 -0
  66. package/dist/admin/formatting.js +72 -0
  67. package/dist/admin/formatting.js.map +1 -0
  68. package/dist/admin/headers.d.ts +65 -0
  69. package/dist/admin/headers.d.ts.map +1 -0
  70. package/dist/admin/headers.js +104 -0
  71. package/dist/admin/headers.js.map +1 -0
  72. package/dist/admin/index.d.ts +38 -12
  73. package/dist/admin/index.d.ts.map +1 -1
  74. package/dist/admin/index.js +25 -7
  75. package/dist/admin/index.js.map +1 -1
  76. package/dist/admin/media.d.ts +168 -0
  77. package/dist/admin/media.d.ts.map +1 -0
  78. package/dist/admin/media.js +295 -0
  79. package/dist/admin/media.js.map +1 -0
  80. package/dist/admin/menu.d.ts +79 -0
  81. package/dist/admin/menu.d.ts.map +1 -0
  82. package/dist/admin/menu.js +143 -0
  83. package/dist/admin/menu.js.map +1 -0
  84. package/dist/admin/messages.d.ts +80 -0
  85. package/dist/admin/messages.d.ts.map +1 -0
  86. package/dist/admin/messages.js +152 -0
  87. package/dist/admin/messages.js.map +1 -0
  88. package/dist/admin/navigation.d.ts +155 -0
  89. package/dist/admin/navigation.d.ts.map +1 -0
  90. package/dist/admin/navigation.js +292 -0
  91. package/dist/admin/navigation.js.map +1 -0
  92. package/dist/admin/preview.d.ts.map +1 -1
  93. package/dist/admin/preview.js +31 -7
  94. package/dist/admin/preview.js.map +1 -1
  95. package/dist/admin/recovery.d.ts +92 -0
  96. package/dist/admin/recovery.d.ts.map +1 -0
  97. package/dist/admin/recovery.js +229 -0
  98. package/dist/admin/recovery.js.map +1 -0
  99. package/dist/admin/routes.d.ts +0 -20
  100. package/dist/admin/routes.d.ts.map +1 -1
  101. package/dist/admin/routes.js +164 -105
  102. package/dist/admin/routes.js.map +1 -1
  103. package/dist/admin/session.d.ts +17 -3
  104. package/dist/admin/session.d.ts.map +1 -1
  105. package/dist/admin/session.js +19 -5
  106. package/dist/admin/session.js.map +1 -1
  107. package/dist/admin/settings-discussion.d.ts +37 -0
  108. package/dist/admin/settings-discussion.d.ts.map +1 -0
  109. package/dist/admin/settings-discussion.js +117 -0
  110. package/dist/admin/settings-discussion.js.map +1 -0
  111. package/dist/admin/settings-email.d.ts +54 -0
  112. package/dist/admin/settings-email.d.ts.map +1 -0
  113. package/dist/admin/settings-email.js +189 -0
  114. package/dist/admin/settings-email.js.map +1 -0
  115. package/dist/admin/settings-federation.d.ts +48 -0
  116. package/dist/admin/settings-federation.d.ts.map +1 -0
  117. package/dist/admin/settings-federation.js +123 -0
  118. package/dist/admin/settings-federation.js.map +1 -0
  119. package/dist/admin/settings-general.d.ts +12 -0
  120. package/dist/admin/settings-general.d.ts.map +1 -0
  121. package/dist/admin/settings-general.js +48 -0
  122. package/dist/admin/settings-general.js.map +1 -0
  123. package/dist/admin/settings-page.d.ts +119 -0
  124. package/dist/admin/settings-page.d.ts.map +1 -0
  125. package/dist/admin/settings-page.js +132 -0
  126. package/dist/admin/settings-page.js.map +1 -0
  127. package/dist/admin/settings-pages.d.ts +30 -0
  128. package/dist/admin/settings-pages.d.ts.map +1 -0
  129. package/dist/admin/settings-pages.js +43 -0
  130. package/dist/admin/settings-pages.js.map +1 -0
  131. package/dist/admin/settings-permalinks.d.ts +16 -0
  132. package/dist/admin/settings-permalinks.d.ts.map +1 -0
  133. package/dist/admin/settings-permalinks.js +32 -0
  134. package/dist/admin/settings-permalinks.js.map +1 -0
  135. package/dist/admin/settings-reading.d.ts +34 -0
  136. package/dist/admin/settings-reading.d.ts.map +1 -0
  137. package/dist/admin/settings-reading.js +49 -0
  138. package/dist/admin/settings-reading.js.map +1 -0
  139. package/dist/admin/settings.d.ts +339 -96
  140. package/dist/admin/settings.d.ts.map +1 -1
  141. package/dist/admin/settings.js +600 -308
  142. package/dist/admin/settings.js.map +1 -1
  143. package/dist/admin/store.d.ts +606 -152
  144. package/dist/admin/store.d.ts.map +1 -1
  145. package/dist/admin/store.js +863 -268
  146. package/dist/admin/store.js.map +1 -1
  147. package/dist/admin/taxonomy.d.ts +114 -0
  148. package/dist/admin/taxonomy.d.ts.map +1 -0
  149. package/dist/admin/taxonomy.js +289 -0
  150. package/dist/admin/taxonomy.js.map +1 -0
  151. package/dist/admin/templates.d.ts +46 -14
  152. package/dist/admin/templates.d.ts.map +1 -1
  153. package/dist/admin/templates.js +46 -14
  154. package/dist/admin/templates.js.map +1 -1
  155. package/dist/admin/throttle.d.ts +84 -0
  156. package/dist/admin/throttle.d.ts.map +1 -0
  157. package/dist/admin/throttle.js +143 -0
  158. package/dist/admin/throttle.js.map +1 -0
  159. package/dist/admin/tools.d.ts +111 -0
  160. package/dist/admin/tools.d.ts.map +1 -0
  161. package/dist/admin/tools.js +182 -0
  162. package/dist/admin/tools.js.map +1 -0
  163. package/dist/admin/uploads.d.ts +28 -2
  164. package/dist/admin/uploads.d.ts.map +1 -1
  165. package/dist/admin/uploads.js +43 -4
  166. package/dist/admin/uploads.js.map +1 -1
  167. package/dist/admin/users.d.ts +100 -13
  168. package/dist/admin/users.d.ts.map +1 -1
  169. package/dist/admin/users.js +412 -39
  170. package/dist/admin/users.js.map +1 -1
  171. package/dist/cache.d.ts +141 -0
  172. package/dist/cache.d.ts.map +1 -0
  173. package/dist/cache.js +207 -0
  174. package/dist/cache.js.map +1 -0
  175. package/dist/cli.d.ts +14 -2
  176. package/dist/cli.d.ts.map +1 -1
  177. package/dist/cli.js +429 -21
  178. package/dist/cli.js.map +1 -1
  179. package/dist/comments/akismet.d.ts +130 -0
  180. package/dist/comments/akismet.d.ts.map +1 -0
  181. package/dist/comments/akismet.js +274 -0
  182. package/dist/comments/akismet.js.map +1 -0
  183. package/dist/comments/conversation.d.ts +29 -0
  184. package/dist/comments/conversation.d.ts.map +1 -0
  185. package/dist/comments/conversation.js +60 -0
  186. package/dist/comments/conversation.js.map +1 -0
  187. package/dist/comments/form.d.ts +123 -0
  188. package/dist/comments/form.d.ts.map +1 -0
  189. package/dist/comments/form.js +79 -0
  190. package/dist/comments/form.js.map +1 -0
  191. package/dist/comments/index.d.ts +16 -0
  192. package/dist/comments/index.d.ts.map +1 -0
  193. package/dist/comments/index.js +10 -0
  194. package/dist/comments/index.js.map +1 -0
  195. package/dist/comments/markdown.d.ts +8 -0
  196. package/dist/comments/markdown.d.ts.map +1 -0
  197. package/dist/comments/markdown.js +85 -0
  198. package/dist/comments/markdown.js.map +1 -0
  199. package/dist/comments/moderate.d.ts +71 -0
  200. package/dist/comments/moderate.d.ts.map +1 -0
  201. package/dist/comments/moderate.js +88 -0
  202. package/dist/comments/moderate.js.map +1 -0
  203. package/dist/comments/policy.d.ts +57 -0
  204. package/dist/comments/policy.d.ts.map +1 -0
  205. package/dist/comments/policy.js +80 -0
  206. package/dist/comments/policy.js.map +1 -0
  207. package/dist/comments/records.d.ts +266 -0
  208. package/dist/comments/records.d.ts.map +1 -0
  209. package/dist/comments/records.js +487 -0
  210. package/dist/comments/records.js.map +1 -0
  211. package/dist/comments/routes.d.ts +60 -0
  212. package/dist/comments/routes.d.ts.map +1 -0
  213. package/dist/comments/routes.js +212 -0
  214. package/dist/comments/routes.js.map +1 -0
  215. package/dist/comments/submission.d.ts +297 -0
  216. package/dist/comments/submission.d.ts.map +1 -0
  217. package/dist/comments/submission.js +280 -0
  218. package/dist/comments/submission.js.map +1 -0
  219. package/dist/comments/viewer.d.ts +21 -0
  220. package/dist/comments/viewer.d.ts.map +1 -0
  221. package/dist/comments/viewer.js +45 -0
  222. package/dist/comments/viewer.js.map +1 -0
  223. package/dist/config.d.ts +225 -5
  224. package/dist/config.d.ts.map +1 -1
  225. package/dist/config.js +121 -6
  226. package/dist/config.js.map +1 -1
  227. package/dist/contact/delivery.d.ts +60 -0
  228. package/dist/contact/delivery.d.ts.map +1 -0
  229. package/dist/contact/delivery.js +87 -0
  230. package/dist/contact/delivery.js.map +1 -0
  231. package/dist/contact/form.d.ts +130 -0
  232. package/dist/contact/form.d.ts.map +1 -0
  233. package/dist/contact/form.js +163 -0
  234. package/dist/contact/form.js.map +1 -0
  235. package/dist/contact/index.d.ts +17 -0
  236. package/dist/contact/index.d.ts.map +1 -0
  237. package/dist/contact/index.js +13 -0
  238. package/dist/contact/index.js.map +1 -0
  239. package/dist/contact/records.d.ts +124 -0
  240. package/dist/contact/records.d.ts.map +1 -0
  241. package/dist/contact/records.js +218 -0
  242. package/dist/contact/records.js.map +1 -0
  243. package/dist/contact/routes.d.ts +17 -0
  244. package/dist/contact/routes.d.ts.map +1 -0
  245. package/dist/contact/routes.js +127 -0
  246. package/dist/contact/routes.js.map +1 -0
  247. package/dist/contact/submission.d.ts +103 -0
  248. package/dist/contact/submission.d.ts.map +1 -0
  249. package/dist/contact/submission.js +166 -0
  250. package/dist/contact/submission.js.map +1 -0
  251. package/dist/content/document.d.ts +7 -2
  252. package/dist/content/document.d.ts.map +1 -1
  253. package/dist/content/document.js +1 -0
  254. package/dist/content/document.js.map +1 -1
  255. package/dist/content/index.d.ts +7 -2
  256. package/dist/content/index.d.ts.map +1 -1
  257. package/dist/content/index.js +4 -1
  258. package/dist/content/index.js.map +1 -1
  259. package/dist/content/markdown.d.ts.map +1 -1
  260. package/dist/content/markdown.js +24 -2
  261. package/dist/content/markdown.js.map +1 -1
  262. package/dist/content/parser.d.ts.map +1 -1
  263. package/dist/content/parser.js +11 -4
  264. package/dist/content/parser.js.map +1 -1
  265. package/dist/content/save.d.ts +5 -0
  266. package/dist/content/save.d.ts.map +1 -1
  267. package/dist/content/save.js +44 -1
  268. package/dist/content/save.js.map +1 -1
  269. package/dist/content/schedule.d.ts +125 -0
  270. package/dist/content/schedule.d.ts.map +1 -0
  271. package/dist/content/schedule.js +207 -0
  272. package/dist/content/schedule.js.map +1 -0
  273. package/dist/content/search.d.ts +64 -0
  274. package/dist/content/search.d.ts.map +1 -0
  275. package/dist/content/search.js +136 -0
  276. package/dist/content/search.js.map +1 -0
  277. package/dist/content/store.d.ts +220 -7
  278. package/dist/content/store.d.ts.map +1 -1
  279. package/dist/content/store.js +392 -67
  280. package/dist/content/store.js.map +1 -1
  281. package/dist/content/sync.d.ts +7 -1
  282. package/dist/content/sync.d.ts.map +1 -1
  283. package/dist/content/sync.js +18 -10
  284. package/dist/content/sync.js.map +1 -1
  285. package/dist/content/time.d.ts +56 -0
  286. package/dist/content/time.d.ts.map +1 -0
  287. package/dist/content/time.js +141 -0
  288. package/dist/content/time.js.map +1 -0
  289. package/dist/content/writer.d.ts.map +1 -1
  290. package/dist/content/writer.js +3 -0
  291. package/dist/content/writer.js.map +1 -1
  292. package/dist/env.d.ts +70 -5
  293. package/dist/env.d.ts.map +1 -1
  294. package/dist/federation/actor.d.ts +95 -41
  295. package/dist/federation/actor.d.ts.map +1 -1
  296. package/dist/federation/actor.js +180 -53
  297. package/dist/federation/actor.js.map +1 -1
  298. package/dist/federation/article.d.ts +44 -17
  299. package/dist/federation/article.d.ts.map +1 -1
  300. package/dist/federation/article.js +98 -46
  301. package/dist/federation/article.js.map +1 -1
  302. package/dist/federation/delivery.d.ts +63 -15
  303. package/dist/federation/delivery.d.ts.map +1 -1
  304. package/dist/federation/delivery.js +154 -80
  305. package/dist/federation/delivery.js.map +1 -1
  306. package/dist/federation/federation.d.ts +22 -17
  307. package/dist/federation/federation.d.ts.map +1 -1
  308. package/dist/federation/federation.js +98 -77
  309. package/dist/federation/federation.js.map +1 -1
  310. package/dist/federation/followers.d.ts +3 -2
  311. package/dist/federation/followers.d.ts.map +1 -1
  312. package/dist/federation/followers.js +6 -5
  313. package/dist/federation/followers.js.map +1 -1
  314. package/dist/federation/import-wordpress.d.ts +128 -0
  315. package/dist/federation/import-wordpress.d.ts.map +1 -0
  316. package/dist/federation/import-wordpress.js +426 -0
  317. package/dist/federation/import-wordpress.js.map +1 -0
  318. package/dist/federation/inbox.d.ts +36 -13
  319. package/dist/federation/inbox.d.ts.map +1 -1
  320. package/dist/federation/inbox.js +120 -49
  321. package/dist/federation/inbox.js.map +1 -1
  322. package/dist/federation/index.d.ts +22 -10
  323. package/dist/federation/index.d.ts.map +1 -1
  324. package/dist/federation/index.js +13 -8
  325. package/dist/federation/index.js.map +1 -1
  326. package/dist/federation/keys.d.ts +98 -20
  327. package/dist/federation/keys.d.ts.map +1 -1
  328. package/dist/federation/keys.js +269 -39
  329. package/dist/federation/keys.js.map +1 -1
  330. package/dist/federation/mount.d.ts +46 -10
  331. package/dist/federation/mount.d.ts.map +1 -1
  332. package/dist/federation/mount.js +300 -28
  333. package/dist/federation/mount.js.map +1 -1
  334. package/dist/federation/paths.d.ts +23 -35
  335. package/dist/federation/paths.d.ts.map +1 -1
  336. package/dist/federation/paths.js +26 -39
  337. package/dist/federation/paths.js.map +1 -1
  338. package/dist/federation/records.d.ts +223 -0
  339. package/dist/federation/records.d.ts.map +1 -0
  340. package/dist/federation/records.js +506 -0
  341. package/dist/federation/records.js.map +1 -0
  342. package/dist/federation/relays.d.ts +114 -0
  343. package/dist/federation/relays.d.ts.map +1 -0
  344. package/dist/federation/relays.js +290 -0
  345. package/dist/federation/relays.js.map +1 -0
  346. package/dist/federation/replies.d.ts +80 -0
  347. package/dist/federation/replies.d.ts.map +1 -0
  348. package/dist/federation/replies.js +166 -0
  349. package/dist/federation/replies.js.map +1 -0
  350. package/dist/federation/wordpress.d.ts +131 -0
  351. package/dist/federation/wordpress.d.ts.map +1 -0
  352. package/dist/federation/wordpress.js +341 -0
  353. package/dist/federation/wordpress.js.map +1 -0
  354. package/dist/files/atomic.d.ts +103 -0
  355. package/dist/files/atomic.d.ts.map +1 -0
  356. package/dist/files/atomic.js +150 -0
  357. package/dist/files/atomic.js.map +1 -0
  358. package/dist/files/index.d.ts +3 -0
  359. package/dist/files/index.d.ts.map +1 -0
  360. package/dist/files/index.js +2 -0
  361. package/dist/files/index.js.map +1 -0
  362. package/dist/forms/protection.d.ts +85 -0
  363. package/dist/forms/protection.d.ts.map +1 -0
  364. package/dist/forms/protection.js +116 -0
  365. package/dist/forms/protection.js.map +1 -0
  366. package/dist/images/icons.d.ts +59 -0
  367. package/dist/images/icons.d.ts.map +1 -0
  368. package/dist/images/icons.js +131 -0
  369. package/dist/images/icons.js.map +1 -0
  370. package/dist/images/index.d.ts +7 -0
  371. package/dist/images/index.d.ts.map +1 -0
  372. package/dist/images/index.js +4 -0
  373. package/dist/images/index.js.map +1 -0
  374. package/dist/images/markup.d.ts +47 -0
  375. package/dist/images/markup.d.ts.map +1 -0
  376. package/dist/images/markup.js +175 -0
  377. package/dist/images/markup.js.map +1 -0
  378. package/dist/images/paths.d.ts +34 -0
  379. package/dist/images/paths.d.ts.map +1 -0
  380. package/dist/images/paths.js +41 -0
  381. package/dist/images/paths.js.map +1 -0
  382. package/dist/images/variants.d.ts +104 -0
  383. package/dist/images/variants.d.ts.map +1 -0
  384. package/dist/images/variants.js +320 -0
  385. package/dist/images/variants.js.map +1 -0
  386. package/dist/index.d.ts +123 -19
  387. package/dist/index.d.ts.map +1 -1
  388. package/dist/index.js +344 -25
  389. package/dist/index.js.map +1 -1
  390. package/dist/init.d.ts +18 -0
  391. package/dist/init.d.ts.map +1 -1
  392. package/dist/init.js +34 -3
  393. package/dist/init.js.map +1 -1
  394. package/dist/mail/brevo.d.ts +35 -0
  395. package/dist/mail/brevo.d.ts.map +1 -0
  396. package/dist/mail/brevo.js +85 -0
  397. package/dist/mail/brevo.js.map +1 -0
  398. package/dist/mail/credentials.d.ts +62 -0
  399. package/dist/mail/credentials.d.ts.map +1 -0
  400. package/dist/mail/credentials.js +86 -0
  401. package/dist/mail/credentials.js.map +1 -0
  402. package/dist/mail/index.d.ts +15 -0
  403. package/dist/mail/index.d.ts.map +1 -0
  404. package/dist/mail/index.js +8 -0
  405. package/dist/mail/index.js.map +1 -0
  406. package/dist/mail/memory.d.ts +35 -0
  407. package/dist/mail/memory.d.ts.map +1 -0
  408. package/dist/mail/memory.js +29 -0
  409. package/dist/mail/memory.js.map +1 -0
  410. package/dist/mail/provider.d.ts +80 -0
  411. package/dist/mail/provider.d.ts.map +1 -0
  412. package/dist/mail/provider.js +23 -0
  413. package/dist/mail/provider.js.map +1 -0
  414. package/dist/mail/service.d.ts +156 -0
  415. package/dist/mail/service.d.ts.map +1 -0
  416. package/dist/mail/service.js +265 -0
  417. package/dist/mail/service.js.map +1 -0
  418. package/dist/mail/smtp.d.ts +39 -0
  419. package/dist/mail/smtp.d.ts.map +1 -0
  420. package/dist/mail/smtp.js +58 -0
  421. package/dist/mail/smtp.js.map +1 -0
  422. package/dist/mail/templates.d.ts +91 -0
  423. package/dist/mail/templates.d.ts.map +1 -0
  424. package/dist/mail/templates.js +69 -0
  425. package/dist/mail/templates.js.map +1 -0
  426. package/dist/notifications/comments.d.ts +66 -0
  427. package/dist/notifications/comments.d.ts.map +1 -0
  428. package/dist/notifications/comments.js +151 -0
  429. package/dist/notifications/comments.js.map +1 -0
  430. package/dist/notifications/digest.d.ts +135 -0
  431. package/dist/notifications/digest.d.ts.map +1 -0
  432. package/dist/notifications/digest.js +287 -0
  433. package/dist/notifications/digest.js.map +1 -0
  434. package/dist/notifications/index.d.ts +13 -0
  435. package/dist/notifications/index.d.ts.map +1 -0
  436. package/dist/notifications/index.js +8 -0
  437. package/dist/notifications/index.js.map +1 -0
  438. package/dist/notifications/links.d.ts +60 -0
  439. package/dist/notifications/links.d.ts.map +1 -0
  440. package/dist/notifications/links.js +63 -0
  441. package/dist/notifications/links.js.map +1 -0
  442. package/dist/notifications/optouts.d.ts +48 -0
  443. package/dist/notifications/optouts.d.ts.map +1 -0
  444. package/dist/notifications/optouts.js +93 -0
  445. package/dist/notifications/optouts.js.map +1 -0
  446. package/dist/notifications/preferences.d.ts +158 -0
  447. package/dist/notifications/preferences.d.ts.map +1 -0
  448. package/dist/notifications/preferences.js +195 -0
  449. package/dist/notifications/preferences.js.map +1 -0
  450. package/dist/notifications/routes.d.ts +28 -0
  451. package/dist/notifications/routes.d.ts.map +1 -0
  452. package/dist/notifications/routes.js +184 -0
  453. package/dist/notifications/routes.js.map +1 -0
  454. package/dist/notifications/tokens.d.ts +60 -0
  455. package/dist/notifications/tokens.d.ts.map +1 -0
  456. package/dist/notifications/tokens.js +125 -0
  457. package/dist/notifications/tokens.js.map +1 -0
  458. package/dist/notify.d.ts +84 -0
  459. package/dist/notify.d.ts.map +1 -0
  460. package/dist/notify.js +149 -0
  461. package/dist/notify.js.map +1 -0
  462. package/dist/web/archive.d.ts +49 -0
  463. package/dist/web/archive.d.ts.map +1 -0
  464. package/dist/web/archive.js +59 -0
  465. package/dist/web/archive.js.map +1 -0
  466. package/dist/web/assets.d.ts +6 -5
  467. package/dist/web/assets.d.ts.map +1 -1
  468. package/dist/web/assets.js +5 -7
  469. package/dist/web/assets.js.map +1 -1
  470. package/dist/web/authors.d.ts +143 -0
  471. package/dist/web/authors.d.ts.map +1 -0
  472. package/dist/web/authors.js +178 -0
  473. package/dist/web/authors.js.map +1 -0
  474. package/dist/web/comments.d.ts +60 -0
  475. package/dist/web/comments.d.ts.map +1 -0
  476. package/dist/web/comments.js +207 -0
  477. package/dist/web/comments.js.map +1 -0
  478. package/dist/web/context.d.ts +162 -28
  479. package/dist/web/context.d.ts.map +1 -1
  480. package/dist/web/context.js +123 -26
  481. package/dist/web/context.js.map +1 -1
  482. package/dist/web/conversation.d.ts +209 -0
  483. package/dist/web/conversation.d.ts.map +1 -0
  484. package/dist/web/conversation.js +557 -0
  485. package/dist/web/conversation.js.map +1 -0
  486. package/dist/web/documents.d.ts +36 -6
  487. package/dist/web/documents.d.ts.map +1 -1
  488. package/dist/web/documents.js +52 -10
  489. package/dist/web/documents.js.map +1 -1
  490. package/dist/web/feed-atom.d.ts +22 -0
  491. package/dist/web/feed-atom.d.ts.map +1 -0
  492. package/dist/web/feed-atom.js +83 -0
  493. package/dist/web/feed-atom.js.map +1 -0
  494. package/dist/web/feed-item.d.ts +145 -0
  495. package/dist/web/feed-item.d.ts.map +1 -0
  496. package/dist/web/feed-item.js +120 -0
  497. package/dist/web/feed-item.js.map +1 -0
  498. package/dist/web/feed-json.d.ts +79 -0
  499. package/dist/web/feed-json.d.ts.map +1 -0
  500. package/dist/web/feed-json.js +53 -0
  501. package/dist/web/feed-json.js.map +1 -0
  502. package/dist/web/feed-rss.d.ts +26 -0
  503. package/dist/web/feed-rss.d.ts.map +1 -0
  504. package/dist/web/feed-rss.js +203 -0
  505. package/dist/web/feed-rss.js.map +1 -0
  506. package/dist/web/feed-source.d.ts +244 -0
  507. package/dist/web/feed-source.d.ts.map +1 -0
  508. package/dist/web/feed-source.js +201 -0
  509. package/dist/web/feed-source.js.map +1 -0
  510. package/dist/web/feed-xml.d.ts +63 -0
  511. package/dist/web/feed-xml.d.ts.map +1 -0
  512. package/dist/web/feed-xml.js +116 -0
  513. package/dist/web/feed-xml.js.map +1 -0
  514. package/dist/web/feeds.d.ts +31 -96
  515. package/dist/web/feeds.d.ts.map +1 -1
  516. package/dist/web/feeds.js +94 -198
  517. package/dist/web/feeds.js.map +1 -1
  518. package/dist/web/health.d.ts +31 -0
  519. package/dist/web/health.d.ts.map +1 -0
  520. package/dist/web/health.js +44 -0
  521. package/dist/web/health.js.map +1 -0
  522. package/dist/web/index.d.ts +30 -10
  523. package/dist/web/index.d.ts.map +1 -1
  524. package/dist/web/index.js +18 -7
  525. package/dist/web/index.js.map +1 -1
  526. package/dist/web/navigation.d.ts +195 -0
  527. package/dist/web/navigation.d.ts.map +1 -0
  528. package/dist/web/navigation.js +300 -0
  529. package/dist/web/navigation.js.map +1 -0
  530. package/dist/web/negotiate.d.ts +31 -0
  531. package/dist/web/negotiate.d.ts.map +1 -1
  532. package/dist/web/negotiate.js +31 -11
  533. package/dist/web/negotiate.js.map +1 -1
  534. package/dist/web/recent.d.ts +43 -0
  535. package/dist/web/recent.d.ts.map +1 -0
  536. package/dist/web/recent.js +37 -0
  537. package/dist/web/recent.js.map +1 -0
  538. package/dist/web/render.d.ts +203 -9
  539. package/dist/web/render.d.ts.map +1 -1
  540. package/dist/web/render.js +341 -17
  541. package/dist/web/render.js.map +1 -1
  542. package/dist/web/routes.d.ts +25 -8
  543. package/dist/web/routes.d.ts.map +1 -1
  544. package/dist/web/routes.js +854 -93
  545. package/dist/web/routes.js.map +1 -1
  546. package/dist/web/sanitize.d.ts +19 -0
  547. package/dist/web/sanitize.d.ts.map +1 -0
  548. package/dist/web/sanitize.js +272 -0
  549. package/dist/web/sanitize.js.map +1 -0
  550. package/dist/web/search.d.ts +79 -0
  551. package/dist/web/search.d.ts.map +1 -0
  552. package/dist/web/search.js +94 -0
  553. package/dist/web/search.js.map +1 -0
  554. package/dist/web/sitemap.d.ts +120 -0
  555. package/dist/web/sitemap.d.ts.map +1 -0
  556. package/dist/web/sitemap.js +199 -0
  557. package/dist/web/sitemap.js.map +1 -0
  558. package/dist/web/taxonomy.d.ts +152 -0
  559. package/dist/web/taxonomy.d.ts.map +1 -0
  560. package/dist/web/taxonomy.js +237 -0
  561. package/dist/web/taxonomy.js.map +1 -0
  562. package/dist/web/templates.d.ts +54 -16
  563. package/dist/web/templates.d.ts.map +1 -1
  564. package/dist/web/templates.js +109 -28
  565. package/dist/web/templates.js.map +1 -1
  566. package/dist/web/themes.d.ts +226 -0
  567. package/dist/web/themes.d.ts.map +1 -0
  568. package/dist/web/themes.js +314 -0
  569. package/dist/web/themes.js.map +1 -0
  570. package/dist/webmention/discovery.d.ts +51 -0
  571. package/dist/webmention/discovery.d.ts.map +1 -0
  572. package/dist/webmention/discovery.js +176 -0
  573. package/dist/webmention/discovery.js.map +1 -0
  574. package/dist/webmention/html.d.ts +71 -0
  575. package/dist/webmention/html.d.ts.map +1 -0
  576. package/dist/webmention/html.js +285 -0
  577. package/dist/webmention/html.js.map +1 -0
  578. package/dist/webmention/index.d.ts +12 -0
  579. package/dist/webmention/index.d.ts.map +1 -0
  580. package/dist/webmention/index.js +8 -0
  581. package/dist/webmention/index.js.map +1 -0
  582. package/dist/webmention/links.d.ts +18 -0
  583. package/dist/webmention/links.d.ts.map +1 -0
  584. package/dist/webmention/links.js +64 -0
  585. package/dist/webmention/links.js.map +1 -0
  586. package/dist/webmention/microformats.d.ts +93 -0
  587. package/dist/webmention/microformats.d.ts.map +1 -0
  588. package/dist/webmention/microformats.js +376 -0
  589. package/dist/webmention/microformats.js.map +1 -0
  590. package/dist/webmention/receive.d.ts +141 -0
  591. package/dist/webmention/receive.d.ts.map +1 -0
  592. package/dist/webmention/receive.js +264 -0
  593. package/dist/webmention/receive.js.map +1 -0
  594. package/dist/webmention/routes.d.ts +37 -0
  595. package/dist/webmention/routes.d.ts.map +1 -0
  596. package/dist/webmention/routes.js +75 -0
  597. package/dist/webmention/routes.js.map +1 -0
  598. package/dist/webmention/service.d.ts +94 -0
  599. package/dist/webmention/service.d.ts.map +1 -0
  600. package/dist/webmention/service.js +207 -0
  601. package/dist/webmention/service.js.map +1 -0
  602. package/package.json +11 -6
  603. package/templates/site/content/_data/site.json +8 -0
  604. package/templates/site/content/pages/about.md +7 -0
  605. package/templates/site/content/posts/2026-01-01-hello-world.md +5 -3
  606. package/templates/site/geekity.config.ts +11 -1
  607. package/templates/site/tsconfig.json +1 -1
  608. package/themes/default/README.md +1216 -50
  609. package/themes/default/layouts/404.njk +2 -3
  610. package/themes/default/layouts/author.njk +36 -0
  611. package/themes/default/layouts/base.njk +161 -31
  612. package/themes/default/layouts/category.njk +27 -0
  613. package/themes/default/layouts/front-page.njk +56 -0
  614. package/themes/default/layouts/home.njk +17 -1
  615. package/themes/default/layouts/page.njk +57 -5
  616. package/themes/default/layouts/post.njk +78 -19
  617. package/themes/default/layouts/search.njk +57 -0
  618. package/themes/default/layouts/tag.njk +3 -6
  619. package/themes/default/mail/comment-digest.html.njk +37 -0
  620. package/themes/default/mail/comment-digest.subject.njk +3 -0
  621. package/themes/default/mail/comment-digest.txt.njk +40 -0
  622. package/themes/default/mail/comment-pending.html.njk +27 -0
  623. package/themes/default/mail/comment-pending.subject.njk +2 -0
  624. package/themes/default/mail/comment-pending.txt.njk +24 -0
  625. package/themes/default/mail/comment-reply.html.njk +21 -0
  626. package/themes/default/mail/comment-reply.subject.njk +2 -0
  627. package/themes/default/mail/comment-reply.txt.njk +22 -0
  628. package/themes/default/mail/contact-message.html.njk +24 -0
  629. package/themes/default/mail/contact-message.subject.njk +5 -0
  630. package/themes/default/mail/contact-message.txt.njk +20 -0
  631. package/themes/default/mail/password-changed.html.njk +18 -0
  632. package/themes/default/mail/password-changed.subject.njk +2 -0
  633. package/themes/default/mail/password-changed.txt.njk +17 -0
  634. package/themes/default/mail/password-reset.html.njk +22 -0
  635. package/themes/default/mail/password-reset.subject.njk +2 -0
  636. package/themes/default/mail/password-reset.txt.njk +18 -0
  637. package/themes/default/mail/test.html.njk +14 -0
  638. package/themes/default/mail/test.subject.njk +2 -0
  639. package/themes/default/mail/test.txt.njk +12 -0
  640. package/themes/default/partials/archive.njk +27 -0
  641. package/themes/default/partials/bio.njk +71 -0
  642. package/themes/default/partials/comment-form.njk +137 -0
  643. package/themes/default/partials/contact-form.njk +88 -0
  644. package/themes/default/partials/conversation.njk +139 -0
  645. package/themes/default/partials/feeds.njk +26 -0
  646. package/themes/default/partials/jsonld.njk +120 -0
  647. package/themes/default/partials/menu.njk +32 -0
  648. package/themes/default/partials/pagination.njk +12 -6
  649. package/themes/default/partials/post-list.njk +51 -18
  650. package/themes/default/partials/search-form.njk +22 -0
  651. package/themes/default/partials/tags.njk +26 -5
  652. package/themes/default/static/highlight.js +4 -0
  653. package/themes/default/static/style.css +1142 -194
  654. package/themes/default/theme.json +9 -0
  655. package/admin/layouts/federation.njk +0 -145
  656. package/admin/layouts/login.njk +0 -23
  657. package/admin/layouts/settings.njk +0 -116
  658. package/admin/layouts/setup.njk +0 -27
  659. package/admin/layouts/users.njk +0 -91
  660. /package/admin/{layouts/_flash.njk → components/flash.njk} +0 -0
@@ -1,5 +1,8 @@
1
1
  import type { ResolvedConfig } from '../config.ts';
2
2
  import type { Document } from '../content/document.ts';
3
+ import type { ImageConfig } from '../images/variants.ts';
4
+ import type { AuthorContext } from './authors.ts';
5
+ import type { TaxonomyBases, TaxonomyRedirect } from './taxonomy.ts';
3
6
  /** Where the site-wide data file lives, relative to the content directory. */
4
7
  export declare const SITE_DATA_FILE = "_data/site.json";
5
8
  /** How many posts a listing page holds when the site does not say. */
@@ -20,6 +23,12 @@ export interface SiteData {
20
23
  url: string;
21
24
  /** Site author. */
22
25
  author?: string | undefined;
26
+ /**
27
+ * The site's language as a BCP 47 tag, `en` unless the site says otherwise.
28
+ * It is the `<html lang>`, the RSS channel's `<language>` and the Atom
29
+ * feed's `xml:lang`.
30
+ */
31
+ language?: string | undefined;
23
32
  /**
24
33
  * The site's avatar, as the public path it is served at. Empty until one has
25
34
  * been uploaded on the settings screen; the ActivityPub actor's `icon`.
@@ -27,6 +36,47 @@ export interface SiteData {
27
36
  avatar?: string | undefined;
28
37
  /** How many posts a listing page holds. */
29
38
  postsPerPage?: number | undefined;
39
+ /**
40
+ * The first URL segment the tag archives live under, without slashes:
41
+ * `tag` unless the site says otherwise.
42
+ */
43
+ tagBase?: string | undefined;
44
+ /** The same for the category archives. `category` by default. */
45
+ categoryBase?: string | undefined;
46
+ /**
47
+ * The rssCloud and WebSub server the feeds advertise and this site pings,
48
+ * as an absolute URL. Empty — or missing — means the site names none.
49
+ */
50
+ notifyServer?: string | undefined;
51
+ /**
52
+ * The relay inboxes the site subscribes to (FEP-ae0c), as absolute URLs.
53
+ * The setting itself; where each subscription stands lives in the database
54
+ * rather than here, because a handshake is not the site's to decide.
55
+ */
56
+ relays?: readonly string[] | undefined;
57
+ /**
58
+ * The theme the site renders through: the name of one directory under the
59
+ * configured themes directory. Absent — the ordinary state — is the theme
60
+ * the package ships (decision-15).
61
+ */
62
+ theme?: string | undefined;
63
+ /**
64
+ * The slug of the page served at `/`, when the site shows a page there
65
+ * rather than its latest posts. Absent for the latest posts.
66
+ */
67
+ homepage?: string | undefined;
68
+ /**
69
+ * The slug of the page whose own URL carries the post listing, when there is
70
+ * one. Absent unless `homepage` names a page as well.
71
+ */
72
+ postsPage?: string | undefined;
73
+ /**
74
+ * The taxonomy archives that have moved, as `{ taxonomy, from, to }`: what
75
+ * lets the URL a renamed archive used to live at point at the one it lives
76
+ * at now. Written by the taxonomy screens; an Eleventy build of the same
77
+ * content can publish the same redirects from it.
78
+ */
79
+ taxonomyRedirects?: readonly TaxonomyRedirect[] | undefined;
30
80
  [key: string]: unknown;
31
81
  }
32
82
  /**
@@ -59,8 +109,20 @@ export interface DocumentContext {
59
109
  date?: Date | undefined;
60
110
  /** Taxonomy, in the order the file lists it. */
61
111
  tags: string[];
112
+ /** The second taxonomy: what the document is filed under, in file order. */
113
+ categories: string[];
62
114
  /** The Markdown body rendered to HTML. Templates print it with `| safe`. */
63
115
  content: string;
116
+ /**
117
+ * What the document is about in one line of plain text: the `description`
118
+ * the author wrote, else an excerpt of the rendered body, else empty.
119
+ *
120
+ * The very string the feeds publish as a summary, from the same function, so
121
+ * a feed item and the entry a listing prints for the same post cannot say
122
+ * two different things (decision-16). Always present, empty included, so a
123
+ * theme prints it without asking whether it is there.
124
+ */
125
+ summary: string;
64
126
  /** The document's URL path, the same value as `page.url`. */
65
127
  url: string;
66
128
  /** Eleventy's `page`. */
@@ -70,52 +132,124 @@ export interface DocumentContext {
70
132
  /** Everything else from the front matter, including unmodelled keys. */
71
133
  [key: string]: unknown;
72
134
  }
135
+ /**
136
+ * One of a post's neighbours by date, as a theme links it: `previous` and
137
+ * `next` under an entry.
138
+ *
139
+ * Two keys rather than the whole document, because that is what the link is —
140
+ * the words on it and where it goes — and a theme that was handed a second
141
+ * document context would be a theme that could print a second post by
142
+ * accident.
143
+ */
144
+ export interface NeighbourContext {
145
+ /** The neighbour's title, which is what the link says. */
146
+ title: string;
147
+ /** Its URL path. */
148
+ url: string;
149
+ }
73
150
  /**
74
151
  * A document as a template sees it.
75
152
  *
76
153
  * Front matter goes on first so the keys the CMS models always win: a file
77
154
  * with a stray `content` or `page` key cannot displace the rendered body or
78
155
  * the page data.
156
+ *
157
+ * `images` is the site's image config, and giving it is what turns an uploaded
158
+ * picture in `content` into a `<picture>` with a `srcset` (decision-10). It is
159
+ * an argument rather than something `renderMarkdown` does, because only the
160
+ * theme's HTML may have it: the feeds, the JSON and Markdown representations
161
+ * and the ActivityStreams `content` all read `document.html` directly and must
162
+ * keep the plain `<img>` of the original.
163
+ *
164
+ * `author` is the profile behind the front matter's `author` (TASK-67), and it
165
+ * is an argument for the reason `images` is: only something holding the site's
166
+ * users can resolve a name to a person. Given one, the context's `author` is
167
+ * that object rather than the raw string — `author.name` to print and
168
+ * `author.url` to link — so a theme writes one thing whether the file names a
169
+ * login, a display name from before decision-14, or somebody who has no
170
+ * account here at all. Without one the file's own string is left where it was,
171
+ * which is what a test over a single template renders.
79
172
  */
80
- export declare function documentContext(document: Document): DocumentContext;
173
+ export declare function documentContext(document: Document, images?: ImageConfig, author?: AuthorContext): DocumentContext;
81
174
  /** Reads `content/_data/site.json`, and re-reads it when the file changes. */
82
175
  export interface SiteDataSource {
83
176
  /** The current site data, defaults filled in. */
84
177
  read(): SiteData;
85
178
  }
86
179
  /**
87
- * The settings the admin stores, as site data.
180
+ * A source over one site's data.
181
+ *
182
+ * `content/_data/site.json` is the only source of it (decision-9): the
183
+ * settings screen writes that file and nothing else remembers what it said, so
184
+ * a save and a hand edit reach the theme by exactly the same route.
88
185
  *
89
- * The admin's settings screen is the source of truth for the values it
90
- * manages, and `content/_data/site.json` is the mirror it writes for an
91
- * Eleventy build. Handing the source a reader for the settings is what makes a
92
- * saved title show on the very next request rather than on the next time the
93
- * file's modification time is noticed.
186
+ * The file is read on every call and parsed only when its bytes differ from
187
+ * the last read, so a render costs one small read rather than one parse. A
188
+ * `stat` key was tried first and is not enough: a filesystem rounds the
189
+ * modification time to its clock tick, a few milliseconds on Linux, so a
190
+ * second write inside one tick that keeps the size and the inode, a theme
191
+ * name swapped for one of the same length say, looked like no write at all.
192
+ * The file is a few hundred bytes; reading it is cheaper than being wrong. A
193
+ * file that is missing or will not parse falls back to the defaults instead
194
+ * of failing the request: a typo in `site.json` should not take the site down.
94
195
  */
95
- export interface SiteSettingsSource {
96
- /** The stored settings as site data. Empty when nothing is stored. */
97
- read(): Partial<SiteData>;
98
- }
99
- /** What {@link createSiteDataSource} reads from besides the config. */
100
- export interface CreateSiteDataSourceOptions {
101
- /** The admin's settings, when the CMS has an admin store to read them from. */
102
- settings?: SiteSettingsSource | undefined;
196
+ export declare function createSiteDataSource(config: ResolvedConfig): SiteDataSource;
197
+ /** How many posts a listing page holds, from the site data or the default. */
198
+ export declare function postsPerPage(site: SiteData): number;
199
+ /**
200
+ * The theme this site has chosen, from the site data, or the empty string for
201
+ * the theme the package ships.
202
+ *
203
+ * Read as tolerantly as everything else out of `site.json` — a key of the
204
+ * wrong type is a site on the packaged theme rather than a broken render —
205
+ * and read as a name rather than resolved to a directory, for the reason the
206
+ * front page is read as a slug: only something holding the themes directory
207
+ * can say whether the name still points at a theme.
208
+ */
209
+ export declare function themeName(site: SiteData): string;
210
+ /**
211
+ * The zone this site's dates are read in, from the site data, or UTC when it
212
+ * names none.
213
+ *
214
+ * The same lens the `date` filter applies (decision-11), for the things the
215
+ * CMS rather than a template has to put a date through: which month of an
216
+ * archive a post belongs to is the same calendar question as which day the
217
+ * line under it says, and the two must not be answered by different clocks.
218
+ */
219
+ export declare function siteTimezone(site: SiteData): string;
220
+ /** WordPress's Reading choice, as `site.json` spells it. */
221
+ export interface FrontPageSlugs {
222
+ /** The page served at `/`, or empty for the site's latest posts. */
223
+ homepage: string;
224
+ /** The page whose permalink carries the listing, or empty for none. */
225
+ postsPage: string;
103
226
  }
104
227
  /**
105
- * A source over one site's data.
228
+ * Which page is the front page and which carries the listing, from the site
229
+ * data.
106
230
  *
107
- * The file is read once and then only again when its modification time moves,
108
- * so a render costs one `stat` rather than one parse. A file that is missing
109
- * or will not parse falls back to the defaults instead of failing the request:
110
- * a typo in `site.json` should not take the site down.
231
+ * Read as tolerantly as everything else out of `site.json`, and read as slugs
232
+ * rather than resolved to documents: only something holding the index can say
233
+ * whether a slug still names a published page, and a slug that names none is a
234
+ * site showing its latest posts.
235
+ */
236
+ export declare function frontPageSlugs(site: SiteData): FrontPageSlugs;
237
+ /**
238
+ * Where this site's taxonomy archives live, from the site data.
111
239
  *
112
- * The stored settings, when there are any, go on top of the file. They are the
113
- * same values the file was last written from, so the two normally agree; the
114
- * overlay is what keeps them agreeing in the moment between a save and the
115
- * file's `mtime` being noticed, and the file underneath is what carries the
116
- * keys the settings form does not manage.
240
+ * A base the site could not actually be served under — an empty one, one with
241
+ * a slash in it, one that would shadow `/admin`, or two that are the same word
242
+ * — falls back to the default rather than taking the archives down: the value
243
+ * was refused at the settings screen, so anything that reaches here came from
244
+ * a hand-edited `site.json`.
117
245
  */
118
- export declare function createSiteDataSource(config: ResolvedConfig, options?: CreateSiteDataSourceOptions): SiteDataSource;
119
- /** How many posts a listing page holds, from the site data or the default. */
120
- export declare function postsPerPage(site: SiteData): number;
246
+ export declare function taxonomyBases(site: SiteData): TaxonomyBases;
247
+ /**
248
+ * The archive renames this site records, from the site data.
249
+ *
250
+ * Read as tolerantly as everything else out of `site.json`: an entry that is
251
+ * not a rename is dropped rather than taking the archives down, because a site
252
+ * may have written the key by hand.
253
+ */
254
+ export declare function termRedirects(site: SiteData): TaxonomyRedirect[];
121
255
  //# sourceMappingURL=context.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/web/context.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAEvD,8EAA8E;AAC9E,eAAO,MAAM,cAAc,oBAAoB,CAAC;AAEhD,sEAAsE;AACtE,eAAO,MAAM,sBAAsB,KAAK,CAAC;AAEzC;;;;;;GAMG;AACH,MAAM,WAAW,QAAQ;IACvB,yCAAyC;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,mDAAmD;IACnD,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,2DAA2D;IAC3D,GAAG,EAAE,MAAM,CAAC;IACZ,mBAAmB;IACnB,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,2CAA2C;IAC3C,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC1B,mDAAmD;IACnD,GAAG,EAAE,MAAM,CAAC;IACZ,yDAAyD;IACzD,IAAI,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IACxB,gEAAgE;IAChE,QAAQ,EAAE,MAAM,CAAC;IACjB,0EAA0E;IAC1E,SAAS,EAAE,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M,WAAW,cAAc;IAC7B,iDAAiD;IACjD,IAAI,IAAI,QAAQ,CAAC;CAClB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,cAAc,GAAG,cAAc,CAqC3E;AAaD,8EAA8E;AAC9E,wBAAgB,YAAY,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,CAMnD;AAED;;;;;;;;;GASG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,CAEhD;AAED;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,CAGnD;AAED,4DAA4D;AAC5D,MAAM,WAAW,cAAc;IAC7B,oEAAoE;IACpE,QAAQ,EAAE,MAAM,CAAC;IACjB,uEAAuE;IACvE,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,QAAQ,GAAG,cAAc,CAQ7D;AAED;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,QAAQ,GAAG,aAAa,CAE3D;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,QAAQ,GAAG,gBAAgB,EAAE,CAEhE"}
@@ -1,5 +1,9 @@
1
- import { readFileSync, statSync } from 'node:fs';
1
+ import { readFileSync } from 'node:fs';
2
2
  import path from 'node:path';
3
+ import { DEFAULT_TIMEZONE } from '../content/time.js';
4
+ import { siteImageMarkup } from '../images/markup.js';
5
+ import { feedExcerpt } from './feed-item.js';
6
+ import { DEFAULT_TAXONOMY_BASES, taxonomyBasesOrDefault, taxonomyRedirectsOf } from './taxonomy.js';
3
7
  /** Where the site-wide data file lives, relative to the content directory. */
4
8
  export const SITE_DATA_FILE = '_data/site.json';
5
9
  /** How many posts a listing page holds when the site does not say. */
@@ -10,8 +14,24 @@ export const DEFAULT_POSTS_PER_PAGE = 10;
10
14
  * Front matter goes on first so the keys the CMS models always win: a file
11
15
  * with a stray `content` or `page` key cannot displace the rendered body or
12
16
  * the page data.
17
+ *
18
+ * `images` is the site's image config, and giving it is what turns an uploaded
19
+ * picture in `content` into a `<picture>` with a `srcset` (decision-10). It is
20
+ * an argument rather than something `renderMarkdown` does, because only the
21
+ * theme's HTML may have it: the feeds, the JSON and Markdown representations
22
+ * and the ActivityStreams `content` all read `document.html` directly and must
23
+ * keep the plain `<img>` of the original.
24
+ *
25
+ * `author` is the profile behind the front matter's `author` (TASK-67), and it
26
+ * is an argument for the reason `images` is: only something holding the site's
27
+ * users can resolve a name to a person. Given one, the context's `author` is
28
+ * that object rather than the raw string — `author.name` to print and
29
+ * `author.url` to link — so a theme writes one thing whether the file names a
30
+ * login, a display name from before decision-14, or somebody who has no
31
+ * account here at all. Without one the file's own string is left where it was,
32
+ * which is what a test over a single template renders.
13
33
  */
14
- export function documentContext(document) {
34
+ export function documentContext(document, images, author) {
15
35
  const date = toDate(document.date);
16
36
  return {
17
37
  ...document.extra,
@@ -19,13 +39,18 @@ export function documentContext(document) {
19
39
  slug: document.slug,
20
40
  draft: document.draft,
21
41
  ...optional('description', document.description),
22
- ...optional('author', document.author),
42
+ ...optional('author', author ?? document.author),
23
43
  ...optional('updated', toDate(document.updated)),
24
44
  ...optional('activitypub', document.activitypub),
25
45
  title: document.title,
26
46
  ...optional('date', date),
27
47
  tags: document.tags,
28
- content: document.html,
48
+ categories: document.categories,
49
+ content: images === undefined ? document.html : siteImageMarkup(images, document.html),
50
+ // The plain-text summary, taken off the document rather than off the
51
+ // markup above: an excerpt is text, and the `<picture>` a site's image
52
+ // config puts in the HTML is not something to cut words out of.
53
+ summary: feedExcerpt(document),
29
54
  url: document.permalink,
30
55
  type: document.type,
31
56
  page: {
@@ -39,36 +64,38 @@ export function documentContext(document) {
39
64
  /**
40
65
  * A source over one site's data.
41
66
  *
42
- * The file is read once and then only again when its modification time moves,
43
- * so a render costs one `stat` rather than one parse. A file that is missing
44
- * or will not parse falls back to the defaults instead of failing the request:
45
- * a typo in `site.json` should not take the site down.
67
+ * `content/_data/site.json` is the only source of it (decision-9): the
68
+ * settings screen writes that file and nothing else remembers what it said, so
69
+ * a save and a hand edit reach the theme by exactly the same route.
46
70
  *
47
- * The stored settings, when there are any, go on top of the file. They are the
48
- * same values the file was last written from, so the two normally agree; the
49
- * overlay is what keeps them agreeing in the moment between a save and the
50
- * file's `mtime` being noticed, and the file underneath is what carries the
51
- * keys the settings form does not manage.
71
+ * The file is read on every call and parsed only when its bytes differ from
72
+ * the last read, so a render costs one small read rather than one parse. A
73
+ * `stat` key was tried first and is not enough: a filesystem rounds the
74
+ * modification time to its clock tick, a few milliseconds on Linux, so a
75
+ * second write inside one tick that keeps the size and the inode, a theme
76
+ * name swapped for one of the same length say, looked like no write at all.
77
+ * The file is a few hundred bytes; reading it is cheaper than being wrong. A
78
+ * file that is missing or will not parse falls back to the defaults instead
79
+ * of failing the request: a typo in `site.json` should not take the site down.
52
80
  */
53
- export function createSiteDataSource(config, options = {}) {
81
+ export function createSiteDataSource(config) {
54
82
  const file = path.join(config.contentDir, ...SITE_DATA_FILE.split('/'));
55
- const settings = options.settings;
56
83
  let cached = {};
57
- let cachedAt;
84
+ let cachedText;
58
85
  function fromFile() {
59
- let modifiedAt;
86
+ let text;
60
87
  try {
61
- modifiedAt = statSync(file).mtimeMs;
88
+ text = readFileSync(file, 'utf8');
62
89
  }
63
90
  catch {
64
- cachedAt = undefined;
91
+ cachedText = undefined;
65
92
  cached = {};
66
93
  return cached;
67
94
  }
68
- if (modifiedAt === cachedAt)
95
+ if (text === cachedText)
69
96
  return cached;
70
- cachedAt = modifiedAt;
71
- cached = readSiteFile(file);
97
+ cachedText = text;
98
+ cached = parseSiteFile(text);
72
99
  return cached;
73
100
  }
74
101
  return {
@@ -76,14 +103,19 @@ export function createSiteDataSource(config, options = {}) {
76
103
  // The defaults are rebuilt per read rather than captured, because
77
104
  // `config.baseUrl` may have been settled from the settings after this
78
105
  // source was made.
79
- const defaults = { title: 'Geekity', url: config.baseUrl };
80
- return { ...defaults, ...fromFile(), ...settings?.read() };
106
+ const defaults = {
107
+ title: 'Geekity',
108
+ url: config.baseUrl,
109
+ tagBase: DEFAULT_TAXONOMY_BASES.tag,
110
+ categoryBase: DEFAULT_TAXONOMY_BASES.category,
111
+ };
112
+ return { ...defaults, ...fromFile() };
81
113
  },
82
114
  };
83
115
  }
84
- function readSiteFile(file) {
116
+ function parseSiteFile(text) {
85
117
  try {
86
- const parsed = JSON.parse(readFileSync(file, 'utf8'));
118
+ const parsed = JSON.parse(text);
87
119
  return typeof parsed === 'object' && parsed !== null && !Array.isArray(parsed)
88
120
  ? parsed
89
121
  : {};
@@ -100,6 +132,71 @@ export function postsPerPage(site) {
100
132
  }
101
133
  return DEFAULT_POSTS_PER_PAGE;
102
134
  }
135
+ /**
136
+ * The theme this site has chosen, from the site data, or the empty string for
137
+ * the theme the package ships.
138
+ *
139
+ * Read as tolerantly as everything else out of `site.json` — a key of the
140
+ * wrong type is a site on the packaged theme rather than a broken render —
141
+ * and read as a name rather than resolved to a directory, for the reason the
142
+ * front page is read as a slug: only something holding the themes directory
143
+ * can say whether the name still points at a theme.
144
+ */
145
+ export function themeName(site) {
146
+ return typeof site['theme'] === 'string' ? site['theme'].trim() : '';
147
+ }
148
+ /**
149
+ * The zone this site's dates are read in, from the site data, or UTC when it
150
+ * names none.
151
+ *
152
+ * The same lens the `date` filter applies (decision-11), for the things the
153
+ * CMS rather than a template has to put a date through: which month of an
154
+ * archive a post belongs to is the same calendar question as which day the
155
+ * line under it says, and the two must not be answered by different clocks.
156
+ */
157
+ export function siteTimezone(site) {
158
+ const timezone = site['timezone'];
159
+ return typeof timezone === 'string' && timezone !== '' ? timezone : DEFAULT_TIMEZONE;
160
+ }
161
+ /**
162
+ * Which page is the front page and which carries the listing, from the site
163
+ * data.
164
+ *
165
+ * Read as tolerantly as everything else out of `site.json`, and read as slugs
166
+ * rather than resolved to documents: only something holding the index can say
167
+ * whether a slug still names a published page, and a slug that names none is a
168
+ * site showing its latest posts.
169
+ */
170
+ export function frontPageSlugs(site) {
171
+ const homepage = typeof site['homepage'] === 'string' ? site['homepage'].trim() : '';
172
+ const postsPage = typeof site['postsPage'] === 'string' ? site['postsPage'].trim() : '';
173
+ // A posts page without a homepage would be a second URL for the listing that
174
+ // is already at `/`. The settings screen refuses the pair; a hand-edited
175
+ // file is read the same way rather than serving it.
176
+ return { homepage, postsPage: homepage === '' ? '' : postsPage };
177
+ }
178
+ /**
179
+ * Where this site's taxonomy archives live, from the site data.
180
+ *
181
+ * A base the site could not actually be served under — an empty one, one with
182
+ * a slash in it, one that would shadow `/admin`, or two that are the same word
183
+ * — falls back to the default rather than taking the archives down: the value
184
+ * was refused at the settings screen, so anything that reaches here came from
185
+ * a hand-edited `site.json`.
186
+ */
187
+ export function taxonomyBases(site) {
188
+ return taxonomyBasesOrDefault({ tag: site['tagBase'], category: site['categoryBase'] });
189
+ }
190
+ /**
191
+ * The archive renames this site records, from the site data.
192
+ *
193
+ * Read as tolerantly as everything else out of `site.json`: an entry that is
194
+ * not a rename is dropped rather than taking the archives down, because a site
195
+ * may have written the key by hand.
196
+ */
197
+ export function termRedirects(site) {
198
+ return taxonomyRedirectsOf(site['taxonomyRedirects']);
199
+ }
103
200
  function toDate(value) {
104
201
  if (value === undefined)
105
202
  return undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"context.js","sourceRoot":"","sources":["../../src/web/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,IAAI,MAAM,WAAW,CAAC;AAK7B,8EAA8E;AAC9E,MAAM,CAAC,MAAM,cAAc,GAAG,iBAAiB,CAAC;AAEhD,sEAAsE;AACtE,MAAM,CAAC,MAAM,sBAAsB,GAAG,EAAE,CAAC;AAuEzC;;;;;;GAMG;AACH,MAAM,UAAU,eAAe,CAAC,QAAkB;IAChD,MAAM,IAAI,GAAG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