jekyll-theme-modootoday 1.4.0 → 1.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 (357) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +141 -1
  3. data/README.ko.md +38 -11
  4. data/README.md +38 -11
  5. data/RULES.md +27 -12
  6. data/_includes/footer-custom.html +4 -5
  7. data/_includes/modootoday/assets/imports.html +14 -0
  8. data/_includes/modootoday/assets/preload.html +11 -0
  9. data/_includes/modootoday/assets/registry.html +89 -0
  10. data/_includes/modootoday/assets/scripts.html +36 -0
  11. data/_includes/modootoday/assets/sheets.html +25 -0
  12. data/_includes/modootoday/assets/site-scripts.html +20 -0
  13. data/_includes/modootoday/assets/site-sheets.html +10 -0
  14. data/_includes/modootoday/assets/url.html +5 -0
  15. data/_includes/modootoday/blog/home-list.html +26 -0
  16. data/_includes/modootoday/blog/home-posts.html +6 -0
  17. data/_includes/modootoday/breadcrumb.html +9 -10
  18. data/_includes/modootoday/chrome/footer.html +16 -0
  19. data/_includes/modootoday/chrome/nav-sheet.html +13 -0
  20. data/_includes/modootoday/config.html +17 -15
  21. data/_includes/modootoday/detail/page.html +28 -0
  22. data/_includes/modootoday/directory/item.html +4 -2
  23. data/_includes/modootoday/directory/items.html +7 -2
  24. data/_includes/modootoday/directory/jsonld.html +2 -2
  25. data/_includes/modootoday/directory/list.html +4 -2
  26. data/_includes/modootoday/directory/self.html +8 -0
  27. data/_includes/modootoday/doc/pagination.html +1 -1
  28. data/_includes/modootoday/doc/sidebar.html +1 -1
  29. data/_includes/modootoday/doc/twin.html +5 -4
  30. data/_includes/modootoday/docs-extra/jsonld.html +7 -7
  31. data/_includes/modootoday/docs-extra/packages.html +3 -3
  32. data/_includes/modootoday/filter/controls.html +4 -0
  33. data/_includes/modootoday/head-meta.html +7 -7
  34. data/_includes/modootoday/home-url.html +1 -1
  35. data/_includes/modootoday/i18n/ar.html +1 -1
  36. data/_includes/modootoday/i18n/de.html +1 -1
  37. data/_includes/modootoday/i18n/el.html +1 -1
  38. data/_includes/modootoday/i18n/es.html +1 -1
  39. data/_includes/modootoday/i18n/fa.html +1 -1
  40. data/_includes/modootoday/i18n/fr.html +1 -1
  41. data/_includes/modootoday/i18n/id.html +1 -1
  42. data/_includes/modootoday/i18n/it.html +1 -1
  43. data/_includes/modootoday/i18n/ja.html +1 -1
  44. data/_includes/modootoday/i18n/ko.html +1 -1
  45. data/_includes/modootoday/i18n/ml.html +1 -1
  46. data/_includes/modootoday/i18n/pl.html +1 -1
  47. data/_includes/modootoday/i18n/pt-BR.html +1 -1
  48. data/_includes/modootoday/i18n/ro.html +1 -1
  49. data/_includes/modootoday/i18n/ru.html +1 -1
  50. data/_includes/modootoday/i18n/th.html +1 -1
  51. data/_includes/modootoday/i18n/tr.html +1 -1
  52. data/_includes/modootoday/i18n/uk.html +1 -1
  53. data/_includes/modootoday/i18n/ur-Latn.html +1 -1
  54. data/_includes/modootoday/i18n/vi.html +1 -1
  55. data/_includes/modootoday/i18n/zh-CN.html +1 -1
  56. data/_includes/modootoday/i18n/zh-TW.html +1 -1
  57. data/_includes/modootoday/i18n.html +126 -123
  58. data/_includes/modootoday/jsonld/author.html +6 -7
  59. data/_includes/modootoday/jsonld/breadcrumb.html +4 -4
  60. data/_includes/modootoday/jsonld/graph.html +1 -1
  61. data/_includes/modootoday/jsonld/profile.html +3 -2
  62. data/_includes/modootoday/jsonld/props.html +2 -2
  63. data/_includes/modootoday/jsonld/schema/defined-term.html +8 -0
  64. data/_includes/modootoday/jsonld/schema/faq.html +19 -0
  65. data/_includes/modootoday/jsonld/schema/learning.html +11 -0
  66. data/_includes/modootoday/jsonld/type.html +10 -3
  67. data/_includes/modootoday/jsonld/webpage.html +1 -0
  68. data/_includes/modootoday/lang-switch.html +1 -1
  69. data/_includes/modootoday/links/content.html +4 -2
  70. data/_includes/modootoday/lookup/crumbs.html +13 -0
  71. data/_includes/modootoday/lookup/page.html +9 -0
  72. data/_includes/modootoday/lookup/urls.html +3 -0
  73. data/_includes/modootoday/markdown/c/faq.html +1 -1
  74. data/_includes/modootoday/markdown/c/params.html +3 -2
  75. data/_includes/modootoday/markdown/code.html +19 -0
  76. data/_includes/modootoday/markdown/components.html +8 -9
  77. data/_includes/modootoday/markdown/llms-pages.html +2 -2
  78. data/_includes/modootoday/markdown/packages.html +22 -0
  79. data/_includes/modootoday/markdown/raw-body.html +10 -2
  80. data/_includes/modootoday/markdown/sections.html +10 -4
  81. data/_includes/modootoday/markdown/split.html +3 -2
  82. data/_includes/modootoday/markdown/visual.html +6 -0
  83. data/_includes/modootoday/meta/byline.html +7 -8
  84. data/_includes/modootoday/meta/share.html +1 -1
  85. data/_includes/modootoday/nav.html +6 -6
  86. data/_includes/modootoday/news/notes.html +1 -1
  87. data/_includes/modootoday/pages/error.html +4 -2
  88. data/_includes/modootoday/pages/hero/poster.html +10 -0
  89. data/_includes/modootoday/pages/search-form.html +6 -4
  90. data/_includes/modootoday/pages/title.html +6 -0
  91. data/_includes/modootoday/profile/name.html +8 -0
  92. data/_includes/modootoday/records/body.html +3 -0
  93. data/_includes/modootoday/records/card.html +5 -0
  94. data/_includes/modootoday/records/facts.html +14 -0
  95. data/_includes/modootoday/records/lookup.html +8 -0
  96. data/_includes/modootoday/ref-url.html +7 -1
  97. data/_includes/modootoday/render/math.html +2 -2
  98. data/_includes/modootoday/render/mermaid.html +2 -2
  99. data/_includes/modootoday/search/record.html +13 -0
  100. data/_includes/modootoday/search.json +14 -7
  101. data/_includes/modootoday/site/author.html +18 -0
  102. data/_includes/modootoday/site/nav-auto.html +22 -0
  103. data/_includes/modootoday/site/nav.html +17 -0
  104. data/_includes/modootoday/stylesheets.html +25 -21
  105. data/_includes/modootoday/t.html +1 -1
  106. data/_includes/modootoday/theme-color.html +3 -3
  107. data/_includes/modootoday/version.html +2 -0
  108. data/_layouts/blog.html +2 -0
  109. data/_layouts/default.html +7 -32
  110. data/_layouts/detail.html +2 -26
  111. data/_layouts/directory.html +9 -3
  112. data/_layouts/doc.html +5 -4
  113. data/_layouts/download.html +2 -2
  114. data/_layouts/events.html +1 -0
  115. data/_layouts/feed.html +3 -3
  116. data/_layouts/home.html +4 -1
  117. data/_layouts/integrations.html +1 -0
  118. data/_layouts/jobs.html +1 -0
  119. data/_layouts/llms-full.html +2 -2
  120. data/_layouts/llms.html +8 -5
  121. data/_layouts/page.html +5 -0
  122. data/_layouts/portfolio.html +1 -0
  123. data/_layouts/reference.html +4 -2
  124. data/_layouts/resume.html +3 -2
  125. data/_layouts/search.html +2 -2
  126. data/_layouts/sponsors.html +1 -0
  127. data/_layouts/team.html +1 -0
  128. data/_layouts/twin.html +5 -2
  129. data/_sass/modootoday/_access.scss +6 -6
  130. data/_sass/modootoday/_core.scss +9 -4
  131. data/_sass/modootoday/_settings.scss +3 -0
  132. data/_sass/modootoday/_sheet.scss +4 -0
  133. data/_sass/modootoday/_site.scss +3 -0
  134. data/_sass/modootoday/base/_code.scss +21 -12
  135. data/_sass/modootoday/base/_prose.scss +18 -12
  136. data/_sass/modootoday/base/_table.scss +3 -6
  137. data/_sass/modootoday/blog/_article.scss +8 -3
  138. data/_sass/modootoday/blog/_cards.scss +13 -12
  139. data/_sass/modootoday/blog/_index.scss +2 -0
  140. data/_sass/modootoday/blog/_news.scss +1 -1
  141. data/_sass/modootoday/blog/_post.scss +1 -1
  142. data/_sass/modootoday/components/core/chrome/_breadcrumb.scss +7 -3
  143. data/_sass/modootoday/components/core/chrome/_header.scss +26 -0
  144. data/_sass/modootoday/components/core/chrome/_nav.scss +15 -20
  145. data/_sass/modootoday/components/core/chrome/_pagination.scss +12 -4
  146. data/_sass/modootoday/components/core/chrome/_theme-toggle.scss +2 -2
  147. data/_sass/modootoday/components/core/inline/_badge.scss +10 -6
  148. data/_sass/modootoday/components/core/inline/_callout.scss +5 -5
  149. data/_sass/modootoday/components/core/inline/_code-copy.scss +34 -8
  150. data/_sass/modootoday/components/core/inline/_code.scss +7 -5
  151. data/_sass/modootoday/components/core/inline/_cta.scss +6 -6
  152. data/_sass/modootoday/components/core/inline/_embed.scss +1 -1
  153. data/_sass/modootoday/components/core/inline/_figure.scss +5 -4
  154. data/_sass/modootoday/components/core/inline/_hero.scss +9 -5
  155. data/_sass/modootoday/components/core/inline/_kbd.scss +1 -1
  156. data/_sass/modootoday/components/core/inline/_reveal.scss +3 -1
  157. data/_sass/modootoday/components/doc/_sidebar.scss +29 -12
  158. data/_sass/modootoday/components/doc/_toc.scss +5 -4
  159. data/_sass/modootoday/components/figure/_figure-svg.scss +1 -1
  160. data/_sass/modootoday/components/filter/_filter.scss +14 -0
  161. data/_sass/modootoday/components/footer/_footer.scss +13 -0
  162. data/_sass/modootoday/components/search/_search.scss +23 -14
  163. data/_sass/modootoday/components/section/showcase/_card.scss +20 -11
  164. data/_sass/modootoday/components/section/showcase/_cta.scss +5 -3
  165. data/_sass/modootoday/components/section/showcase/_linkcards.scss +11 -7
  166. data/_sass/modootoday/components/section/showcase/_pricing.scss +19 -9
  167. data/_sass/modootoday/components/section/showcase/_quote.scss +4 -3
  168. data/_sass/modootoday/components/section/structure/_accordion.scss +7 -1
  169. data/_sass/modootoday/components/section/structure/_params.scss +1 -2
  170. data/_sass/modootoday/components/section/structure/_steps.scss +1 -1
  171. data/_sass/modootoday/components/section/structure/_tabs.scss +14 -6
  172. data/_sass/modootoday/components/section/structure/_timeline.scss +7 -1
  173. data/_sass/modootoday/components/table/_table.scss +65 -0
  174. data/_sass/modootoday/components/table-stack/_table-stack.scss +22 -0
  175. data/_sass/modootoday/components/visual/_visual.scss +9 -0
  176. data/_sass/modootoday/detail/_index.scss +3 -0
  177. data/_sass/modootoday/detail/_page.scss +2 -0
  178. data/_sass/modootoday/directory/_grid.scss +7 -0
  179. data/_sass/modootoday/directory/_index.scss +3 -0
  180. data/_sass/modootoday/docs-extra/_index.scss +3 -0
  181. data/_sass/modootoday/docs-extra/_page.scss +15 -10
  182. data/_sass/modootoday/hero/_index.scss +2 -0
  183. data/_sass/modootoday/hero/_layout.scss +10 -7
  184. data/_sass/modootoday/kit/_button.scss +5 -5
  185. data/_sass/modootoday/kit/_measure.scss +5 -0
  186. data/_sass/modootoday/layout/_shell.scss +7 -21
  187. data/_sass/modootoday/marketing/_index.scss +3 -0
  188. data/_sass/modootoday/marketing/_page.scss +11 -7
  189. data/_sass/modootoday/marketing/_pricing.scss +6 -5
  190. data/_sass/modootoday/pages/_actions.scss +5 -4
  191. data/_sass/modootoday/pages/_error.scss +7 -3
  192. data/_sass/modootoday/pages/_index.scss +3 -0
  193. data/_sass/modootoday/pages/_legal.scss +3 -3
  194. data/_sass/modootoday/pages/_search.scss +3 -1
  195. data/_sass/modootoday/registry/_hooks.scss +13 -0
  196. data/_sass/modootoday/resume/_index.scss +3 -0
  197. data/_sass/modootoday/resume/_page.scss +1 -1
  198. data/_sass/modootoday/tokens/_code-presets.scss +17 -0
  199. data/_sass/modootoday/tokens/_fonts.scss +17 -0
  200. data/_sass/modootoday/tokens/_merge.scss +4 -0
  201. data/_sass/modootoday/tokens/_primitive.scss +4 -2
  202. data/_sass/modootoday/tokens/_scale.scss +9 -0
  203. data/_sass/modootoday/tokens/_semantic.scss +18 -11
  204. data/_sass/modootoday/tools/_functions.scss +9 -0
  205. data/_sass/modootoday.scss +6 -2
  206. data/assets/css/modootoday/chrome/banner.scss +8 -0
  207. data/assets/css/modootoday/chrome/doc-nav.scss +8 -0
  208. data/assets/css/modootoday/chrome/footer.scss +8 -0
  209. data/assets/css/modootoday/{search.scss → chrome/search.scss} +1 -2
  210. data/assets/css/modootoday/{terminal.scss → chrome/terminal.scss} +1 -2
  211. data/assets/css/modootoday/content/code.scss +8 -0
  212. data/assets/css/modootoday/content/extras.scss +8 -0
  213. data/assets/css/modootoday/content/inline.scss +8 -0
  214. data/assets/css/modootoday/{lists.scss → content/lists.scss} +1 -2
  215. data/assets/css/modootoday/{loading.scss → content/loading.scss} +1 -2
  216. data/assets/css/modootoday/data/filter.scss +7 -0
  217. data/assets/css/modootoday/data/table-stack.scss +7 -0
  218. data/assets/css/modootoday/data/table.scss +7 -0
  219. data/assets/css/modootoday/docs/doc.scss +7 -0
  220. data/assets/css/modootoday/marketing/hero.scss +8 -0
  221. data/assets/css/modootoday/media/figure.scss +8 -0
  222. data/assets/css/modootoday/media/visual.scss +7 -0
  223. data/assets/css/modootoday/{bleed.scss → structure/bleed.scss} +1 -2
  224. data/assets/css/modootoday.scss +3 -2
  225. data/assets/js/modootoday/blog/share.js +34 -0
  226. data/assets/js/modootoday/chrome/menu.js +51 -0
  227. data/assets/js/modootoday/chrome/search-keys.js +56 -0
  228. data/assets/js/modootoday/chrome/search.js +112 -0
  229. data/assets/js/modootoday/chrome/theme-toggle.js +36 -0
  230. data/assets/js/modootoday/content/code-copy.js +59 -0
  231. data/assets/js/modootoday/content/scroll-region.js +27 -0
  232. data/assets/js/modootoday/data/filter-chips.js +30 -0
  233. data/assets/js/modootoday/data/filter.js +62 -0
  234. data/assets/js/modootoday/data/table-stack.js +60 -0
  235. data/assets/js/modootoday/dom/config.js +32 -0
  236. data/assets/js/modootoday/structure/accordion.js +25 -0
  237. data/assets/js/modootoday/structure/tabs.js +51 -0
  238. data/assets/js/modootoday/text/normalize.js +28 -0
  239. data/assets/js/modootoday/theme/current.js +38 -0
  240. data/exe/modootoday-stubs +7 -0
  241. data/i18n/ar.yml +2 -1
  242. data/i18n/de.yml +2 -1
  243. data/i18n/el.yml +2 -1
  244. data/i18n/en.yml +2 -1
  245. data/i18n/es.yml +2 -1
  246. data/i18n/fa.yml +2 -1
  247. data/i18n/fr.yml +2 -1
  248. data/i18n/id.yml +2 -1
  249. data/i18n/it.yml +2 -1
  250. data/i18n/ja.yml +3 -2
  251. data/i18n/ko.yml +3 -2
  252. data/i18n/languages.yml +2 -1
  253. data/i18n/ml.yml +2 -1
  254. data/i18n/pl.yml +2 -1
  255. data/i18n/pt-BR.yml +2 -1
  256. data/i18n/ro.yml +2 -1
  257. data/i18n/ru.yml +2 -1
  258. data/i18n/th.yml +2 -1
  259. data/i18n/tr.yml +2 -1
  260. data/i18n/uk.yml +2 -1
  261. data/i18n/ur-Latn.yml +2 -1
  262. data/i18n/vi.yml +2 -1
  263. data/i18n/zh-CN.yml +3 -2
  264. data/i18n/zh-TW.yml +3 -2
  265. data/lib/jekyll-theme-modootoday.rb +14 -6
  266. data/lib/modootoday/check/build/aliases.rb +79 -0
  267. data/lib/modootoday/check/{build_output.rb → build/build_output.rb} +13 -3
  268. data/lib/modootoday/check/build/byte_exact.rb +55 -0
  269. data/lib/modootoday/check/build/records.rb +39 -0
  270. data/lib/modootoday/check/build/site_assets.rb +59 -0
  271. data/lib/modootoday/check/{structured_data.rb → build/structured_data.rb} +10 -1
  272. data/lib/modootoday/check/build/term_sets.rb +46 -0
  273. data/lib/modootoday/check/build/third_party.rb +33 -0
  274. data/lib/modootoday/check/build/twins.rb +98 -0
  275. data/lib/modootoday/check/cli.rb +7 -5
  276. data/lib/modootoday/check/config/keys/appearance/chrome.rb +13 -0
  277. data/lib/modootoday/check/config/keys/appearance/color_scheme.rb +10 -0
  278. data/lib/modootoday/check/config/keys/appearance/components.rb +13 -0
  279. data/lib/modootoday/check/config/keys/appearance/switches.rb +15 -0
  280. data/lib/modootoday/check/config/keys/appearance/tokens.rb +31 -0
  281. data/lib/modootoday/check/config/keys/pages/content.rb +25 -0
  282. data/lib/modootoday/check/config/keys/pages/edit_url.rb +10 -0
  283. data/lib/modootoday/check/config/keys/pages/languages.rb +17 -0
  284. data/lib/modootoday/check/config/keys/pages/search.rb +47 -0
  285. data/lib/modootoday/check/config/keys/pages/twins.rb +30 -0
  286. data/lib/modootoday/check/config/keys/serving/csp.rb +9 -0
  287. data/lib/modootoday/check/config/keys/serving/delivery.rb +59 -0
  288. data/lib/modootoday/check/config/keys.rb +18 -0
  289. data/lib/modootoday/check/{renderers.rb → config/renderers.rb} +2 -51
  290. data/lib/modootoday/check/config/schema.rb +23 -0
  291. data/lib/modootoday/check/config/site_config.rb +25 -0
  292. data/lib/modootoday/check/config/source_mode.rb +18 -0
  293. data/lib/modootoday/check/config/validate.rb +47 -0
  294. data/lib/modootoday/check/context.rb +11 -5
  295. data/lib/modootoday/check/layouts/directory.rb +10 -2
  296. data/lib/modootoday/check/layouts/docs_extra.rb +3 -3
  297. data/lib/modootoday/check/layouts/profile.rb +21 -0
  298. data/lib/modootoday/check/layouts/shells.rb +2 -0
  299. data/lib/modootoday/check/layouts.rb +5 -1
  300. data/lib/modootoday/check/native/collections.rb +47 -0
  301. data/lib/modootoday/check/native/layouts.rb +43 -0
  302. data/lib/modootoday/check/native/sources.rb +27 -0
  303. data/lib/modootoday/check/{a11y → page/a11y}/new_window.rb +2 -3
  304. data/lib/modootoday/check/{component_rules.rb → page/component_rules.rb} +1 -1
  305. data/lib/modootoday/check/page/filter.rb +63 -0
  306. data/lib/modootoday/check/page/hero_script.rb +39 -0
  307. data/lib/modootoday/check/page/math_notation.rb +36 -0
  308. data/lib/modootoday/check/{page_sections.rb → page/page_sections.rb} +5 -3
  309. data/lib/modootoday/check/{page_syntax.rb → page/page_syntax.rb} +4 -1
  310. data/lib/modootoday/check/{pages.rb → page/pages.rb} +11 -0
  311. data/lib/modootoday/check/{i18n.rb → registry/i18n.rb} +8 -30
  312. data/lib/modootoday/check/registry/i18n_pages.rb +80 -0
  313. data/lib/modootoday/check/{registry.rb → registry/registry.rb} +1 -1
  314. data/lib/modootoday/check/source/site_hook.rb +65 -0
  315. data/lib/modootoday/check.rb +29 -15
  316. data/lib/modootoday/i18n/page_lang.rb +56 -0
  317. data/lib/modootoday/i18n/source_rev.rb +26 -0
  318. data/lib/modootoday/i18n.rb +6 -0
  319. data/lib/modootoday/markdown.rb +46 -0
  320. data/lib/modootoday/schema/compat/minima.yml +8 -0
  321. data/lib/modootoday/schema/compat/minimal-mistakes.yml +16 -0
  322. data/lib/modootoday/schema/rules.rb +1 -0
  323. data/lib/modootoday/stubs/aliases.rb +61 -0
  324. data/lib/modootoday/stubs/cli.rb +77 -0
  325. data/lib/modootoday/stubs/page.rb +19 -0
  326. data/lib/modootoday/stubs/plan.rb +43 -0
  327. data/lib/modootoday/stubs/records.rb +101 -0
  328. data/lib/modootoday/stubs/report.rb +31 -0
  329. data/lib/modootoday/stubs/source.rb +87 -0
  330. data/lib/modootoday/stubs/twins.rb +40 -0
  331. data/lib/modootoday/stubs/writer.rb +19 -0
  332. data/lib/modootoday/stubs.rb +24 -0
  333. metadata +158 -43
  334. data/assets/css/modootoday/doc.scss +0 -10
  335. data/assets/css/modootoday/figure.scss +0 -8
  336. data/assets/js/modootoday/accordion.js +0 -13
  337. data/assets/js/modootoday/code-copy.js +0 -29
  338. data/assets/js/modootoday/menu.js +0 -19
  339. data/assets/js/modootoday/scroll-region.js +0 -14
  340. data/assets/js/modootoday/search-keys.js +0 -18
  341. data/assets/js/modootoday/search.js +0 -31
  342. data/assets/js/modootoday/share.js +0 -16
  343. data/assets/js/modootoday/tabs.js +0 -26
  344. data/assets/js/modootoday/theme-toggle.js +0 -17
  345. data/lib/modootoday/check/markdown.rb +0 -39
  346. data/lib/modootoday/check/site_config.rb +0 -88
  347. data/lib/modootoday/check/twins.rb +0 -69
  348. /data/assets/js/modootoday/{theme-init.js → chrome/theme-init.js} +0 -0
  349. /data/lib/modootoday/check/{built_parts.rb → build/built_parts.rb} +0 -0
  350. /data/lib/modootoday/check/{blog.rb → layouts/blog.rb} +0 -0
  351. /data/lib/modootoday/check/{a11y → page/a11y}/content.rb +0 -0
  352. /data/lib/modootoday/check/{a11y → page/a11y}/illustration.rb +0 -0
  353. /data/lib/modootoday/check/{page_values.rb → page/page_values.rb} +0 -0
  354. /data/lib/modootoday/check/{slots.rb → page/slots.rb} +0 -0
  355. /data/lib/modootoday/check/{gh_render.rb → source/gh_render.rb} +0 -0
  356. /data/lib/modootoday/check/{github_pages.rb → source/github_pages.rb} +0 -0
  357. /data/lib/modootoday/check/{stylesheets.rb → source/stylesheets.rb} +0 -0
@@ -45,14 +45,12 @@ Titles/labels: modootoday/i18n.html (site _data/i18n, theme catalog, English).
45
45
  {%- endfor -%}{%- endcapture -%}
46
46
  {%- endif -%}
47
47
  {%- if include.badges -%}
48
- {%- assign _st = "available:●,partial:◐,planned:○" | split: "," -%}
49
- {%- for _pair in _st -%}
50
- {%- assign _kv = _pair | split: ":" -%}
51
- {%- assign _k = _kv[0] -%}
48
+ {%- assign _st = "available,partial,planned" | split: "," -%}
49
+ {%- for _k in _st -%}
52
50
  {%- case _k -%}{%- when "available" -%}{%- assign _label = mt_t_status_available -%}{%- when "partial" -%}{%- assign _label = mt_t_status_partial -%}{%- else -%}{%- assign _label = mt_t_status_planned -%}{%- endcase -%}
53
- {%- capture _to %}<span class="mt-badge mt-badge-{{ _kv[0] }}" data-variant="{{ _kv[0] }}"><span aria-hidden="true">{{ _kv[1] }}</span> {{ _label }}</span>{% endcapture -%}
54
- {%- capture _from %}<code class="language-plaintext highlighter-rouge">status:{{ _kv[0] }}</code>{% endcapture -%}
55
- {%- capture _from2 %}<code>status:{{ _kv[0] }}</code>{% endcapture -%}
51
+ {%- capture _to %}<span class="mt-badge mt-badge-{{ _k }}" data-variant="{{ _k }}">{{ _label }}</span>{% endcapture -%}
52
+ {%- capture _from %}<code class="language-plaintext highlighter-rouge">status:{{ _k }}</code>{% endcapture -%}
53
+ {%- capture _from2 %}<code>status:{{ _k }}</code>{% endcapture -%}
56
54
  {%- assign _c = _c | replace: _from, _to | replace: _from2, _to -%}
57
55
  {%- endfor -%}
58
56
  {%- endif -%}
@@ -112,10 +110,11 @@ Titles/labels: modootoday/i18n.html (site _data/i18n, theme catalog, English).
112
110
  {%- endfor -%}{%- endcapture -%}
113
111
  {%- endif -%}
114
112
  {%- capture _c %}{% include modootoday/markdown/inline.html html=_c %}{% endcapture -%}
115
- {%- comment -%}3) Accessibility fix-ups of kramdown output (found by qa/qa.mjs + axe): focusable scrolling code
113
+ {%- comment -%}3) Accessibility fix-ups of kramdown output (found by test/system/audit.mjs + axe): focusable scrolling code
116
114
  blocks, labelled task-list checkboxes, and no deprecated role="doc-endnote" on footnote items.{%- endcomment -%}
117
115
  {%- assign _td = mt_t_task_done -%}{%- assign _topen = mt_t_task_open -%}
118
116
  {%- capture _cbd %}class="task-list-item-checkbox" disabled="disabled" checked="checked" aria-label="{{ _td }}" />{% endcapture -%}
119
117
  {%- capture _cbo %}class="task-list-item-checkbox" disabled="disabled" aria-label="{{ _topen }}" />{% endcapture -%}
120
- {%- assign _c = _c | replace: '<pre class="highlight">', '<pre class="highlight" tabindex="0">' | replace: 'class="task-list-item-checkbox" disabled="disabled" checked="checked" />', _cbd | replace: 'class="task-list-item-checkbox" disabled="disabled" />', _cbo | replace: ' role="doc-endnote">', '>' -%}
118
+ {%- capture _c %}{% include modootoday/markdown/code.html html=_c %}{% endcapture -%}
119
+ {%- assign _c = _c | replace: 'class="task-list-item-checkbox" disabled="disabled" checked="checked" />', _cbd | replace: 'class="task-list-item-checkbox" disabled="disabled" />', _cbo | replace: ' role="doc-endnote">', '>' -%}
121
120
  {{ _c }}
@@ -1,4 +1,4 @@
1
- {%- comment -%}md-components v1: assigns _llms_pages = Markdown pages in the current page's directory tree and language (twin: false and README.md excluded), sorted by url.{%- endcomment -%}
1
+ {%- comment -%}md-components v1: assigns _llms_pages = Markdown pages in the current page's directory tree and language (twin: false, layout: error and README.md excluded), sorted by url.{%- endcomment -%}
2
2
  {%- assign _llms_lang = page.lang | default: site.lang | default: "en" -%}
3
3
  {%- assign _llms_dir = page.path | split: "/" | pop | join: "/" -%}
4
4
  {%- if _llms_dir != "" -%}{%- assign _llms_dir = _llms_dir | append: "/" -%}{%- endif -%}
@@ -8,7 +8,7 @@
8
8
  {%- assign _pext = _p.path | split: "." | last -%}
9
9
  {%- assign _plang = _p.lang | default: site.lang | default: "en" -%}
10
10
  {%- assign _pstart = _p.path | slice: 0, _llms_dir.size -%}
11
- {%- if _pext == "md" and _p.name != "README.md" and _p.twin != false and _plang == _llms_lang and _pstart == _llms_dir -%}
11
+ {%- if _pext == "md" and _p.name != "README.md" and _p.twin != false and _p.layout != "error" and _plang == _llms_lang and _pstart == _llms_dir -%}
12
12
  {%- assign _llms_pages = _llms_pages | push: _p -%}
13
13
  {%- endif -%}
14
14
  {%- endfor -%}
@@ -0,0 +1,22 @@
1
+ {%- comment -%}md-components v1: the package table of include.page (reference layout, packages:) as Markdown, for the twin and
2
+ llms-full layouts. Optional bold packages_title line, then | Name | Version | Links |; the name links to url, its text follows
3
+ after ": " unless packages_compact; pipes are escaped and newlines become spaces. Ends with a newline. Empty without packages.{%- endcomment -%}
4
+ {%- assign _pp = include.page -%}
5
+ {%- if _pp.layout == "reference" and _pp.packages.size > 0 -%}
6
+ {%- include modootoday/i18n.html -%}
7
+ {%- assign _nl = "
8
+ " -%}
9
+ {%- if _pp.packages_title %}**{{ _pp.packages_title | replace: _nl, " " | replace: "|", "\|" }}**
10
+
11
+ {% endif -%}
12
+ | {{ mt_t_layouts_name }} | {{ mt_t_layouts_version }} | {{ mt_t_layouts_links }} |
13
+ | --- | --- | --- |
14
+ {% for p in _pp.packages -%}
15
+ {%- capture _n %}`{{ p.name }}`{% endcapture -%}
16
+ {%- if p.url %}{% capture _u %}{% include modootoday/link.html url=p.url %}{% endcapture %}{% assign _n = "[" | append: _n | append: "](" | append: _u | append: ")" %}{% endif -%}
17
+ {%- if p.text and _pp.packages_compact != true %}{% assign _n = _n | append: ": " | append: p.text %}{% endif -%}
18
+ {%- capture _ls %}{% for l in p.links %}{% unless forloop.first %}, {% endunless %}[{{ l.label }}]({% include modootoday/link.html url=l.url %}){% endfor %}{% endcapture -%}
19
+ {%- capture _v %}{% if p.version %}`{{ p.version }}`{% endif %}{% endcapture -%}
20
+ | {{ _n | replace: _nl, " " | replace: "|", "\|" }} | {{ _v | replace: "|", "\|" }} | {{ _ls | replace: _nl, " " | replace: "|", "\|" }} |
21
+ {% endfor -%}
22
+ {%- endif -%}
@@ -1,6 +1,14 @@
1
- {%- comment -%}md-components v1: the source body of include.file (path relative to the current page), front matter removed. Used by the twin and llms-full layouts.{%- endcomment -%}
1
+ {%- comment -%}md-components v1: the source body of include.file (path relative to the current page), front matter removed. Used by the twin and llms-full layouts.
2
+ With include.page (the source page), a reference page's packages: table is added before the body, or after it with packages_position: after.{%- endcomment -%}
2
3
  {%- capture _raw -%}{% include_relative {{ include.file }} %}{%- endcapture -%}
3
4
  {%- assign _fm = _raw | split: "---" -%}
4
5
  {%- assign _front = "---" | append: _fm[1] | append: "---
5
6
  " -%}
6
- {{- _raw | remove_first: _front -}}
7
+ {%- assign _body = _raw | remove_first: _front -%}
8
+ {%- capture _pkmd %}{% if include.page %}{% include modootoday/markdown/packages.html page=include.page %}{% endif %}{% endcapture -%}
9
+ {%- if _pkmd == "" -%}{{- _body -}}
10
+ {%- elsif include.page.packages_position == "after" -%}{{- _body }}
11
+ {{ _pkmd -}}
12
+ {%- else -%}{{- _pkmd }}
13
+ {{ _body -}}
14
+ {%- endif -%}
@@ -9,6 +9,8 @@ Item: "name" or {c: component, name: key, ...params}. c: tabs → data-tabs, c:
9
9
  visual: <name> on an item (or include.hero.visual for the hero) appends the site's
10
10
  _includes/sections/<name>.html at the end of that section, called with section=<item> (hero=<hero>); every other key
11
11
  on the item (e.g. scene: 2) reaches the include as include.section.<key>.
12
+ script: <name> (a modootoday.scripts entry) and poster: on an item or the hero wrap that visual with the poster image first
13
+ (markdown/visual.html, or the split column); the module script itself is linked in <head> (assets/site-scripts.html).
12
14
  c: split wraps the section in div.mt-section-in > div.mt-section-body (h2 and text) + div.mt-section-visual (the visual
13
15
  include): two columns from 48rem (side: start|end puts the visual first or last, ratio: "1:1"|"5:7" text:visual), one below.
14
16
  Only split gets the wrappers, so child selectors of the other components keep working (markdown/split.html).
@@ -19,6 +21,8 @@ bleed: true (item or hero) adds .mt-bleed: a full-width background band (--mt-bl
19
21
  bleed: wide also adds .mt-bleed-wide, which widens the content box up to the container. No wrappers; bleed sheet.
20
22
  The hero's first p after the h1 gets .mt-hero-lead; hero checks: true adds .mt-hero-checks (its first ul is a ✓ row, lists sheet).
21
23
  site.modootoday.lists (link_chips, titled_items) runs markdown/lists.html on the hero, plain sections and section-less pages.
24
+ filter: true | {facet: <column>} on an item (or include.filter, the page's filter:, on a page without sections) adds
25
+ data-mt-filter (data-facet) and the hidden controls of filter/controls.html; data/filter.js filters the first list or table.
22
26
  modootoday-check fails when the item count differs from the h2 count.
23
27
  {%- endcomment -%}
24
28
  {%- assign _lang = include.lang | default: site.lang | default: "en" -%}
@@ -36,7 +40,7 @@ modootoday-check fails when the item count differs from the h2 count.
36
40
  {%- assign mt_c_transforms = "|filetree|linkcards|details|faq|params|quote|gallery|pricing|subscribe|" -%}
37
41
  {%- assign _p0 = _parts[0] -%}{%- if site.modootoday.lists -%}{%- capture _p0 %}{% include modootoday/markdown/lists.html html=_p0 %}{% endcapture -%}{%- endif -%}
38
42
  {%- capture _hero %}{% include modootoday/actions.html html=_p0 %}{% endcapture -%}{%- assign _hl = "</h1>" | append: _nl | append: _nl -%}{%- assign _hlp = _hl | append: "<p>" -%}{%- assign _hlc = _hl | append: '<p class="mt-hero-lead">' -%}{%- assign _hero = _hero | replace_first: _hlp, _hlc -%}
39
- <section class="mt-hero{% if include.hero.checks == true %} mt-hero-checks{% endif %}{% if include.hero.decor %} mt-has-decor{% endif %}{% if include.hero.reveal == true %} mt-reveal{% endif %}{% if include.hero.c == 'split' %} mt-c-split{% if include.hero.side == 'start' %} mt-split-start{% endif %}{% if include.hero.ratio == '5:7' %} mt-split-5-7{% endif %}{% endif %}{% if include.hero.bleed %} mt-bleed{% if include.hero.bleed == 'wide' %} mt-bleed-wide{% endif %}{% endif %}">{% if include.hero.c == 'split' %}{% include modootoday/markdown/split.html body=_hero s=include.hero %}{% else %}{{ _hero }}{% if include.hero.visual %}{% include sections/{{ include.hero.visual }}.html section=include.hero %}{% endif %}{% endif %}{% if include.hero.decor %}<div class="mt-section-decor" aria-hidden="true">{% include sections/{{ include.hero.decor }}.html section=include.hero %}</div>{% endif %}</section>
43
+ <section class="mt-hero{% if include.hero.checks == true %} mt-hero-checks{% endif %}{% if include.hero.decor %} mt-has-decor{% endif %}{% if include.hero.reveal == true %} mt-reveal{% endif %}{% if include.hero.c == 'split' %} mt-c-split{% if include.hero.side == 'start' %} mt-split-start{% endif %}{% if include.hero.ratio == '5:7' %} mt-split-5-7{% endif %}{% endif %}{% if include.hero.bleed %} mt-bleed{% if include.hero.bleed == 'wide' %} mt-bleed-wide{% endif %}{% endif %}">{% if include.hero.c == 'split' %}{% include modootoday/markdown/split.html body=_hero s=include.hero hero=true %}{% else %}{{ _hero }}{% include modootoday/markdown/visual.html s=include.hero hero=true %}{% endif %}{% if include.hero.decor %}<div class="mt-section-decor" aria-hidden="true">{% include sections/{{ include.hero.decor }}.html section=include.hero %}</div>{% endif %}</section>
40
44
  {%- for _p in _parts offset:1 -%}
41
45
  {%- assign _s = include.sections[forloop.index0] -%}
42
46
  {%- if _s.name or _s.c -%}{%- assign _n = _s.name -%}{%- assign _cc = _s.c -%}{%- else -%}{%- assign _n = _s -%}{%- assign _cc = nil -%}{%- endif -%}
@@ -50,16 +54,18 @@ modootoday-check fails when the item count differs from the h2 count.
50
54
  {%- if _tt contains "<li" or _tt contains "</li>" -%}<li><strong>{{ _x }}{%- elsif _ra == "</strong>: " -%}<li><strong>{{ _tt }}</strong> {{ _x | remove_first: _tt | remove_first: "</strong>: " }}{%- elsif _rb == "</strong>:" -%}<li><strong>{{ _tt }}</strong> {{ _x | remove_first: _tt | remove_first: "</strong>:" | lstrip }}{%- else -%}<li><strong>{{ _x }}{%- endif -%}
51
55
  {%- endfor -%}{%- endcapture -%}{%- endif -%}
52
56
  {%- if _cc and mt_c_transforms contains _cc -%}{%- capture _body %}{% include modootoday/markdown/c/{{ _cc }}.html html=_body s=_s i=forloop.index id=_n %}{% endcapture -%}{%- endif -%}
53
- <section class="mt-section{% if _cc %} mt-c-{{ _cc }}{% endif %}{% if _cc == 'cta' %}{% unless _body contains 'data-mt-result' %} mt-cta{% endunless %}{% endif %}{% if _s.cols %} mt-cols-{{ _s.cols }}{% endif %}{% if _s.decor %} mt-has-decor{% endif %}{% if _s.reveal == true %} mt-reveal{% endif %}{% if _s.bleed %} mt-bleed{% if _s.bleed == 'wide' %} mt-bleed-wide{% endif %}{% endif %}{% if _cc == 'features' and _s.badge == 'bottom' %} mt-badge-bottom{% endif %}{% if _cc == 'split' %}{% if _s.side == 'start' %} mt-split-start{% endif %}{% if _s.ratio == '5:7' %} mt-split-5-7{% endif %}{% endif %}" data-section="{{ _n | default: forloop.index0 }}"{% if _cc %} data-c="{{ _cc }}"{% endif %}{% if _cc == 'tabs' %} data-tabs data-tabs-label="{{ _tl }}"{% endif %}>
57
+ <section class="mt-section{% if _cc %} mt-c-{{ _cc }}{% endif %}{% if _cc == 'cta' %}{% unless _body contains 'data-mt-result' %} mt-cta{% endunless %}{% endif %}{% if _s.cols %} mt-cols-{{ _s.cols }}{% endif %}{% if _s.decor %} mt-has-decor{% endif %}{% if _s.reveal == true %} mt-reveal{% endif %}{% if _s.bleed %} mt-bleed{% if _s.bleed == 'wide' %} mt-bleed-wide{% endif %}{% endif %}{% if _cc == 'features' and _s.badge == 'bottom' %} mt-badge-bottom{% endif %}{% if _cc == 'split' %}{% if _s.side == 'start' %} mt-split-start{% endif %}{% if _s.ratio == '5:7' %} mt-split-5-7{% endif %}{% endif %}" data-section="{{ _n | default: forloop.index0 }}"{% if _cc %} data-c="{{ _cc }}"{% endif %}{% if _cc == 'tabs' %} data-tabs data-tabs-label="{{ _tl }}"{% endif %}{% if _s.filter %} data-mt-filter{% if _s.filter.facet %} data-facet="{{ _s.filter.facet }}"{% endif %}{% endif %}>
54
58
  {%- if _cc == 'split' %}
55
59
  {%- assign _sb = "<h2 " | append: _body -%}{% include modootoday/markdown/split.html body=_sb s=_s %}{% if _s.decor %}<div class="mt-section-decor" aria-hidden="true">{% include sections/{{ _s.decor }}.html section=_s %}</div>{% endif %}</section>
56
60
  {%- else %}
57
- <h2 {{ _body }}{% if _s.visual %}{% include sections/{{ _s.visual }}.html section=_s %}{% endif %}{% if _s.decor %}<div class="mt-section-decor" aria-hidden="true">{% include sections/{{ _s.decor }}.html section=_s %}</div>{% endif %}</section>
61
+ <h2 {{ _body }}{% if _s.filter %}{% include modootoday/filter/controls.html %}{% endif %}{% include modootoday/markdown/visual.html s=_s %}{% if _s.decor %}<div class="mt-section-decor" aria-hidden="true">{% include sections/{{ _s.decor }}.html section=_s %}</div>{% endif %}</section>
58
62
  {%- endif -%}
59
63
  {%- endfor -%}
60
64
  {%- if _notes != "" %}
61
65
  <div class="mt-endnotes">{{ _notes }}</div>
62
66
  {%- endif -%}
63
67
  {%- else -%}
64
- {%- if site.modootoday.lists -%}<div class="mt-prose">{% include modootoday/markdown/lists.html html=include.content %}</div>{%- else -%}<div class="mt-prose">{{ include.content }}</div>{%- endif -%}
68
+ {%- capture _fa %}{% if include.filter %} data-mt-filter{% if include.filter.facet %} data-facet="{{ include.filter.facet }}"{% endif %}{% endif %}{% endcapture -%}
69
+ {%- capture _fc %}{% if include.filter %}{% include modootoday/filter/controls.html %}{% endif %}{% endcapture -%}
70
+ {%- if site.modootoday.lists -%}<div class="mt-prose"{{ _fa }}>{% include modootoday/markdown/lists.html html=include.content %}{{ _fc }}</div>{%- else -%}<div class="mt-prose"{{ _fa }}>{{ include.content }}{{ _fc }}</div>{%- endif -%}
65
71
  {%- endif -%}
@@ -1,6 +1,7 @@
1
1
  {%- comment -%}md-components v1 — split inner wrappers (called by sections.html for c: split on a section item or on hero:).
2
2
  body = the section's HTML (h2 or h1, text, actions), s = the item. Prints div.mt-section-in > div.mt-section-body (body)
3
- + div.mt-section-visual (the visual: include, called with section=s).
3
+ + div.mt-section-visual (the poster: image, then the visual: include, called with section=s; script: adds data-mt-script).
4
+ include.hero: true for the hero, whose poster is fetched first.
4
5
  visual: code is built in: the body's first code block (with its file: title, if any) moves into div.mt-section-visual.mt-split-code,
5
6
  keeping the code styles and the copy button; chrome: terminal adds .mt-split-terminal and a decorative bar (aria-hidden).{%- endcomment -%}
6
7
  {%- assign _b = include.body -%}{%- assign _code = nil -%}
@@ -16,4 +17,4 @@
16
17
  {%- assign _b = _pre | append: _after -%}
17
18
  {%- endif -%}
18
19
  {%- endif -%}
19
- <div class="mt-section-in"><div class="mt-section-body">{{ _b }}</div>{% if _code %}<div class="mt-section-visual mt-split-code{% if include.s.chrome == 'terminal' %} mt-split-terminal{% endif %}">{% if include.s.chrome == 'terminal' %}<div class="mt-split-bar" aria-hidden="true"><span></span><span></span><span></span></div>{% endif %}{{ _code }}</div>{% elsif include.s.visual and include.s.visual != "code" %}<div class="mt-section-visual">{% include sections/{{ include.s.visual }}.html section=include.s %}</div>{% endif %}</div>
20
+ <div class="mt-section-in"><div class="mt-section-body">{{ _b }}</div>{% if _code %}<div class="mt-section-visual mt-split-code{% if include.s.chrome == 'terminal' %} mt-split-terminal{% endif %}">{% if include.s.chrome == 'terminal' %}<div class="mt-split-bar" aria-hidden="true"><span></span><span></span><span></span></div>{% endif %}{{ _code }}</div>{% elsif include.s.visual != "code" %}{% if include.s.visual or include.s.script or include.s.poster %}<div class="mt-section-visual"{% if include.s.script %} data-mt-script="{{ include.s.script | escape }}"{% endif %}>{% if include.s.poster %}{% include modootoday/pages/hero/poster.html p=include.s.poster hero=include.hero split=true %}{% endif %}{% if include.s.visual %}{% include sections/{{ include.s.visual }}.html section=include.s %}{% endif %}</div>{% endif %}{% endif %}</div>
@@ -0,0 +1,6 @@
1
+ {%- comment -%}md-components v1 — a section's or the hero's visual outside c: split (called by sections.html; split.html has its own column).
2
+ include.s = the item, include.hero = true for the hero. Without script: or poster: it prints the visual: include unchanged;
3
+ with them, div.mt-visual (data-mt-script = the script name) holding the poster first, then the include.{%- endcomment -%}
4
+ {%- assign _mtvs = include.s -%}
5
+ {%- if _mtvs.script or _mtvs.poster -%}<div class="mt-visual"{% if _mtvs.script %} data-mt-script="{{ _mtvs.script | escape }}"{% endif %}>{% if _mtvs.poster %}{% include modootoday/pages/hero/poster.html p=_mtvs.poster hero=include.hero %}{% endif %}{% if _mtvs.visual %}{% include sections/{{ _mtvs.visual }}.html section=_mtvs %}{% endif %}</div>
6
+ {%- elsif _mtvs.visual -%}{% include sections/{{ _mtvs.visual }}.html section=_mtvs %}{%- endif -%}
@@ -1,16 +1,15 @@
1
- {%- comment -%}Byline for a post: authors (front matter author: id or authors: [ids]; names, links and avatars from
2
- _data/authors.yml: {id: {name, url, avatar, bio}}; unknown ids print as written), published and updated <time>, reading time.
1
+ {%- comment -%}Byline for a post: its authors as site/author.html resolves them (names, links and avatars from _data/authors.yml
2
+ or an author map; unknown ids print as written), published and updated <time>, reading time.
3
3
  dateline: a news place line ("SEOUL —"). Parts: data-part="byline|authors|dates".{%- endcomment -%}
4
4
  {%- assign _bp = include.post | default: page -%}
5
- {%- assign _ba = _bp.authors | default: _bp.author -%}
6
- {%- if _ba and _ba.first == nil -%}{%- assign _ba = _ba | split: "," -%}{%- endif -%}
5
+ {%- include modootoday/site/author.html of=_bp -%}
7
6
  <div class="mt-byline" data-part="byline">
8
- {%- if _ba and site.modootoday.authors != false %}
7
+ {%- if mt_authors.size > 0 and site.modootoday.authors != false %}
9
8
  <p class="mt-byline-authors" data-part="authors"><span>{{ mt_t_blog_by }}</span>
10
- {%- for _id in _ba -%}{%- assign _id = _id | strip -%}{%- assign _au = site.data.authors[_id] -%}
11
- {%- if _au.avatar %} <img class="mt-avatar" src="{{ _au.avatar | relative_url }}" alt="" width="24" height="24" loading="lazy">{% endif %}
9
+ {%- for _au in mt_authors -%}{%- assign _aav = _au.avatar | default: _au.picture -%}
10
+ {%- if _aav %} <img class="mt-avatar" src="{{ _aav | relative_url }}" alt="" width="24" height="24" loading="lazy">{% endif %}
12
11
  {%- assign _aurl = _au.page | default: _au.url -%}
13
- {% if _aurl %}<a class="mt-post-author" rel="author" href="{{ _aurl | relative_url }}">{{ _au.name | default: _id }}</a>{% else %}<span class="mt-post-author">{{ _au.name | default: _id }}</span>{% endif %}{% unless forloop.last %},{% endunless %}
12
+ {% if _aurl %}<a class="mt-post-author" rel="author" href="{{ _aurl | relative_url }}">{{ _au.name | default: _au }}</a>{% else %}<span class="mt-post-author">{{ _au.name | default: _au }}</span>{% endif %}{% unless forloop.last %},{% endunless %}
14
13
  {%- endfor -%}
15
14
  </p>
16
15
  {%- endif %}
@@ -1,4 +1,4 @@
1
- {%- comment -%}Copy-link (and native share where available) button; assets/js/modootoday/share.js wires it. Off with modootoday.blog.share: false.{%- endcomment -%}
1
+ {%- comment -%}Copy-link (and native share where available) button; assets/js/modootoday/blog/share.js wires it. Off with modootoday.blog.share: false.{%- endcomment -%}
2
2
  {%- if mt_blog_share %}
3
3
  <p class="mt-share" data-part="share"><button class="mt-share-button" type="button" data-mt-share data-url="{{ page.url | absolute_url }}" data-title="{{ page.title | escape }}" data-copied="{{ mt_t_blog_copied }}" hidden>{% include modootoday/brand/icon.html name="copy" size=16 %}<span>{{ mt_t_blog_share }}</span></button><span class="mt-sr-only" role="status" aria-live="polite"></span></p>
4
4
  {%- endif -%}
@@ -1,19 +1,19 @@
1
1
  {%- comment -%}Header navigation: items {title, url} from _data/nav/<modootoday.nav>.yml (or _data/nav.yml).
2
- An item with `items:` (a list of {title, url}) is a group: a "More"-style <details> menu from 64rem, plain links below.{%- endcomment -%}
2
+ An item with `items:` (a list of {title, url}) is a group: a "More"-style <details> menu in the row from 64rem.
3
+ Below 64rem the row is hidden and the same items open from a menu button (modootoday/chrome/nav-sheet.html).
4
+ Without a nav source the header lists top-level titled pages (site/nav-auto.html), computed here once per page.{%- endcomment -%}
5
+ {%- if mt_nav_source == nil and mt_components contains "nav" -%}{%- include modootoday/site/nav.html auto=true -%}{%- endif -%}
3
6
  {%- if mt_nav and mt_components contains "nav" %}
4
7
  <nav class="mt-nav" aria-label="{% include modootoday/i18n.html lang=_lang %}{{ mt_t_nav_label }}"><ul>
5
8
  {%- for it in mt_nav %}
6
- {%- if it.items %}
9
+ {%- if it.items and mt_nav_groups %}
7
10
  {%- assign _cur = it.items | where: "url", page.url | first %}
8
11
  <li class="mt-nav-group"><details class="mt-menu"><summary{% if _cur %} class="mt-nav-current"{% endif %}>{{ it.title }}{% include modootoday/brand/icon.html name="chevron-down" size=14 %}</summary><ul>
9
12
  {%- for sub in it.items %}<li><a href="{% include modootoday/link.html url=sub.url %}"{% include modootoday/links/attrs.html on=sub.new_window target=sub.target url=sub.url %}{% if sub.url == page.url %} aria-current="page"{% endif %}>{{ sub.title }}</a></li>{% endfor -%}
10
13
  </ul></details></li>
11
- {%- for sub in it.items %}
12
- <li class="mt-nav-flat"><a href="{% include modootoday/link.html url=sub.url %}"{% include modootoday/links/attrs.html on=sub.new_window target=sub.target url=sub.url %}{% if sub.url == page.url %} aria-current="page"{% endif %}>{{ sub.title }}</a></li>
13
- {%- endfor %}
14
14
  {%- else %}
15
15
  <li><a href="{% include modootoday/link.html url=it.url %}"{% include modootoday/links/attrs.html on=it.new_window target=it.target url=it.url %}{% if it.url == page.url %} aria-current="page"{% endif %}>{{ it.title }}{% if it.url contains "://" %}{% include modootoday/brand/icon.html name="external" size=12 %}{% endif %}</a></li>
16
16
  {%- endif %}
17
17
  {%- endfor %}
18
- </ul></nav>
18
+ </ul>{% include modootoday/chrome/nav-sheet.html %}</nav>
19
19
  {%- endif -%}
@@ -1,6 +1,6 @@
1
1
  {%- comment -%}News article end notes from front matter: correction: "text" (with correction_date:), sources: [{title, url}] or strings, credits: "text".{%- endcomment -%}
2
2
  {%- if page.correction %}
3
- <aside class="mt-callout mt-news-correction" data-variant="warning" data-part="correction"><p class="mt-callout-title">{{ mt_t_blog_correction }}{% if page.correction_date %} · <time datetime="{{ page.correction_date | date_to_xmlschema }}">{{ page.correction_date | date: mt_t_post_date_format }}</time>{% endif %}</p><p>{{ page.correction }}</p></aside>
3
+ <aside class="mt-callout mt-callout-warning mt-news-correction" data-variant="warning" data-part="correction"><p class="mt-callout-title">{{ mt_t_blog_correction }}{% if page.correction_date %} · <time datetime="{{ page.correction_date | date_to_xmlschema }}">{{ page.correction_date | date: mt_t_post_date_format }}</time>{% endif %}</p><p>{{ page.correction }}</p></aside>
4
4
  {%- endif -%}
5
5
  {%- if page.sources.size > 0 %}
6
6
  <section class="mt-news-sources" data-part="sources"><h2>{{ mt_t_blog_sources }}</h2><ul>
@@ -1,4 +1,5 @@
1
- {%- comment -%}Error body for include.status (404 default, 410, 500): localized title and text, then the page body and a home link.{%- endcomment -%}
1
+ {%- comment -%}Error body for include.status (404 default, 410, 500): localized title and text, then the page body and a home link.
2
+ A body paragraph that holds only links is a row of quick-link chips (p.mt-error-links).{%- endcomment -%}
2
3
  {%- include modootoday/i18n.html -%}{%- include modootoday/home-url.html -%}
3
4
  {%- assign _s = include.status | default: 404 | append: "" -%}
4
5
  {%- case _s -%}
@@ -9,5 +10,6 @@
9
10
  <p class="mt-error-code" aria-hidden="true">{{ _s }}</p>
10
11
  <h1>{{ page.heading | default: _et }}</h1>
11
12
  <p>{{ _ex }}</p>
12
- {{ content }}
13
+ {%- capture _eb %}{% include modootoday/actions.html html=content %}{% endcapture %}
14
+ {{ _eb | replace: '<p class="mt-actions">', '<p class="mt-error-links">' }}
13
15
  <p class="mt-actions"><a href="{{ mt_home | relative_url }}">{{ mt_t_pages_home }}</a></p>
@@ -0,0 +1,10 @@
1
+ {%- comment -%}Poster of a script visual: include.p is poster: (a site path, or {path, srcset, sizes, width, height}, the hero.image shape).
2
+ Decorative (alt=""): the module's drawing replaces it and the text stays in the page. include.hero: fetched first, as the likely
3
+ LCP image; a section poster loads lazily. include.split: default sizes is half the width from 48rem. srcset URLs get the baseurl.{%- endcomment -%}
4
+ {%- assign _mtvp = include.p -%}{%- assign _mtvpp = _mtvp.path | default: _mtvp -%}
5
+ {%- if include.split -%}{%- assign _mtvps = "(min-width: 48rem) 50vw, 100vw" -%}{%- else -%}{%- assign _mtvps = "100vw" -%}{%- endif -%}
6
+ {%- assign _mtvss = "" -%}{%- assign _mtvsl = _mtvp.srcset | split: "," -%}
7
+ {%- for _mtvsi in _mtvsl -%}{%- assign _mtvsu = _mtvsi | strip | split: " " | first -%}{%- assign _mtvsd = _mtvsi | strip | remove_first: _mtvsu | strip -%}
8
+ {%- assign _mtvsr = _mtvsu | relative_url -%}{%- assign _mtvss = _mtvss | append: ", " | append: _mtvsr -%}{%- if _mtvsd != "" -%}{%- assign _mtvss = _mtvss | append: " " | append: _mtvsd -%}{%- endif -%}
9
+ {%- endfor -%}{%- assign _mtvss = _mtvss | remove_first: ", " -%}
10
+ {%- if _mtvpp -%}<img class="mt-visual-poster" src="{{ _mtvpp | relative_url | escape }}"{% if _mtvss != "" %} srcset="{{ _mtvss | escape }}" sizes="{{ _mtvp.sizes | default: _mtvps | escape }}"{% endif %}{% if _mtvp.width %} width="{{ _mtvp.width }}"{% endif %}{% if _mtvp.height %} height="{{ _mtvp.height }}"{% endif %} alt=""{% if include.hero %} fetchpriority="high"{% else %} loading="lazy"{% endif %} decoding="async">{%- endif -%}
@@ -1,11 +1,13 @@
1
1
  {%- comment -%}No-JavaScript search: GET form to an external engine restricted to this host. Configure
2
- modootoday.search.fallback (url and query parameter); default DuckDuckGo with site:<host>.{%- endcomment -%}
2
+ modootoday.search.fallback (url and query parameter); default DuckDuckGo with site:<host>. Without url: there is no host
3
+ to restrict to, so the form is left out rather than searching the whole web.{%- endcomment -%}
3
4
  {%- include modootoday/i18n.html -%}
4
5
  {%- assign _f = site.modootoday.search.fallback -%}
5
- {%- if _f != false -%}
6
6
  {%- assign _host = "/" | absolute_url | split: "://" | last | split: "/" | first -%}
7
- <form class="mt-search-form" role="search" method="get" action="{{ _f.url | default: 'https://duckduckgo.com/' }}">
8
- <label for="mt-search-q">{{ mt_t_search_label }}</label>
7
+ {%- if _host == nil or _host == "" -%}{%- assign _f = false -%}{%- endif -%}
8
+ {%- if _f != false -%}
9
+ <form class="mt-search-form" role="search" aria-labelledby="mt-search-q-label" method="get" action="{{ _f.url | default: 'https://duckduckgo.com/' }}">
10
+ <label id="mt-search-q-label" for="mt-search-q">{{ mt_t_search_label }}</label>
9
11
  <input id="mt-search-q" type="search" name="{{ _f.param | default: 'q' }}" required minlength="2" autocomplete="off" aria-describedby="mt-search-hint">
10
12
  <input type="hidden" name="sites" value="{{ _host }}">
11
13
  <button class="mt-search-submit" type="submit">{% include modootoday/brand/icon.html name="search" size=16 %}{{ mt_t_search_label }}</button>
@@ -0,0 +1,6 @@
1
+ {%- comment -%}The page's h1 from its title when the rendered body has none, as minima prints title: (a jekyll new About page).
2
+ include.html: the body as rendered; include.title: the text, page.title by default.{%- endcomment -%}
3
+ {%- assign _pt = include.title | default: page.title -%}
4
+ {%- if _pt and _pt != "" -%}{%- unless include.html contains "<h1" -%}
5
+ <h1>{{ _pt | escape }}</h1>
6
+ {% endunless -%}{%- endif -%}
@@ -0,0 +1,8 @@
1
+ {%- comment -%}Display name of a resume or links page: display_name, else a name: that Jekyll kept (collection documents),
2
+ else the title. A page's name is always its file name in Liquid, so it counts only when it differs from the path.{%- endcomment -%}
3
+ {%- assign mt_profile_name = page.display_name -%}
4
+ {%- unless mt_profile_name -%}
5
+ {%- assign _pnf = page.path | split: "/" | last -%}
6
+ {%- if _pnf and page.name != _pnf %}{% assign mt_profile_name = page.name %}{% endif -%}
7
+ {%- endunless -%}
8
+ {%- assign mt_profile_name = mt_profile_name | default: page.title -%}
@@ -0,0 +1,3 @@
1
+ {%- comment -%}Body of a record page (after records/lookup.html): the Markdown field the set's body: names, converted.{%- endcomment -%}
2
+ {%- assign _rb = mt_rec_set.body -%}
3
+ {%- if _rb and mt_rec[_rb] -%}{{ mt_rec[_rb] | markdownify }}{%- endif -%}
@@ -0,0 +1,5 @@
1
+ {%- comment -%}A directory card for a record (directory/items.html with records:): links to the record page, and takes the title
2
+ and text from the fields the set names when the record has no title, name, url or text of its own.{%- endcomment -%}
3
+ {%- unless _iurl -%}{%- assign _iurl = mt_dir_rurl | replace: ":key", include.it[mt_dir_rkey] -%}{%- endunless -%}
4
+ {%- assign _rt = mt_dir_rset.title | default: "title" -%}{%- assign _name = _name | default: include.it[_rt] -%}
5
+ {%- assign _rs = mt_dir_rset.description | default: "description" -%}{%- assign _itext = _itext | default: include.it[_rs] -%}
@@ -0,0 +1,14 @@
1
+ {%- comment -%}Facts of a record page (after records/lookup.html): each field in the set's facts: list that the record has, labelled
2
+ from labels: or the field name. A list value prints as tags. Data can come from anywhere, so values are escaped.{%- endcomment -%}
3
+ {%- capture _rf -%}
4
+ {%- for _f in mt_rec_set.facts -%}{%- assign _v = mt_rec[_f] -%}
5
+ {%- if _v != nil and _v != "" -%}
6
+ {%- assign _lb = _f | replace: "_", " " | capitalize -%}{%- if mt_rec_set.labels[_f] -%}{%- assign _lb = mt_rec_set.labels[_f] -%}{%- endif -%}
7
+ <div><dt>{{ _lb | escape }}</dt><dd>{% if _v.first %}<ul class="mt-detail-tags">{% for _s in _v %}<li>{{ _s | escape }}</li>{% endfor %}</ul>{% else %}{{ _v | escape }}{% endif %}</dd></div>
8
+ {%- endif -%}
9
+ {%- endfor -%}
10
+ {%- endcapture -%}
11
+ {%- assign _rf = _rf | strip -%}
12
+ {%- if _rf != "" %}
13
+ <dl class="mt-detail-facts mt-record-facts">{{ _rf }}</dl>
14
+ {%- endif -%}
@@ -0,0 +1,8 @@
1
+ {%- comment -%}Sets mt_rec (the record page.record "set/key" names) and mt_rec_set (its modootoday.records entry). The stub's
2
+ record_index points into the data list, so no pass over the records is needed; where runs only when that index is stale.{%- endcomment -%}
3
+ {%- assign mt_rec = nil -%}{%- assign _rp = page.record | split: "/" -%}{%- assign _rsn = _rp | first -%}{%- assign _rkv = _rp | last -%}
4
+ {%- assign mt_rec_set = site.modootoday.records[_rsn] -%}
5
+ {%- assign _rk = mt_rec_set.key | default: "slug" -%}{%- assign _rn = mt_rec_set.data | default: _rsn -%}
6
+ {%- assign _rd = site.data[_rn] -%}{%- assign _rl = _rd.items | default: _rd -%}
7
+ {%- if page.record_index != nil -%}{%- assign mt_rec = _rl[page.record_index] -%}{%- endif -%}
8
+ {%- if mt_rec[_rk] != _rkv -%}{%- assign mt_rec = _rl | where: _rk, _rkv | first -%}{%- endif -%}
@@ -5,7 +5,13 @@ A page's language is its lang: (front matter or defaults), else site.lang.{%- en
5
5
  {%- assign mt_ref_url = nil -%}
6
6
  {%- assign _rf_def = site.lang | default: "en" -%}
7
7
  {%- assign _rf_lang = include.lang | default: page.lang | default: _rf_def -%}
8
- {%- assign _rf_pages = site.pages | where: "ref", include.ref -%}
8
+ {%- comment -%}hreflang and the switcher call this once per language, so a string ref searches the pages that have a ref,
9
+ collected in one pass; other values keep the full where, whose nil, array and hash rules differ between Jekyll versions.{%- endcomment -%}
10
+ {%- assign _rf_k = include.ref | append: "" -%}
11
+ {%- if _rf_k == include.ref -%}
12
+ {%- unless mt_ref_pages -%}{%- assign mt_ref_pages = site.pages | where_exp: "_rf_p", "_rf_p.ref != nil" -%}{%- endunless -%}
13
+ {%- assign _rf_pages = mt_ref_pages | where: "ref", include.ref -%}
14
+ {%- else -%}{%- assign _rf_pages = site.pages | where: "ref", include.ref -%}{%- endif -%}
9
15
  {%- for _rf_p in _rf_pages -%}{%- assign _rf_l = _rf_p.lang | default: _rf_def -%}{%- if _rf_l == _rf_lang -%}{%- assign mt_ref_url = _rf_p.url -%}{%- break -%}{%- endif -%}{%- endfor -%}
10
16
  {%- unless mt_ref_url or include.exact -%}
11
17
  {%- for _rf_p in _rf_pages -%}{%- assign _rf_l = _rf_p.lang | default: _rf_def -%}{%- if _rf_l == _rf_def -%}{%- assign mt_ref_url = _rf_p.url -%}{%- break -%}{%- endif -%}{%- endfor -%}
@@ -22,13 +22,13 @@ If any declared URL cannot load (an https URL without integrity), nothing loads.
22
22
  {%- include modootoday/render/asset.html src=_mx.src integrity=_mx.integrity.js -%}{%- assign _mx_js = mt_asset_tag -%}
23
23
  {%- assign _mx_ar = "" -%}
24
24
  {%- if _mx.auto_render_src -%}{%- include modootoday/render/asset.html src=_mx.auto_render_src integrity=_mx.auto_render_integrity -%}{%- assign _mx_ar = mt_asset_tag -%}{%- endif -%}
25
- {%- if _mx_css and _mx_js and _mx_ar %}
25
+ {%- if _mx_css and _mx_js and _mx_ar -%}{%- include modootoday/assets/url.html path="/assets/js/modootoday-math.js" %}
26
26
  {{ _mx_css }}
27
27
  {{ _mx_js }}
28
28
  {%- if _mx_ar != "" %}
29
29
  {{ _mx_ar }}
30
30
  {%- endif %}
31
- <script src="{{ '/assets/js/modootoday-math.js' | relative_url }}" data-mt-inline="{% if _mx.inline == true %}true{% else %}false{% endif %}" defer></script>
31
+ <script src="{{ mt_asset_url }}" data-mt-inline="{% if _mx.inline == true %}true{% else %}false{% endif %}" defer></script>
32
32
  {%- endif -%}
33
33
  {%- endif -%}
34
34
  {%- endif -%}
@@ -11,9 +11,9 @@ An https src without integrity loads nothing (modootoday-check reports it). With
11
11
  {%- if _mm.enabled == true and page.mermaid != false and _mm.src -%}
12
12
  {%- if content contains '<code class="language-mermaid"' or content contains 'class="language-mermaid highlighter-rouge"' -%}
13
13
  {%- include modootoday/render/asset.html src=_mm.src integrity=_mm.integrity -%}{%- assign _mm_tag = mt_asset_tag -%}
14
- {%- if _mm_tag %}
14
+ {%- if _mm_tag -%}{%- include modootoday/assets/url.html path="/assets/js/modootoday-mermaid.js" %}
15
15
  {{ _mm_tag }}
16
- <script src="{{ '/assets/js/modootoday-mermaid.js' | relative_url }}" data-mt-theme="{{ _mm.theme | default: 'auto' | escape }}" defer></script>
16
+ <script src="{{ mt_asset_url }}" data-mt-theme="{{ _mm.theme | default: 'auto' | escape }}" defer></script>
17
17
  {%- endif -%}
18
18
  {%- endif -%}
19
19
  {%- endif -%}
@@ -0,0 +1,13 @@
1
+ {%- comment -%}One search.json entry for include.p with its plain text include.text, after a comma unless it is the first (_first).
2
+ Reads the settings modootoday/search.json sets: _ms_words (0 = no limit), _ms_fields (front matter keys whose values go
3
+ before the text) and _ms_exclude (URL prefixes left out).{%- endcomment -%}
4
+ {%- assign _msk = false -%}
5
+ {%- for _msx in _ms_exclude -%}{%- assign _msn = _msx | size -%}{%- assign _msu = include.p.url | slice: 0, _msn -%}{%- if _msu == _msx -%}{%- assign _msk = true -%}{%- endif -%}{%- endfor -%}
6
+ {%- unless _msk -%}
7
+ {%- assign _mst = include.text -%}{%- if _ms_words != 0 -%}{%- assign _mst = _mst | truncatewords: _ms_words, "" -%}{%- endif -%}
8
+ {%- assign _msf = "" -%}
9
+ {%- for _msk2 in _ms_fields -%}{%- assign _msv = include.p[_msk2] -%}{%- if _msv -%}{%- assign _msv = _msv | join: " " -%}{%- assign _msf = _msf | append: _msv | append: " " -%}{%- endif -%}{%- endfor -%}
10
+ {%- assign _mst = _msf | append: _mst -%}
11
+ {%- unless _first %},{% endunless -%}{%- assign _first = false -%}
12
+ {"title":{{ include.p.title | jsonify }},"url":{{ include.p.url | relative_url | jsonify }},"lang":{{ include.p.lang | default: site.lang | default: "en" | jsonify }},"text":{{ _mst | jsonify }}}
13
+ {%- endunless -%}
@@ -1,11 +1,18 @@
1
1
  {%- comment -%}Search index. In your site add search.json: ---\nlayout: null\n---\n{% include modootoday/search.json %}
2
- Pages with `search: false` or no title are skipped. Text is truncated to 300 words.{%- endcomment -%}
2
+ Pages with `search: false` or no title are skipped. modootoday.search: words (default 300, 0 = whole text), collections
3
+ (collection names with output: true, indexed after posts), fields (front matter keys put before the text), exclude (URL
4
+ prefixes left out). Each entry: modootoday/search/record.html. Pages are in URL order, so renaming a source file never
5
+ reorders the index.{%- endcomment -%}
6
+ {%- assign _ms = site.modootoday.search -%}{%- assign _ms_words = _ms.words | default: 300 -%}{%- assign _ms_fields = _ms.fields -%}{%- assign _ms_exclude = _ms.exclude -%}
7
+ {%- assign _ms_pages = site.pages | sort: "url" -%}
3
8
  [{%- assign _first = true -%}
4
- {%- for p in site.pages -%}{%- if p.title and p.search != false and p.layout != nil -%}{%- unless p.url contains ".json" or p.url contains ".txt" or p.url contains ".md" -%}
5
- {%- unless _first %},{% endunless -%}{%- assign _first = false -%}
6
- {"title":{{ p.title | jsonify }},"url":{{ p.url | relative_url | jsonify }},"lang":{{ p.lang | default: site.lang | default: "en" | jsonify }},"text":{{ p.content | markdownify | strip_html | normalize_whitespace | truncatewords: 300, "" | jsonify }}}
9
+ {%- for p in _ms_pages -%}{%- if p.title and p.search != false and p.layout != nil -%}{%- unless p.url contains ".json" or p.url contains ".txt" or p.url contains ".md" -%}
10
+ {%- assign _mstx = p.content | markdownify | strip_html | normalize_whitespace -%}{%- include modootoday/search/record.html p=p text=_mstx -%}
7
11
  {%- endunless -%}{%- endif -%}{%- endfor -%}
8
12
  {%- for p in site.posts -%}{%- if p.search != false -%}
9
- {%- unless _first %},{% endunless -%}{%- assign _first = false -%}
10
- {"title":{{ p.title | jsonify }},"url":{{ p.url | relative_url | jsonify }},"lang":{{ p.lang | default: site.lang | default: "en" | jsonify }},"text":{{ p.content | strip_html | normalize_whitespace | truncatewords: 300, "" | jsonify }}}
11
- {%- endif -%}{%- endfor -%}]
13
+ {%- assign _mstx = p.content | strip_html | normalize_whitespace -%}{%- include modootoday/search/record.html p=p text=_mstx -%}
14
+ {%- endif -%}{%- endfor -%}
15
+ {%- for _msc in _ms.collections -%}{%- assign _mscol = site.collections | where: "label", _msc | first -%}{%- if _mscol.output -%}
16
+ {%- for p in _mscol.docs -%}{%- if p.title and p.search != false -%}
17
+ {%- assign _mstx = p.content | strip_html | normalize_whitespace -%}{%- include modootoday/search/record.html p=p text=_mstx -%}
18
+ {%- endif -%}{%- endfor -%}{%- endif -%}{%- endfor -%}]
@@ -0,0 +1,18 @@
1
+ {%- comment -%}Sets mt_authors for include.of (default page): each entry is a map (name, url, page, avatar or picture, bio, email) or
2
+ a plain name. Sources in order: authors, author (a _data/authors.yml key, a comma list, a list or a map), then
3
+ site.modootoday.schema.author, then site.author. A key of _data/authors.yml becomes its entry there.{%- endcomment -%}
4
+ {%- assign _asp = include.of | default: page -%}
5
+ {%- assign _asv = _asp.authors | default: _asp.author | default: site.modootoday.schema.author | default: site.author -%}
6
+ {%- assign mt_authors = "" | split: "" -%}
7
+ {%- assign _asl = "" | split: "" -%}
8
+ {%- if _asv.name -%}{%- assign _asl = _asl | push: _asv -%}
9
+ {%- elsif _asv.first == nil -%}{%- if _asv -%}{%- assign _asl = _asv | split: "," -%}{%- endif -%}
10
+ {%- else -%}{%- assign _asl = _asv -%}
11
+ {%- endif -%}
12
+ {%- for _ase in _asl -%}
13
+ {%- if _ase.name -%}{%- assign mt_authors = mt_authors | push: _ase -%}{%- continue -%}{%- endif -%}
14
+ {%- if _ase.first -%}{%- continue -%}{%- endif -%}
15
+ {%- assign _asi = _ase | strip -%}{%- if _asi == "" -%}{%- continue -%}{%- endif -%}
16
+ {%- assign _asd = site.data.authors[_asi] -%}
17
+ {%- if _asd.name -%}{%- assign mt_authors = mt_authors | push: _asd -%}{%- else -%}{%- assign mt_authors = mt_authors | push: _asi -%}{%- endif -%}
18
+ {%- endfor -%}
@@ -0,0 +1,22 @@
1
+ {%- comment -%}The header list when a site has no nav source: top-level pages (/about/, /about.html) with a title in the page's
2
+ language, nav_order first, then by title. Leaves out the home page, nav: false, nav_exclude: true, hidden pages and machine
3
+ layouts. Liquid keeps nothing between pages and this runs on each one, so only sites of up to 100 HTML pages get it.
4
+ Jekyll 3's sort raises on values that do not compare: titles sort as text, numeric nav_order by number, others as text.{%- endcomment -%}
5
+ {%- if site.html_pages.size <= 100 -%}
6
+ {%- assign _nl = page.lang | default: site.lang | default: "en" -%}{%- assign _nd = site.lang | default: "en" -%}
7
+ {%- assign _nskip = "|home|redirect|error|twin|llms|llms-full|feed|null|none|" -%}
8
+ {%- assign _nord = "" | split: "" -%}{%- assign _ntxt = "" | split: "" -%}{%- assign _nrest = "" | split: "" -%}
9
+ {%- assign _ntop = site.html_pages | group_by_exp: "p", "p.url | split: '/' | size" | where: "name", 2 | first -%}
10
+ {%- assign _ncand = _ntop.items | where_exp: "p", "p.title" | sort_natural: "title" -%}
11
+ {%- for _np in _ncand -%}
12
+ {%- if _np.nav == false or _np.nav_exclude == true or _np.hidden == true -%}{%- continue -%}{%- endif -%}
13
+ {%- assign _npl = _np.lang | default: _nd -%}{%- if _npl != _nl -%}{%- continue -%}{%- endif -%}
14
+ {%- assign _nlk = "|" | append: _np.layout | append: "|" -%}{%- if _nskip contains _nlk -%}{%- continue -%}{%- endif -%}
15
+ {%- if _np.nav_order == nil -%}{%- assign _nrest = _nrest | push: _np -%}{%- continue -%}{%- endif -%}
16
+ {%- assign _nnum = _np.nav_order | plus: 0 -%}
17
+ {%- if _nnum == _np.nav_order -%}{%- assign _nord = _nord | push: _np -%}{%- else -%}{%- assign _ntxt = _ntxt | push: _np -%}{%- endif -%}
18
+ {%- endfor -%}
19
+ {%- assign _ntxt = _ntxt | sort_natural: "nav_order" -%}
20
+ {%- assign mt_nav = _nord | sort: "nav_order" | concat: _ntxt | concat: _nrest -%}
21
+ {%- if mt_nav.size > 0 -%}{%- assign mt_nav_source = "auto" -%}{%- else -%}{%- assign mt_nav = nil -%}{%- endif -%}
22
+ {%- endif -%}
@@ -0,0 +1,17 @@
1
+ {%- comment -%}Sets mt_nav (a list of {title, url}, groups with items:), mt_nav_source (data | navigation | header_pages | auto) and
2
+ mt_nav_groups (false for pages, whose own items: front matter is not a nav group: no groups, sidebar or pager).
3
+ Order: _data/nav/<modootoday.nav>[-<lang>].yml or a list in _data/nav.yml; the main list of _data/navigation.yml;
4
+ site.header_pages (paths). With include.auto (the header only, once per page) and none of those: site/nav-auto.html.{%- endcomment -%}
5
+ {%- assign mt_nav_source = nil -%}{%- assign mt_nav_groups = false -%}
6
+ {%- assign mt_nav_name = mt.nav | default: "main" -%}
7
+ {%- assign mt_nav = site.data.nav[mt_nav_name] -%}
8
+ {%- assign _mt_nav_l = mt_nav_name | append: "-" | append: page.lang -%}
9
+ {%- if page.lang and site.data.nav[_mt_nav_l] -%}{%- assign mt_nav = site.data.nav[_mt_nav_l] -%}{%- endif -%}
10
+ {%- if mt_nav == nil and site.data.nav.first.url -%}{%- assign mt_nav = site.data.nav -%}{%- endif -%}
11
+ {%- if mt_nav -%}{%- assign mt_nav_source = "data" -%}{%- assign mt_nav_groups = true -%}
12
+ {%- elsif site.data.navigation.main.first.url -%}{%- assign mt_nav = site.data.navigation.main -%}{%- assign mt_nav_source = "navigation" -%}{%- assign mt_nav_groups = true -%}
13
+ {%- elsif site.header_pages.size > 0 -%}
14
+ {%- assign mt_nav = "" | split: "" -%}{%- assign mt_nav_source = "header_pages" -%}
15
+ {%- for _np in site.header_pages -%}{%- assign _npg = site.pages | where: "path", _np | first -%}{%- if _npg.title -%}{%- assign mt_nav = mt_nav | push: _npg -%}{%- endif -%}{%- endfor -%}
16
+ {%- elsif include.auto and mt.nav != false -%}{%- include modootoday/site/nav-auto.html -%}
17
+ {%- endif -%}