jekyll-theme-modootoday 1.4.1 → 1.6.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 (388) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +172 -1
  3. data/README.ko.md +41 -12
  4. data/README.md +41 -12
  5. data/RULES.md +30 -13
  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 +95 -0
  10. data/_includes/modootoday/assets/scripts.html +39 -0
  11. data/_includes/modootoday/assets/sheets.html +28 -0
  12. data/_includes/modootoday/assets/site-scripts.html +25 -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/chart/figure.html +4 -0
  19. data/_includes/modootoday/chart/table.html +14 -0
  20. data/_includes/modootoday/chrome/footer.html +16 -0
  21. data/_includes/modootoday/chrome/nav-sheet.html +13 -0
  22. data/_includes/modootoday/chrome/showcase.html +13 -0
  23. data/_includes/modootoday/config.html +20 -15
  24. data/_includes/modootoday/detail/page.html +28 -0
  25. data/_includes/modootoday/directory/item.html +4 -2
  26. data/_includes/modootoday/directory/items.html +7 -2
  27. data/_includes/modootoday/directory/jsonld.html +2 -2
  28. data/_includes/modootoday/directory/list.html +4 -2
  29. data/_includes/modootoday/directory/self.html +8 -0
  30. data/_includes/modootoday/doc/pagination.html +1 -1
  31. data/_includes/modootoday/doc/sidebar.html +1 -1
  32. data/_includes/modootoday/doc/twin.html +5 -4
  33. data/_includes/modootoday/docs-extra/jsonld.html +7 -7
  34. data/_includes/modootoday/docs-extra/packages.html +3 -3
  35. data/_includes/modootoday/filter/controls.html +4 -0
  36. data/_includes/modootoday/head-meta.html +14 -11
  37. data/_includes/modootoday/home-url.html +1 -1
  38. data/_includes/modootoday/i18n/ar.html +1 -1
  39. data/_includes/modootoday/i18n/de.html +1 -1
  40. data/_includes/modootoday/i18n/el.html +1 -1
  41. data/_includes/modootoday/i18n/es.html +1 -1
  42. data/_includes/modootoday/i18n/fa.html +1 -1
  43. data/_includes/modootoday/i18n/fr.html +1 -1
  44. data/_includes/modootoday/i18n/id.html +1 -1
  45. data/_includes/modootoday/i18n/it.html +1 -1
  46. data/_includes/modootoday/i18n/ja.html +1 -1
  47. data/_includes/modootoday/i18n/ko.html +1 -1
  48. data/_includes/modootoday/i18n/ml.html +1 -1
  49. data/_includes/modootoday/i18n/pl.html +1 -1
  50. data/_includes/modootoday/i18n/pt-BR.html +1 -1
  51. data/_includes/modootoday/i18n/ro.html +1 -1
  52. data/_includes/modootoday/i18n/ru.html +1 -1
  53. data/_includes/modootoday/i18n/th.html +1 -1
  54. data/_includes/modootoday/i18n/tr.html +1 -1
  55. data/_includes/modootoday/i18n/uk.html +1 -1
  56. data/_includes/modootoday/i18n/ur-Latn.html +1 -1
  57. data/_includes/modootoday/i18n/vi.html +1 -1
  58. data/_includes/modootoday/i18n/zh-CN.html +1 -1
  59. data/_includes/modootoday/i18n/zh-TW.html +1 -1
  60. data/_includes/modootoday/i18n.html +142 -123
  61. data/_includes/modootoday/jsonld/author.html +6 -7
  62. data/_includes/modootoday/jsonld/breadcrumb.html +4 -4
  63. data/_includes/modootoday/jsonld/graph.html +1 -1
  64. data/_includes/modootoday/jsonld/profile.html +3 -2
  65. data/_includes/modootoday/jsonld/props.html +2 -2
  66. data/_includes/modootoday/jsonld/schema/defined-term.html +8 -0
  67. data/_includes/modootoday/jsonld/schema/faq.html +19 -0
  68. data/_includes/modootoday/jsonld/schema/learning.html +11 -0
  69. data/_includes/modootoday/jsonld/type.html +10 -3
  70. data/_includes/modootoday/jsonld/webpage.html +1 -0
  71. data/_includes/modootoday/lang-switch.html +1 -1
  72. data/_includes/modootoday/links/content.html +9 -3
  73. data/_includes/modootoday/lookup/crumbs.html +13 -0
  74. data/_includes/modootoday/lookup/page.html +9 -0
  75. data/_includes/modootoday/lookup/urls.html +3 -0
  76. data/_includes/modootoday/markdown/c/chart.html +24 -0
  77. data/_includes/modootoday/markdown/c/faq.html +1 -1
  78. data/_includes/modootoday/markdown/c/params.html +3 -2
  79. data/_includes/modootoday/markdown/c/widget.html +22 -0
  80. data/_includes/modootoday/markdown/code.html +19 -0
  81. data/_includes/modootoday/markdown/components.html +12 -11
  82. data/_includes/modootoday/markdown/figures/diagrams.html +31 -0
  83. data/_includes/modootoday/markdown/figures/math.html +34 -0
  84. data/_includes/modootoday/markdown/figures.html +8 -0
  85. data/_includes/modootoday/markdown/inline/chart.html +30 -0
  86. data/_includes/modootoday/markdown/inline/widget.html +19 -0
  87. data/_includes/modootoday/markdown/inline.html +5 -1
  88. data/_includes/modootoday/markdown/llms-pages.html +2 -2
  89. data/_includes/modootoday/markdown/sections.html +12 -6
  90. data/_includes/modootoday/markdown/split.html +3 -2
  91. data/_includes/modootoday/markdown/visual.html +6 -0
  92. data/_includes/modootoday/meta/byline.html +7 -8
  93. data/_includes/modootoday/meta/share.html +1 -1
  94. data/_includes/modootoday/nav.html +6 -6
  95. data/_includes/modootoday/news/notes.html +1 -1
  96. data/_includes/modootoday/pages/error.html +4 -2
  97. data/_includes/modootoday/pages/hero/poster.html +10 -0
  98. data/_includes/modootoday/pages/search-form.html +6 -4
  99. data/_includes/modootoday/pages/title.html +6 -0
  100. data/_includes/modootoday/profile/name.html +8 -0
  101. data/_includes/modootoday/records/body.html +3 -0
  102. data/_includes/modootoday/records/card.html +5 -0
  103. data/_includes/modootoday/records/facts.html +14 -0
  104. data/_includes/modootoday/records/lookup.html +8 -0
  105. data/_includes/modootoday/ref-url.html +7 -1
  106. data/_includes/modootoday/render/chart.html +15 -0
  107. data/_includes/modootoday/render/math.html +23 -7
  108. data/_includes/modootoday/render/mermaid.html +6 -5
  109. data/_includes/modootoday/search/record.html +13 -0
  110. data/_includes/modootoday/search.json +14 -7
  111. data/_includes/modootoday/site/author.html +18 -0
  112. data/_includes/modootoday/site/nav-auto.html +22 -0
  113. data/_includes/modootoday/site/nav.html +17 -0
  114. data/_includes/modootoday/stylesheets.html +25 -21
  115. data/_includes/modootoday/t.html +1 -1
  116. data/_includes/modootoday/theme-color.html +3 -3
  117. data/_includes/modootoday/version.html +2 -0
  118. data/_layouts/blog.html +2 -0
  119. data/_layouts/default.html +12 -34
  120. data/_layouts/detail.html +2 -26
  121. data/_layouts/directory.html +9 -3
  122. data/_layouts/doc.html +5 -4
  123. data/_layouts/download.html +2 -2
  124. data/_layouts/events.html +1 -0
  125. data/_layouts/feed.html +3 -3
  126. data/_layouts/home.html +4 -1
  127. data/_layouts/integrations.html +1 -0
  128. data/_layouts/jobs.html +1 -0
  129. data/_layouts/llms.html +8 -5
  130. data/_layouts/page.html +5 -0
  131. data/_layouts/portfolio.html +1 -0
  132. data/_layouts/reference.html +4 -2
  133. data/_layouts/resume.html +3 -2
  134. data/_layouts/search.html +2 -2
  135. data/_layouts/sponsors.html +1 -0
  136. data/_layouts/team.html +1 -0
  137. data/_sass/modootoday/_access.scss +6 -6
  138. data/_sass/modootoday/_core.scss +9 -4
  139. data/_sass/modootoday/_settings.scss +3 -0
  140. data/_sass/modootoday/_sheet.scss +4 -0
  141. data/_sass/modootoday/_site.scss +3 -0
  142. data/_sass/modootoday/base/_code.scss +21 -12
  143. data/_sass/modootoday/base/_prose.scss +18 -12
  144. data/_sass/modootoday/base/_table.scss +3 -6
  145. data/_sass/modootoday/blog/_article.scss +8 -3
  146. data/_sass/modootoday/blog/_cards.scss +15 -13
  147. data/_sass/modootoday/blog/_index.scss +2 -0
  148. data/_sass/modootoday/blog/_news.scss +1 -1
  149. data/_sass/modootoday/blog/_post.scss +1 -1
  150. data/_sass/modootoday/components/chrome/_showcase.scss +40 -0
  151. data/_sass/modootoday/components/core/chrome/_breadcrumb.scss +7 -3
  152. data/_sass/modootoday/components/core/chrome/_header.scss +26 -0
  153. data/_sass/modootoday/components/core/chrome/_nav.scss +15 -20
  154. data/_sass/modootoday/components/core/chrome/_pagination.scss +12 -4
  155. data/_sass/modootoday/components/core/chrome/_theme-toggle.scss +2 -2
  156. data/_sass/modootoday/components/core/inline/_badge.scss +10 -6
  157. data/_sass/modootoday/components/core/inline/_callout.scss +5 -5
  158. data/_sass/modootoday/components/core/inline/_code-copy.scss +34 -8
  159. data/_sass/modootoday/components/core/inline/_code.scss +7 -5
  160. data/_sass/modootoday/components/core/inline/_cta.scss +6 -6
  161. data/_sass/modootoday/components/core/inline/_embed.scss +1 -1
  162. data/_sass/modootoday/components/core/inline/_figure.scss +5 -4
  163. data/_sass/modootoday/components/core/inline/_hero.scss +9 -5
  164. data/_sass/modootoday/components/core/inline/_kbd.scss +1 -1
  165. data/_sass/modootoday/components/core/inline/_reveal.scss +3 -1
  166. data/_sass/modootoday/components/data/_chart.scss +25 -0
  167. data/_sass/modootoday/components/doc/_sidebar.scss +29 -12
  168. data/_sass/modootoday/components/doc/_toc.scss +5 -4
  169. data/_sass/modootoday/components/figure/_figure-svg.scss +3 -1
  170. data/_sass/modootoday/components/filter/_filter.scss +14 -0
  171. data/_sass/modootoday/components/footer/_footer.scss +13 -0
  172. data/_sass/modootoday/components/media/_diagram.scss +14 -0
  173. data/_sass/modootoday/components/media/_widget.scss +7 -0
  174. data/_sass/modootoday/components/search/_search.scss +23 -14
  175. data/_sass/modootoday/components/section/showcase/_card.scss +20 -11
  176. data/_sass/modootoday/components/section/showcase/_cta.scss +5 -3
  177. data/_sass/modootoday/components/section/showcase/_linkcards.scss +11 -7
  178. data/_sass/modootoday/components/section/showcase/_pricing.scss +19 -9
  179. data/_sass/modootoday/components/section/showcase/_quote.scss +4 -3
  180. data/_sass/modootoday/components/section/structure/_accordion.scss +7 -1
  181. data/_sass/modootoday/components/section/structure/_params.scss +1 -2
  182. data/_sass/modootoday/components/section/structure/_steps.scss +1 -1
  183. data/_sass/modootoday/components/section/structure/_tabs.scss +14 -6
  184. data/_sass/modootoday/components/section/structure/_timeline.scss +13 -3
  185. data/_sass/modootoday/components/table/_table.scss +65 -0
  186. data/_sass/modootoday/components/table-stack/_table-stack.scss +22 -0
  187. data/_sass/modootoday/components/visual/_visual.scss +9 -0
  188. data/_sass/modootoday/detail/_index.scss +3 -0
  189. data/_sass/modootoday/detail/_page.scss +2 -0
  190. data/_sass/modootoday/directory/_grid.scss +7 -0
  191. data/_sass/modootoday/directory/_index.scss +3 -0
  192. data/_sass/modootoday/docs-extra/_index.scss +3 -0
  193. data/_sass/modootoday/docs-extra/_page.scss +15 -10
  194. data/_sass/modootoday/hero/_index.scss +2 -0
  195. data/_sass/modootoday/hero/_layout.scss +10 -7
  196. data/_sass/modootoday/kit/_button.scss +5 -5
  197. data/_sass/modootoday/kit/_measure.scss +5 -0
  198. data/_sass/modootoday/layout/_shell.scss +7 -21
  199. data/_sass/modootoday/marketing/_index.scss +3 -0
  200. data/_sass/modootoday/marketing/_page.scss +11 -7
  201. data/_sass/modootoday/marketing/_pricing.scss +6 -5
  202. data/_sass/modootoday/pages/_actions.scss +5 -4
  203. data/_sass/modootoday/pages/_error.scss +7 -3
  204. data/_sass/modootoday/pages/_index.scss +3 -0
  205. data/_sass/modootoday/pages/_legal.scss +3 -3
  206. data/_sass/modootoday/pages/_search.scss +3 -1
  207. data/_sass/modootoday/registry/_hooks.scss +13 -0
  208. data/_sass/modootoday/resume/_index.scss +3 -0
  209. data/_sass/modootoday/resume/_page.scss +1 -1
  210. data/_sass/modootoday/tokens/_code-presets.scss +17 -0
  211. data/_sass/modootoday/tokens/_fonts.scss +17 -0
  212. data/_sass/modootoday/tokens/_merge.scss +4 -0
  213. data/_sass/modootoday/tokens/_primitive.scss +4 -2
  214. data/_sass/modootoday/tokens/_scale.scss +9 -0
  215. data/_sass/modootoday/tokens/_semantic.scss +18 -11
  216. data/_sass/modootoday/tools/_functions.scss +9 -0
  217. data/_sass/modootoday.scss +6 -2
  218. data/assets/css/modootoday/chrome/banner.scss +8 -0
  219. data/assets/css/modootoday/chrome/doc-nav.scss +8 -0
  220. data/assets/css/modootoday/chrome/footer.scss +8 -0
  221. data/assets/css/modootoday/{search.scss → chrome/search.scss} +1 -2
  222. data/assets/css/modootoday/chrome/showcase.scss +8 -0
  223. data/assets/css/modootoday/{terminal.scss → chrome/terminal.scss} +1 -2
  224. data/assets/css/modootoday/content/code.scss +8 -0
  225. data/assets/css/modootoday/content/extras.scss +8 -0
  226. data/assets/css/modootoday/content/inline.scss +8 -0
  227. data/assets/css/modootoday/{lists.scss → content/lists.scss} +1 -2
  228. data/assets/css/modootoday/{loading.scss → content/loading.scss} +1 -2
  229. data/assets/css/modootoday/data/chart.scss +7 -0
  230. data/assets/css/modootoday/data/filter.scss +7 -0
  231. data/assets/css/modootoday/data/table-stack.scss +7 -0
  232. data/assets/css/modootoday/data/table.scss +7 -0
  233. data/assets/css/modootoday/docs/doc.scss +7 -0
  234. data/assets/css/modootoday/marketing/hero.scss +8 -0
  235. data/assets/css/modootoday/media/figure.scss +8 -0
  236. data/assets/css/modootoday/media/visual.scss +7 -0
  237. data/assets/css/modootoday/media/widget.scss +7 -0
  238. data/assets/css/modootoday/{bleed.scss → structure/bleed.scss} +1 -2
  239. data/assets/css/modootoday.scss +3 -2
  240. data/assets/js/modootoday/blog/share.js +34 -0
  241. data/assets/js/modootoday/chrome/menu.js +51 -0
  242. data/assets/js/modootoday/chrome/search-keys.js +56 -0
  243. data/assets/js/modootoday/chrome/search.js +112 -0
  244. data/assets/js/modootoday/chrome/showcase.js +15 -0
  245. data/assets/js/modootoday/chrome/theme-init.js +3 -0
  246. data/assets/js/modootoday/chrome/theme-toggle.js +36 -0
  247. data/assets/js/modootoday/content/code-copy.js +59 -0
  248. data/assets/js/modootoday/content/scroll-region.js +84 -0
  249. data/assets/js/modootoday/data/chart-table.js +16 -0
  250. data/assets/js/modootoday/data/chart.js +106 -0
  251. data/assets/js/modootoday/data/filter-chips.js +30 -0
  252. data/assets/js/modootoday/data/filter.js +62 -0
  253. data/assets/js/modootoday/data/table-stack.js +60 -0
  254. data/assets/js/modootoday/dom/config.js +32 -0
  255. data/assets/js/modootoday/structure/accordion.js +25 -0
  256. data/assets/js/modootoday/structure/tabs.js +51 -0
  257. data/assets/js/modootoday/text/normalize.js +28 -0
  258. data/assets/js/modootoday/theme/current.js +38 -0
  259. data/exe/modootoday-stubs +7 -0
  260. data/i18n/ar.yml +16 -2
  261. data/i18n/de.yml +16 -2
  262. data/i18n/el.yml +16 -2
  263. data/i18n/en.yml +16 -2
  264. data/i18n/es.yml +16 -2
  265. data/i18n/fa.yml +16 -2
  266. data/i18n/fr.yml +16 -2
  267. data/i18n/id.yml +16 -2
  268. data/i18n/it.yml +16 -2
  269. data/i18n/ja.yml +17 -3
  270. data/i18n/ko.yml +17 -3
  271. data/i18n/languages.yml +2 -1
  272. data/i18n/ml.yml +16 -2
  273. data/i18n/pl.yml +16 -2
  274. data/i18n/pt-BR.yml +16 -2
  275. data/i18n/ro.yml +16 -2
  276. data/i18n/ru.yml +16 -2
  277. data/i18n/th.yml +16 -2
  278. data/i18n/tr.yml +16 -2
  279. data/i18n/uk.yml +16 -2
  280. data/i18n/ur-Latn.yml +16 -2
  281. data/i18n/vi.yml +16 -2
  282. data/i18n/zh-CN.yml +17 -3
  283. data/i18n/zh-TW.yml +17 -3
  284. data/lib/jekyll-theme-modootoday.rb +14 -6
  285. data/lib/modootoday/check/build/aliases.rb +79 -0
  286. data/lib/modootoday/check/build/build_output.rb +58 -0
  287. data/lib/modootoday/check/build/byte_exact.rb +55 -0
  288. data/lib/modootoday/check/build/records.rb +39 -0
  289. data/lib/modootoday/check/build/showcase.rb +27 -0
  290. data/lib/modootoday/check/build/site_assets.rb +59 -0
  291. data/lib/modootoday/check/build/structured_data/nested.rb +29 -0
  292. data/lib/modootoday/check/{structured_data.rb → build/structured_data.rb} +15 -3
  293. data/lib/modootoday/check/build/term_sets.rb +46 -0
  294. data/lib/modootoday/check/build/third_party.rb +33 -0
  295. data/lib/modootoday/check/{twins.rb → build/twins.rb} +31 -14
  296. data/lib/modootoday/check/cli.rb +12 -5
  297. data/lib/modootoday/check/config/keys/appearance/chrome.rb +13 -0
  298. data/lib/modootoday/check/config/keys/appearance/color_scheme.rb +10 -0
  299. data/lib/modootoday/check/config/keys/appearance/components.rb +13 -0
  300. data/lib/modootoday/check/config/keys/appearance/showcase.rb +57 -0
  301. data/lib/modootoday/check/config/keys/appearance/switches.rb +15 -0
  302. data/lib/modootoday/check/config/keys/appearance/tokens.rb +31 -0
  303. data/lib/modootoday/check/config/keys/figures/chart.rb +16 -0
  304. data/lib/modootoday/check/config/keys/figures/diagrams.rb +31 -0
  305. data/lib/modootoday/check/config/keys/pages/content.rb +25 -0
  306. data/lib/modootoday/check/config/keys/pages/edit_url.rb +10 -0
  307. data/lib/modootoday/check/config/keys/pages/languages.rb +17 -0
  308. data/lib/modootoday/check/config/keys/pages/search.rb +47 -0
  309. data/lib/modootoday/check/config/keys/pages/twins.rb +30 -0
  310. data/lib/modootoday/check/config/keys/serving/csp.rb +9 -0
  311. data/lib/modootoday/check/config/keys/serving/delivery.rb +66 -0
  312. data/lib/modootoday/check/config/keys.rb +21 -0
  313. data/lib/modootoday/check/{renderers.rb → config/renderers.rb} +36 -61
  314. data/lib/modootoday/check/config/schema.rb +23 -0
  315. data/lib/modootoday/check/config/site_config.rb +25 -0
  316. data/lib/modootoday/check/config/source_mode.rb +18 -0
  317. data/lib/modootoday/check/config/validate.rb +47 -0
  318. data/lib/modootoday/check/context.rb +11 -5
  319. data/lib/modootoday/check/layouts/directory.rb +10 -2
  320. data/lib/modootoday/check/layouts/docs_extra.rb +3 -3
  321. data/lib/modootoday/check/layouts/profile.rb +21 -0
  322. data/lib/modootoday/check/layouts/shells.rb +2 -0
  323. data/lib/modootoday/check/layouts.rb +5 -1
  324. data/lib/modootoday/check/native/collections.rb +47 -0
  325. data/lib/modootoday/check/native/layouts.rb +43 -0
  326. data/lib/modootoday/check/native/sources.rb +27 -0
  327. data/lib/modootoday/check/{a11y → page/a11y}/new_window.rb +5 -5
  328. data/lib/modootoday/check/page/chart.rb +91 -0
  329. data/lib/modootoday/check/{component_rules.rb → page/component_rules.rb} +1 -1
  330. data/lib/modootoday/check/page/figures/diagrams.rb +64 -0
  331. data/lib/modootoday/check/page/figures/freshness.rb +55 -0
  332. data/lib/modootoday/check/page/figures/math_static.rb +88 -0
  333. data/lib/modootoday/check/page/filter.rb +63 -0
  334. data/lib/modootoday/check/page/hero_script.rb +39 -0
  335. data/lib/modootoday/check/page/math_notation.rb +36 -0
  336. data/lib/modootoday/check/{page_sections.rb → page/page_sections.rb} +5 -3
  337. data/lib/modootoday/check/{page_syntax.rb → page/page_syntax.rb} +4 -1
  338. data/lib/modootoday/check/page/pages.rb +65 -0
  339. data/lib/modootoday/check/page/widget.rb +66 -0
  340. data/lib/modootoday/check/{i18n.rb → registry/i18n.rb} +8 -30
  341. data/lib/modootoday/check/registry/i18n_pages.rb +80 -0
  342. data/lib/modootoday/check/{registry.rb → registry/registry.rb} +1 -1
  343. data/lib/modootoday/check/source/site_hook.rb +65 -0
  344. data/lib/modootoday/check.rb +30 -15
  345. data/lib/modootoday/figures.rb +88 -0
  346. data/lib/modootoday/i18n/page_lang.rb +56 -0
  347. data/lib/modootoday/i18n/source_rev.rb +26 -0
  348. data/lib/modootoday/i18n.rb +6 -0
  349. data/lib/modootoday/markdown.rb +46 -0
  350. data/lib/modootoday/schema/compat/minima.yml +8 -0
  351. data/lib/modootoday/schema/compat/minimal-mistakes.yml +16 -0
  352. data/lib/modootoday/schema/rules.rb +1 -0
  353. data/lib/modootoday/stubs/aliases.rb +61 -0
  354. data/lib/modootoday/stubs/cli.rb +77 -0
  355. data/lib/modootoday/stubs/page.rb +19 -0
  356. data/lib/modootoday/stubs/plan.rb +43 -0
  357. data/lib/modootoday/stubs/records.rb +101 -0
  358. data/lib/modootoday/stubs/report.rb +31 -0
  359. data/lib/modootoday/stubs/source.rb +87 -0
  360. data/lib/modootoday/stubs/twins.rb +40 -0
  361. data/lib/modootoday/stubs/writer.rb +19 -0
  362. data/lib/modootoday/stubs.rb +24 -0
  363. metadata +189 -43
  364. data/assets/css/modootoday/doc.scss +0 -10
  365. data/assets/css/modootoday/figure.scss +0 -8
  366. data/assets/js/modootoday/accordion.js +0 -13
  367. data/assets/js/modootoday/code-copy.js +0 -29
  368. data/assets/js/modootoday/menu.js +0 -19
  369. data/assets/js/modootoday/scroll-region.js +0 -14
  370. data/assets/js/modootoday/search-keys.js +0 -18
  371. data/assets/js/modootoday/search.js +0 -31
  372. data/assets/js/modootoday/share.js +0 -16
  373. data/assets/js/modootoday/tabs.js +0 -26
  374. data/assets/js/modootoday/theme-init.js +0 -2
  375. data/assets/js/modootoday/theme-toggle.js +0 -17
  376. data/lib/modootoday/check/build_output.rb +0 -39
  377. data/lib/modootoday/check/markdown.rb +0 -39
  378. data/lib/modootoday/check/pages.rb +0 -32
  379. data/lib/modootoday/check/site_config.rb +0 -88
  380. /data/lib/modootoday/check/{built_parts.rb → build/built_parts.rb} +0 -0
  381. /data/lib/modootoday/check/{blog.rb → layouts/blog.rb} +0 -0
  382. /data/lib/modootoday/check/{a11y → page/a11y}/content.rb +0 -0
  383. /data/lib/modootoday/check/{a11y → page/a11y}/illustration.rb +0 -0
  384. /data/lib/modootoday/check/{page_values.rb → page/page_values.rb} +0 -0
  385. /data/lib/modootoday/check/{slots.rb → page/slots.rb} +0 -0
  386. /data/lib/modootoday/check/{gh_render.rb → source/gh_render.rb} +0 -0
  387. /data/lib/modootoday/check/{github_pages.rb → source/github_pages.rb} +0 -0
  388. /data/lib/modootoday/check/{stylesheets.rb → source/stylesheets.rb} +0 -0
data/README.md CHANGED
@@ -19,7 +19,7 @@ A Jekyll theme that keeps page bodies in plain GitHub Markdown and styles them w
19
19
  - **Readable by agents.** Every page can have a byte-identical Markdown twin, plus `llms.txt` and `llms-full.txt`.
20
20
  - **Accessible.** Keyboard shortcuts, visible focus, safe areas on phones, 44 px touch targets, high contrast and reduced motion are built in.
21
21
  - **Checked.** `modootoday-check` validates the sources and the built site.
22
- - **Optional extras.** Search, a light/dark toggle, Mermaid diagrams and KaTeX math (off by default, loaded only on pages that use them) and schema.org JSON-LD.
22
+ - **Optional extras.** Search, a light/dark toggle, Mermaid diagrams and KaTeX math (off by default, loaded only on pages that use them), static diagrams and math from SVG files and MathML you commit, and schema.org JSON-LD.
23
23
 
24
24
  ## Install
25
25
 
@@ -27,7 +27,7 @@ As a gem (`theme:`):
27
27
 
28
28
  ```ruby
29
29
  # Gemfile
30
- gem "jekyll-theme-modootoday", "~> 1.4"
30
+ gem "jekyll-theme-modootoday", "~> 1.6"
31
31
  ```
32
32
 
33
33
  ```yaml
@@ -39,7 +39,7 @@ On GitHub Pages without a Gemfile (`remote_theme:`):
39
39
 
40
40
  ```yaml
41
41
  # _config.yml
42
- remote_theme: modootoday/jekyll-theme-modootoday@v1.4.1
42
+ remote_theme: modootoday/jekyll-theme-modootoday@v1.6.0
43
43
  plugins:
44
44
  - jekyll-remote-theme
45
45
  ```
@@ -50,7 +50,7 @@ Pin a tag or a commit. More options: [Install guide](https://modootoday.github.i
50
50
 
51
51
  ```sh
52
52
  mkdir my-docs && cd my-docs
53
- printf 'source "https://rubygems.org"\ngem "jekyll", "~> 4.4"\ngem "jekyll-theme-modootoday", "~> 1.4"\n' > Gemfile
53
+ printf 'source "https://rubygems.org"\ngem "jekyll", "~> 4.4"\ngem "jekyll-theme-modootoday", "~> 1.6"\n' > Gemfile
54
54
  printf 'theme: jekyll-theme-modootoday\nmarkdown: kramdown\nkramdown: {input: GFM}\nsass: {style: compressed, silence_deprecations: [import, global-builtin]}\n' > _config.yml
55
55
  printf -- '---\nlayout: doc\ntitle: Home\n---\n# Hello\n\n> [!TIP]\n> Plain Markdown, styled.\n' > index.md
56
56
  bundle install && bundle exec jekyll build
@@ -63,8 +63,10 @@ Walkthrough: [Write your first page](https://modootoday.github.io/jekyll-theme-m
63
63
 
64
64
  - **Plain body, rich layout.** The body is GFM; `sections:` front matter maps each `##` to a component. See [Components](https://modootoday.github.io/jekyll-theme-modootoday/components/) and the [kitchen sink](https://modootoday.github.io/jekyll-theme-modootoday/components/kitchen-sink/).
65
65
  - **Rules.** What may appear in a body, and what each pattern becomes, is defined in [RULES.md](RULES.md) (`md-components v1`).
66
- - **Settings and tokens.** One `modootoday:` block in `_config.yml`, CSS custom properties `--mt-*`, one Sass partial per component. See [Configuration](https://modootoday.github.io/jekyll-theme-modootoday/guides/configuration/) and [Customize](https://modootoday.github.io/jekyll-theme-modootoday/guides/customize/).
66
+ - **Plain Jekyll first.** A site `jekyll new` made builds once the theme line in `_config.yml` and the theme gem in the `Gemfile` (in place of `gem "minima"`) change: `layout: page`, the home post list, `header_pages` or titled pages in the header, and `author:` in every shape. See [Migrate and upgrade](https://modootoday.github.io/jekyll-theme-modootoday/guides/upgrade/).
67
+ - **Settings and tokens.** One `modootoday:` block in `_config.yml`, CSS custom properties `--mt-*` that a site sets from one Sass hook (`_sass/modootoday/_site.scss`, no inline style), one Sass partial per component. See [Configuration](https://modootoday.github.io/jekyll-theme-modootoday/guides/configuration/) and [Customize](https://modootoday.github.io/jekyll-theme-modootoday/guides/customize/).
67
68
  - **Blog and news.** `blog`, `news`, `news-article`, `author` and `feed` layouts: paginated card lists (list, grid, magazine), bylines from `_data/authors.yml`, series, related posts, share, JSON-LD, per-language Atom feeds; Liquid only, styles and script in an optional bundle. See [Blog and news](https://modootoday.github.io/jekyll-theme-modootoday/layouts/blog-news/).
69
+ - **Pages from data.** `modootoday.records` gives every record of a `_data` file its own page on classic Pages: `modootoday-stubs --records` writes one front-matter-only page per record, a directory page with `records:` lists them, and `modootoday-check --byte-exact=api` proves a folder is published byte for byte. See [Generated pages](https://modootoday.github.io/jekyll-theme-modootoday/recipes/generated-pages/).
68
70
  - **Twins: three ways** — stub files (default, classic Pages), the `jekyll-theme-modootoday` plugin (Jekyll 4 / Actions), or `modootoday.twins: source` with front-matter-less pages (classic Pages, no stubs). See [RULES.md §5a](RULES.md#5a-markdown-twins).
69
71
 
70
72
  ## Commands
@@ -74,44 +76,71 @@ Walkthrough: [Write your first page](https://modootoday.github.io/jekyll-theme-m
74
76
  <!-- commands:begin (generated by script/readme-commands; do not edit) -->
75
77
  | Option | Checks |
76
78
  |---|---|
77
- | `SRC SITE` | always: front matter, forbidden syntax, alerts, fence info strings, `status:`/`tag:`/`kbd:` values (`since:` is rejected), `sections:` count, `_data/i18n/<lang>.yml` keys against the default language and translated pages against default-language pages, `_data/components.yml` (keys, slot contract counts per section, `parts` against `api.md` and the built HTML), Sass/CSS rules, unconverted markers in the build, schema.org JSON-LD in the build (valid JSON, vocabulary, required properties per type, absolute URLs, ISO 8601 dates, one graph per page, agreement with Open Graph) |
79
+ | `SRC SITE` | always: front matter, forbidden syntax, alerts, fence info strings, `status:`/`tag:`/`kbd:` values (`since:` is rejected), `sections:` count, `_data/i18n/<lang>.yml` keys against the default language and translated pages against default-language pages, `_data/components.yml` (keys, slot contract counts per section, `parts` against `api.md` and the built HTML), Sass/CSS rules, the token hook `_sass/modootoday/_site.scss` (only the three override maps, known token names), `site_css`, `preload` and `scripts` files present in the build, `script:` and `poster:` on hero and section items (a registered script, a sized poster that exists), `filter:` on section items and pages (a list or table to filter, a `facet` column the table has), `chart:` lines and `c: chart` sections (a type and options, a table or a `_data/charts` file, number cells), `widget:` lines, `widget_props` and `c: widget` sections (an element a `modootoday.scripts` entry defines, plain prop values, a lead paragraph), `diagrams:` (an entry per Mermaid fence, `alt`, the SVG files, an SVG drawn from another fence), static math (an entry per math block in `_data/math`, entries rendered from other TeX, no inline math),`modootoday.search` keys and collections, `modootoday.showcase` (also in `_config.demo.yml`) and, while it is enabled, the robots `noindex` on every built page (warning), `search.json` over 1.5 MB (warning), unconverted markers in the build, schema.org JSON-LD in the build (valid JSON, vocabulary, required properties per type, absolute URLs, ISO 8601 dates, one graph per page, agreement with Open Graph, a `DefinedTerm` page's `term_set` glossary), `modootoday.schema.faq`, `modootoday.records` (a page per record and a record per page, as `modootoday-stubs --records --check` judges) |
78
80
  | `--twins` | every page has a byte-identical Markdown twin, per-language `llms.txt` and `llms-full.txt` |
81
+ | `--aliases` | the URL aliases `modootoday.aliases` declares: `/<page>.md` byte-identical to the twin (`md`), `/<page>.html` redirecting to the page with the page URL as canonical (`html`); two pages with one alias, or an alias over another source file, fail |
82
+ | `--byte-exact=DIR,...` | files under these source folders (an API, downloads) are in the build with the same sha256; a folder under `_` or `.` or excluded, a file with front matter, or one Jekyll converts (Markdown, Sass) fails |
79
83
  | `--github-pages[=VERSION]` | `Gemfile.lock` pins `github-pages` VERSION (default 232) |
80
84
  | `--schema-recommended` | also warn about schema.org properties Google Search recommends (author, image, dates, ...) that a JSON-LD node lacks |
81
85
  | `--strict` | warnings fail the run |
82
86
  | `--i18n` | `_data/i18n/<lang>.yml` against the theme registry (`i18n/en.yml` in the gem): unknown keys, `%{name}` placeholder mismatches, and pages marked `translation: pending` |
83
- | `--i18n-pages` | warn about default-language pages with no translation in a `modootoday.full_languages` language (the page with the same `ref:`, else the same path under `<lang>/`); with `--strict` they fail |
87
+ | `--i18n-pages` | warn about default-language pages with no translation in a `modootoday.full_languages` language (the page with the same `ref:`, else `<name>.<lang>.md` beside it or the same path under `<lang>/`) and about translations without `source_rev` or whose source changed since it; with `--strict` they fail. A translation beside its source whose `permalink` is not the source's URL under `/<lang>` is an error |
84
88
  | `--i18n-init=LANG,...` | copy the theme's catalogs (`i18n/<lang>.yml`, 23 languages) into `SRC/_data/i18n/` as a starting point for overrides (optional; the theme already uses them), and list keys an existing catalog lacks |
89
+ | `--diagrams` | instead of checking, print the static diagrams whose SVG is missing or stale as JSON (`page`, `name`, `line`, `fence`, `digest`, `files`, `reason`) and exit 1 when there is any; SITE may be omitted. A pre-commit hook or a render script reads it |
90
+ | `--math` | with `modootoday.math.mode: static`, instead of checking, print the `_data/math` files whose page has math blocks without an entry or with a stale one as JSON (`key`, `file`, `page`, `blocks` with `line`, `tex` and `digest`, `reason`) and exit 1 when there is any; SITE may be omitted. `script/figures/math.mjs` reads it |
85
91
  | `--gh` | also render each page with `gh api markdown` (network, `gh` login) |
86
92
  | `--help, -h` | print usage and options (`--help=markdown` prints the README table) |
87
93
  | `--version` | print the rules version |
88
94
  <!-- commands:end -->
89
95
 
96
+ `modootoday-stubs SRC [options]` (writes the stub pages for twins, URL aliases and record pages; run before `jekyll build`):
97
+
98
+ <!-- stubs:begin (generated by script/readme-commands; do not edit) -->
99
+ | Option | Does |
100
+ |---|---|
101
+ | `SRC` | the site source; without `--write` or `--check` nothing is written and the planned creates, updates and deletes are listed |
102
+ | `--twins` | a stub `<name>.md.txt` per page (`layout: twin`) for its twin at `/<name>/index.md` |
103
+ | `--aliases` | the aliases `modootoday.aliases` turns on: `md` a stub `<name>.flat.md.txt` (`layout: twin`) at `/<name>.md`, `html` a stub `<name>.html.md.txt` (`layout: redirect`) at `/<name>.html` |
104
+ | `--records[=SET,...]` | a page `<dir>/<key>.md` per record of each set in `modootoday.records` (or only the named sets): front matter only, with the title, description, permalink and `record:` the layout reads |
105
+ | `--write` | write the planned stubs; files whose content is already right are not touched |
106
+ | `--check` | write nothing; exit 1 when a stub is missing, out of date or orphaned |
107
+ | `--no-prune` | keep orphan stubs (by default a twin stub whose page is gone, an alias stub no page wants, or a record page whose record is gone, is deleted) |
108
+ | `--json` | print the plan as JSON (`mode`, `kinds`, `changes` with `path`, `action`, `reason`) |
109
+ | `--quiet` | print only drift found by `--check` and errors |
110
+ | `--help, -h` | print usage and options (`--help=markdown` prints the README table) |
111
+ | `--version` | print the version |
112
+ <!-- stubs:end -->
113
+
90
114
  ## AI agents
91
115
 
92
116
  - Each page `guide.md` has a twin at `/guide/index.md` with the same bytes as its body, linked with `rel="alternate" type="text/markdown"`.
93
117
  - `llms.txt` and `llms-full.txt` exist at `/` and under each `/<lang>/`.
94
- - Jekyll 4: `plugins: [jekyll-theme-modootoday]` creates them; the classic GitHub Pages build uses one-file stubs.
118
+ - Jekyll 4: `plugins: [jekyll-theme-modootoday]` creates them; the classic GitHub Pages build uses one-file stubs, which `modootoday-stubs SRC --twins --write` writes.
119
+ - Optional URL aliases (`modootoday.aliases`): `/guide.md` (the twin again) and `/guide.html` (a redirect to `/guide/`), from `modootoday-stubs SRC --aliases --write`.
95
120
  - Details: [Agents guide](https://modootoday.github.io/jekyll-theme-modootoday/guides/agents/) and this repository's own [llms.txt](https://modootoday.github.io/jekyll-theme-modootoday/llms.txt).
96
121
 
97
122
  ## Guides
98
123
 
99
124
  - [Documentation site](https://modootoday.github.io/jekyll-theme-modootoday/) (built with this theme from [`docs/`](docs/))
100
- - [Install](https://modootoday.github.io/jekyll-theme-modootoday/guides/install/) · [First page](https://modootoday.github.io/jekyll-theme-modootoday/guides/first-page/) · [Components](https://modootoday.github.io/jekyll-theme-modootoday/components/) · [Configuration](https://modootoday.github.io/jekyll-theme-modootoday/guides/configuration/) · [Customize](https://modootoday.github.io/jekyll-theme-modootoday/guides/customize/) · [Layouts](https://modootoday.github.io/jekyll-theme-modootoday/layouts/) · [Blog and news](https://modootoday.github.io/jekyll-theme-modootoday/layouts/blog-news/) · [Recipes](https://modootoday.github.io/jekyll-theme-modootoday/recipes/) · [Math and diagrams](https://modootoday.github.io/jekyll-theme-modootoday/recipes/math-diagrams/) · [Translation rules](https://modootoday.github.io/jekyll-theme-modootoday/guides/translation/) · [Structured data](https://modootoday.github.io/jekyll-theme-modootoday/guides/structured-data/) · [Public API](https://modootoday.github.io/jekyll-theme-modootoday/reference/api/) · [Migrate and upgrade](https://modootoday.github.io/jekyll-theme-modootoday/guides/upgrade/) · [CSP](https://modootoday.github.io/jekyll-theme-modootoday/recipes/csp/) · [Accessibility](https://modootoday.github.io/jekyll-theme-modootoday/guides/accessibility/) · [Roadmap](https://modootoday.github.io/jekyll-theme-modootoday/reference/roadmap/) · [Changelog](CHANGELOG.md)
101
- - Supported stacks: GitHub Pages (`github-pages` 232, Jekyll 3.10, Ruby 3.3.4) and Jekyll 4.4 on Ruby 3.2 to 3.4, all tested in CI; Jekyll 3.9 is the tested floor.
125
+ - [Install](https://modootoday.github.io/jekyll-theme-modootoday/guides/install/) · [First page](https://modootoday.github.io/jekyll-theme-modootoday/guides/first-page/) · [Components](https://modootoday.github.io/jekyll-theme-modootoday/components/) · [Configuration](https://modootoday.github.io/jekyll-theme-modootoday/guides/configuration/) · [Customize](https://modootoday.github.io/jekyll-theme-modootoday/guides/customize/) · [Layouts](https://modootoday.github.io/jekyll-theme-modootoday/layouts/) · [Blog and news](https://modootoday.github.io/jekyll-theme-modootoday/layouts/blog-news/) · [Recipes](https://modootoday.github.io/jekyll-theme-modootoday/recipes/) · [Math and diagrams](https://modootoday.github.io/jekyll-theme-modootoday/recipes/math-diagrams/) · [Charts](https://modootoday.github.io/jekyll-theme-modootoday/recipes/charts/) · [Widgets](https://modootoday.github.io/jekyll-theme-modootoday/recipes/widgets/) · [Generated pages](https://modootoday.github.io/jekyll-theme-modootoday/recipes/generated-pages/) · [Translation rules](https://modootoday.github.io/jekyll-theme-modootoday/guides/translation/) · [Structured data](https://modootoday.github.io/jekyll-theme-modootoday/guides/structured-data/) · [Public API](https://modootoday.github.io/jekyll-theme-modootoday/reference/api/) · [Migrate and upgrade](https://modootoday.github.io/jekyll-theme-modootoday/guides/upgrade/) · [CSP](https://modootoday.github.io/jekyll-theme-modootoday/recipes/csp/) · [Accessibility](https://modootoday.github.io/jekyll-theme-modootoday/guides/accessibility/) · [Performance](https://modootoday.github.io/jekyll-theme-modootoday/guides/performance/) · [Roadmap](https://modootoday.github.io/jekyll-theme-modootoday/reference/roadmap/) · [Changelog](CHANGELOG.md)
126
+ - Supported stacks: GitHub Pages (`github-pages` 232, Jekyll 3.10, Ruby 3.3.4) and Jekyll 4.4 on Ruby 3.3 to 3.4 (Ruby 4.0 also runs in CI), all tested in CI; Jekyll 3.9 is the tested floor.
102
127
  - [Security policy](SECURITY.md) · [Code of conduct](CODE_OF_CONDUCT.md)
103
128
 
104
129
  ## Exit codes
105
130
 
106
131
  | Code | Meaning |
107
132
  |---|---|
108
- | 0 | no problems |
109
- | 1 | problems found (listed on stderr) or bad usage |
133
+ | 0 | no problems (`modootoday-stubs`: nothing to do, previewed or written) |
134
+ | 1 | problems found (listed on stderr) or bad usage (`modootoday-stubs`: `--check` found drift) |
135
+ | 2 | `modootoday-stubs`: bad usage or a `_config.yml` error |
136
+ | 3 | `modootoday-stubs`: a data error (front matter, unsafe permalink, alias conflict, a record without a key or with a duplicate key) |
110
137
 
111
138
  ## Contributing
112
139
 
113
140
  Issues and pull requests are welcome. English is the canonical language; translations follow it. See [CONTRIBUTING.md](CONTRIBUTING.md).
114
141
 
142
+ [`example/`](example/) holds three starter sites, `docs`, `blog` and `landing`, listed in `example/starters.yml`. `bundle exec rake starters:render` writes each one for GitHub Pages (`remote_theme`) and Jekyll 4, with its `Gemfile`, `README.md`, a Pages workflow that runs `modootoday-check`, and its stubs.
143
+
115
144
  ## License
116
145
 
117
146
  [MIT](LICENSE) © modootoday (모두의오늘)
data/RULES.md CHANGED
@@ -2,7 +2,7 @@ md-components v1
2
2
 
3
3
  # md-components rules
4
4
 
5
- Goal: page bodies (`*.md`, `<lang>/*.md`) use only standard GitHub Flavored Markdown (plus GitHub's alert extension) that renders unchanged on github.com. Design comes from layouts, includes, CSS and optional JS. Targets: the GitHub Pages build (`github-pages` gem 232, Jekyll 3.10, kramdown GFM, allowed plugins only, no build scripts) and Jekyll 4.
5
+ Goal: page bodies (`*.md`, and translations such as `*.ko.md` or `<lang>/*.md`) use only standard GitHub Flavored Markdown (plus GitHub's alert extension) that renders unchanged on github.com. Design comes from layouts, includes, CSS and optional JS. Targets: the GitHub Pages build (`github-pages` gem 232, Jekyll 3.10, kramdown GFM, allowed plugins only, no build scripts) and Jekyll 4.
6
6
 
7
7
  Status: **final** (v1, approved 2026-10-30). `md-components v1` is the name of this Markdown rules standard; changes are listed in `CHANGELOG.md`.
8
8
 
@@ -16,7 +16,8 @@ Every content page starts with front matter; an empty block (`---` then `---`) i
16
16
  | Sections | `# Title`, lead paragraph, link-only paragraph (CTA), then `## Section`; front matter `sections:` | `doc` layout → `_includes/modootoday/markdown/sections.html`: with `sections:` the part before the first `##` is `section.mt-hero` and item *i* wraps the *i*-th **top-level** `##` in `section.mt-section` (an `h2` nested in a quote, list or alert never splits); without it, one `div.mt-prose` | plain document |
17
17
  | Section decor | front matter `decor: <include>` on `hero:` or a section item | the include inside `div.mt-section-decor[aria-hidden=true]` at the end of the section, which gets `.mt-has-decor` | not shown |
18
18
  | List styles (optional) | `modootoday.lists: {link_chips, titled_items}`; `hero: {checks: true}` | plain sections and pages: link-only list → `ul.mt-chips`, `- **Title**: text` → `strong.mt-item-title` + `span.mt-item-sep`; hero: `.mt-hero-checks`; first `p` after the `h1` → `p.mt-hero-lead` | plain lists |
19
- | Split hero | front matter `hero: {c: split, visual: <name>, side: start\|end, ratio: "1:1"\|"5:7"}` | `section.mt-hero.mt-c-split` > `.mt-section-in` > `.mt-section-body` (h1, lead, checks, actions) + `.mt-section-visual`; split sheet | with `c: split`, a missing `visual:` and other side/ratio values are checker errors; another `c` (a site's own component name) renders the plain hero and is not checked |
19
+ | Split hero | front matter `hero: {c: split, visual: <name>, side: start\|end, ratio: "1:1"\|"5:7"}` | `section.mt-hero.mt-c-split` > `.mt-section-in` > `.mt-section-body` (h1, lead, checks, actions) + `.mt-section-visual`; split sheet | with `c: split`, a missing `visual:` (unless `script:` or `poster:` fills the column) and other side/ratio values are checker errors; another `c` (a site's own component name) renders the plain hero and is not checked |
20
+ | Script visual | `script: <name>` (an entry of `modootoday.scripts`) and `poster: <path>` or `{path, srcset, sizes, width, height}` on `hero:` or a section item | the visual column (`.mt-section-visual`, or `div.mt-visual` outside split) gets `data-mt-script=<name>` and `img.mt-visual-poster` first (hero: `fetchpriority="high"`, sections: `loading="lazy"`); the page's `<head>` links the entry's `css`, `modulepreload` hints and `<script type="module">`, once per name; optional `visual` sheet. The module draws into a `.mt-visual-stage` after the poster and sets `data-mt-ready` on the column, which hides the poster | poster only (no JavaScript, reduced motion, or a failed module); an unregistered name, a poster without `width` and `height` or a missing file, and either key with `visual: code` are checker errors |
20
21
  | Split code | `visual: code` on `c: split` or a split hero (optional `chrome: terminal`) | the first code block moves into `div.mt-section-visual.mt-split-code` (`.mt-split-terminal` + `div.mt-split-bar[aria-hidden]`); split sheet, plus the terminal sheet only with `chrome: terminal` | no fence in that item, or `chrome:` without split + `visual: code`, are checker errors |
21
22
  | Scroll reveal | front matter `reveal: true` on `hero:` or a section item | `.mt-reveal` on the section; CSS-only fade-in on scroll inside `@supports (animation-timeline: view())` and `prefers-reduced-motion: no-preference` | shown as is |
22
23
  | Full-width band | front matter `bleed: true` or `bleed: wide` on `hero:` or a section item | `.mt-bleed` (plus `.mt-bleed-wide`) on the section, no wrapper; the optional `bleed` sheet paints `--mt-bleed-bg` to the viewport edges, `wide` widens the content up to the container | other values are checker errors |
@@ -24,15 +25,15 @@ Every content page starts with front matter; an empty block (`---` then `---`) i
24
25
  | Section mapping | each `sections:` item is a string `name` or `{c: component, name: key, ...params}`. No implicit mapping. Item count ≠ top-level `## ` count is a checker error; setext `---` headings, `##` in quotes/alerts/list items, `##` indented 1–3 spaces and `##` inside HTML comments are checker errors | `data-section`=name, `data-c`=c, class `mt-c-<c>` | none |
25
26
  | Card grid | under `##`, list items `- **Title** — text` or `- **Title**: text` (the separator after the title is not shown) | CSS only | list |
26
27
  | CTA buttons | every link-only paragraph in `section.mt-hero` and in `c: cta` sections; the first link is primary. Separator text such as `·` between links is a text node, so the paragraph still counts as link-only | CSS `p:has(> a):not(:has(> :not(a)))` | links |
27
- | Install tabs | in a `c: tabs` section, repeated `### name` + fenced code block (info string = one language word) | `data-tabs` + i18n `tabs.label`; `assets/js/modootoday/tabs.js` builds WAI-ARIA tabs (arrows, Home, End) | all blocks in order |
28
- | Diagrams, math | ```` ```mermaid ```` / ```` ```math ````, a `$$` block on its own lines; inline `$…$` only with `modootoday.math.inline: true` (otherwise a checker warning) | off by default. `modootoday.mermaid` / `modootoday.math` load a version-pinned renderer with SRI `integrity` (or a self-hosted path) plus `assets/js/modootoday-{mermaid,math}.js`, only on pages with a block; front matter `mermaid: false` / `math: false` skips a page. A CDN adds its origin to `script-src` (math also `style-src`, `font-src`) and receives visitors' IP addresses; Mermaid needs `style-src 'unsafe-inline'`. Any other third-party script or stylesheet, or one without matching `integrity` and `crossorigin="anonymous"`, is a checker error (docs: Math and diagrams) | code / GitHub mermaid, math |
28
+ | Install tabs | in a `c: tabs` section, repeated `### name` + fenced code block (info string = one language word) | `data-tabs` + i18n `tabs.label`; `assets/js/modootoday/structure/tabs.js` builds WAI-ARIA tabs (arrows, Home, End) | all blocks in order |
29
+ | Diagrams, math | ```` ```mermaid ```` / ```` ```math ````, a `$$` block on its own lines; inline `$…$` only with `modootoday.math.inline: true` (otherwise a checker warning) | off by default. Front matter `diagrams: [{name, alt, caption, width, height}]` turns the n-th ```` ```mermaid ```` fence into `figure.mt-figure.mt-figure-svg.mt-diagram` showing the committed `<modootoday.diagrams.dir><name>.svg` (and `.dark.svg`, swapped by colour scheme) with the fence in `details.mt-diagram-source` (`modootoday.diagrams.source: none` drops it); count, `alt` and files are checked. `modootoday.math.mode: static` replaces the n-th ```` ```math ```` fence or `$$` block with the `html` of the n-th entry of `_data/math/<key>.yml` in `figure.mt-figure.mt-math > div.mt-figure-scroll` (MathML, no script); count and digests are checked and inline `$…$` is a checker error. `modootoday.mermaid` / `modootoday.math` load a version-pinned renderer with SRI `integrity` (or a self-hosted path) plus `assets/js/modootoday-{mermaid,math}.js`, only on pages with a block; front matter `mermaid: false` / `math: false` skips a page. A CDN adds its origin to `script-src` (math also `style-src`, `font-src`) and receives visitors' IP addresses; Mermaid needs `style-src 'unsafe-inline'`. Any other third-party script or stylesheet, or one without matching `integrity` and `crossorigin="anonymous"`, is a checker error (docs: Math and diagrams) | code / GitHub mermaid, math |
29
30
  | Tables | GFM tables | CSS horizontal scroll | table |
30
31
  | Decoration | front matter or layout | read by layouts, never in bodies | none |
31
32
 
32
33
  ## 2. Optional components
33
34
  | Component | Markdown | Transformation | Notes |
34
35
  |---|---|---|---|
35
- | Status badge | code span `` `status:available` `` / `partial` / `planned` (fixed set) | with badges on (default; `badges: false` per page or `modootoday.badges: false` site-wide): `span.mt-badge.mt-badge-<value>` = symbol (●◐○, `aria-hidden`) + i18n `status.<value>` | unknown values and leftover `<code>status:` in the build are checker errors |
36
+ | Status badge | code span `` `status:available` `` / `partial` / `planned` (fixed set) | with badges on (default; `badges: false` per page or `modootoday.badges: false` site-wide): `span.mt-badge.mt-badge-<value>` = i18n `status.<value>`, with a status-coloured dot drawn by CSS (a border, so it survives forced colours) | unknown values and leftover `<code>status:` in the build are checker errors |
36
37
  | Tag badge | `` `tag:beta` `` (one token `[A-Za-z0-9._-]+`) | `span.mt-badge.mt-badge-tag` | needs the `badge` component; bad values are checker errors. `since:` is not part of 1.0 and is a checker error |
37
38
  | Accordion | `c: accordion` section, each `###` is a question | JS turns `###` into `button[aria-expanded]` + panel; content stays visible without JS | — |
38
39
  | Steps | `c: steps` section with an `ol` or `###` items | CSS counters | — |
@@ -40,18 +41,21 @@ Every content page starts with front matter; an empty block (`---` then `---`) i
40
41
  | Breadcrumb / TOC / theme toggle | automatic (`breadcrumb: false`, `toc: false` per page; TOC shows with 2+ `##`/`###`; toggle only with `color_scheme: auto`) | `nav.mt-breadcrumb`, `nav.mt-toc`, header button (i18n `theme.toggle`, `breadcrumb.label`, `toc.label`) | — |
41
42
  | Timeline | `c: timeline` section; each `###` is a date or milestone, content follows | CSS line and dots | — |
42
43
  | Keyboard keys | `` `kbd:Ctrl+K` `` (keys joined by `+`, no spaces) | `kbd.mt-kbd > kbd` per key | bad values are checker errors |
43
- | Search | add `search.json` with `layout: null` and `{% include modootoday/search.json %}` | header `div.mt-search[role=search]` (i18n `search.label`) + `search.js` (under 1 KB compressed); pages with `search: false` are left out | rendered only when `/search.json` exists |
44
+ | Search | add `search.json` with `layout: null` and `{% include modootoday/search.json %}` | header `div.mt-search[role=search]` (i18n `search.label`) + `chrome/search-keys.js`, which imports `chrome/search.js` on first use; pages with `search: false` are left out. `modootoday.search`: `words` (default 300, `0` all), `collections`, `fields`, `exclude` shape the index; `match: terms`, `compact: true`, `results` reach `chrome/search.js` as `data-match`, `data-compact`, `data-results`. Matching is NFC and case-insensitive | rendered only when `/search.json` exists; without the key the index and matching are as before |
45
+ | Filter | front matter `filter: true` or `{facet: <column>}` on a `sections:` item (the first list or table of that section) or on a page without `sections:` (its first list or table); `filter_text: true` on a directory layout | `data-mt-filter` (`data-facet`) on the section, `div.mt-prose` or `div.mt-dir`, and a hidden `div.mt-filter` (search field, `output[aria-live]` count, i18n `filter.label`, `filter.count`); `filter/filter.js` (a module) shows it before the list or table, hides `li` / `tbody tr` without every typed word (NFC, case and spacing ignored) and with `facet` adds one `button[aria-pressed]` per value of that column; optional `filter` sheet | every item visible; a value other than `true`, `false` or `{facet: n}`, no list or table, a `facet` beyond the table's columns, page `filter:` with `sections:` and `filter:` on `c: split` are checker errors |
44
46
  | Post layout | `layout: post` (`date`, optional `author`, `tags`) | `p.mt-post-meta` (date with i18n `post.date_format`, author, tag badges), then the doc pipeline | — |
45
47
  | Code title | a line holding only `` `file:path` `` right before a fenced block | `div.mt-code` > `p.mt-code-title` + block | a lone `file:` line not followed by a fence is a checker error |
46
48
  | Progress | `` `progress:60` `` (whole number 0–100) | `span.mt-progress` > `progress` + value text (i18n `progress.label`) | out of range is a checker error |
47
49
  | Embed | a paragraph holding only `` `embed:https://… Title` `` | `div.mt-embed` > lazy `iframe[title]` (16:9 reserved) | non-https is a checker error |
48
50
  | Loading / skeleton | `` `loading:spinner` ``, `` `loading:bar` ``, `` `skeleton:text` `` / `card` / `image` / `avatar` / `row` | `span.mt-spinner`, `span.mt-topbar`, `span.mt-skeleton` with `role=status`, `aria-busy` and i18n `loading.label`; optional `loading` sheet; reduced motion, forced colors and RTL | unknown variants are checker errors |
49
51
  | File tree / Details / FAQ / Params / Link cards / Quote / Gallery / Pricing / Subscribe / Split | `c: filetree` (nested list), `c: details` and `c: faq` (`###` per item), `c: params` (table), `c: linkcards` (link-first list), `c: quote` (quote ending in `— name`), `c: gallery` (tight image list), `c: pricing` (`###` per plan, param `recommended`), `c: subscribe` (text; form posts to `modootoday.subscribe.action`), `c: split` (text beside its `visual:`, params `side`, `ratio`; the only section with inner wrappers) | per-component markup listed in docs api.md; each has its own sheet | gallery images need alt; `recommended` must be in range; subscribe action must be https; split needs `visual:` |
52
+ | Chart | with `modootoday.chart.enabled`, a paragraph holding only `` `chart:<type>` `` (`bar`, `line`, `area`, `pie`, `doughnut`; options `stacked`, `horizontal`) right before a GFM table; or a `c: chart` section (params `type`, `stacked`, `horizontal`, `data: <name>` for `_data/charts/<name>.yml`) | `figure.mt-chart[data-type][data-opts]` > `div.mt-chart-canvas[hidden]` + `div.mt-chart-data` (the table, which stays the fallback) + `figcaption` from an emphasis-only paragraph after the table (with `data:`, the one ending the section); optional `chart` sheet | unknown types and options, a `chart:` line without a table, a section with both or neither of a table and `data:`, a missing or misshapen data file are checker errors; non-number cells warn; a leftover `chart:` paragraph in the build is an error |
53
+ | Widget | a `c: widget` section (params `widget`: the `element` of a `modootoday.scripts` entry, `props`: a map of plain values), or a paragraph holding only `` `widget:<element>` `` (props from front matter `widget_props.<element>`) | `<element class="mt-widget" data-props="{json}">` > `div.mt-widget-fallback` holding the section text after the h2 (the inline form: the i18n `widget.fallback` sentence); the fallback shows until the element is defined (`:defined`); optional `widget` sheet; the entry's module and sheet load only on pages that contain the element | an element no `modootoday.scripts` entry names, props that are not plain values and a section without a lead paragraph are checker errors; a `widget:` line for an unregistered element stays a code span |
50
54
  | Component registry | optional `_data/components.yml`: `name: {params: {key: {allowed: [...], required: bool}}, i18n: [keys...]}` | when present the checker validates `c`, params and i18n keys | — |
51
55
 
52
56
  ## 3. Localisation
53
57
  - Chrome strings use `_data/i18n/<lang>.yml`: `callout.<type>`, `tabs.label`, `status.<value>`, `skip`. Missing keys fall back to English.
54
- - The same rules apply to `<lang>/*.md`.
58
+ - The same rules apply to translated pages, whether they sit beside their source (`<name>.<lang>.md`) or under `<lang>/`.
55
59
 
56
60
  ## 3a. Writing direction
57
61
  RTL languages (`ar fa he ur yi ps sd ug dv ckb`, by the first subtag of `lang`) get `<html dir="rtl">`; front matter `direction: rtl|ltr` or i18n `direction:` overrides. Theme CSS uses logical properties for inline-start/end; code blocks, inline code and `kbd` stay LTR/isolated. Write the Markdown in logical order; never use bidi control characters to fake layout.
@@ -64,7 +68,7 @@ The bans are about **portability**: the same source must look the same on github
64
68
  | raw HTML (`<div>`, `<details>`, `<kbd>` …) | not portable: GitHub renders some tags (`details`, `kbd`) and strips or escapes others (`script`, `iframe`), kramdown passes everything through; keeps twins readable | checker |
65
69
  | HTML comments `<!-- -->` | hidden on GitHub but emitted by kramdown; a `##` inside one shifts section counts. Exceptions: a tool region marker alone on its line, `<!-- tool:name:begin -->` / `<!-- tool:name:end -->` (lowercase, ends in `:begin` or `:end`); a one-line specfold value marker, own-line or inline, `<!-- spec:name -->` / `<!-- /spec:name -->` (lowercase letters, digits, `.`, `_`, `-`, `:`-separated), for example `<!-- spec:count -->12<!-- /spec:count -->`; arguments may follow the name after a space, `<!-- spec:count rows="All commands" -->12<!-- /spec:count -->`, on the same line and without `>`, `--` or `##` | checker |
66
70
  | Liquid `{% %}` `{{ }}` | breaks on GitHub and in twins | checker |
67
- | kramdown IAL/ALD `{: .x}`, `{:toc}` | kramdown-only | checker |
71
+ | kramdown IAL/ALD `{: .x}`, `{:toc}` | kramdown-only; for tables none is needed (a table that does not fit stacks by itself below 40rem), and the `mt-table--*` classes are hooks for a site's own HTML | checker |
68
72
  | header ids `{#id}` | kramdown-only (literal text on GitHub) | checker |
69
73
  | definition lists `: text` | kramdown-only | checker |
70
74
  | abbreviations `*[HTML]: …` | kramdown-only (literal text on GitHub) | checker |
@@ -80,7 +84,7 @@ The bans are about **portability**: the same source must look the same on github
80
84
  Allowed and portable: footnotes `[^1]` (markup differs slightly), task lists, strikethrough, GFM tables, `<url>` autolinks, hard breaks. Note: `> [! NOTE]` (space inside) is not an alert; the checker warns, `--strict` makes it an error.
81
85
 
82
86
  ## 5. Checker (`modootoday-check SRC SITE [--twins] [--github-pages[=VER]] [--strict] [--gh]`)
83
- 1. front matter present 2. forbidden syntax, alert form, fence info strings 3. `status:` vocabulary 4. `sections:` count = top-level `## ` count, nested/setext/indented `##` 5. `_data/components.yml` if present 6. no `[!TYPE]` (any case, outside `<pre>`/`<code>`) / `<code>status:` in built HTML 7. `--github-pages`: `Gemfile.lock` pins github-pages VER (default 232, or `$MODOOTODAY_GITHUB_PAGES`) 8. `--twins`: rules below 8a. Sass sources (`_sass/`, `assets/**/*.scss`) and built CSS: no `@use`/`@forward`/`@supports selector()`, no `--x: $var` literals, every `var(--mt-*)` defined 8b. `_config.yml` `modootoday:`: `twins` is `true`, `false` or `source`, known `color_scheme`/`components`, boolean `css_layers`/`badges`, `tokens`/`tokens_dark` values are plain CSS values (no `; { } < >`, valid hex), unknown token names warn 9. `--gh` (optional, network + `gh` auth): render with `gh api markdown`.
87
+ 1. front matter present 2. forbidden syntax, alert form, fence info strings 3. `status:` vocabulary 4. `sections:` count = top-level `## ` count, nested/setext/indented `##` 5. `_data/components.yml` if present 6. no `[!TYPE]` (any case, outside `<pre>`/`<code>`) / `<code>status:` in built HTML 7. `--github-pages`: `Gemfile.lock` pins github-pages VER (default 232, or `$MODOOTODAY_GITHUB_PAGES`) 8. `--twins`: rules below 8a. Sass sources (`_sass/`, `assets/**/*.scss`) and built CSS: no `@use`/`@forward`/`@supports selector()`, no `--x: $var` literals, every `var(--mt-*)` defined; the token hook `_sass/modootoday/_site.scss` holds only `$mt-overrides-base`, `$mt-overrides` and `$mt-overrides-dark` maps of theme token names 8b. `_config.yml` `modootoday:`: `twins` is `true`, `false` or `source`, known `color_scheme`/`components`, boolean `css_layers`/`badges`, `tokens`/`tokens_dark` values are plain CSS values (no `; { } < >`, valid hex), unknown token names warn; `site_css` (site paths to `.css` files) and `preload` (`{href, as, type}`, `as` one of font, image, style, script, fetch) in settings and front matter, each file present in the build; `scripts` (name: `{src, css, preload, element}`, site paths only, `element` a custom element name), each file present in the build 9. `--gh` (optional, network + `gh` auth): render with `gh api markdown`.
84
88
 
85
89
  ## 5a. Markdown twins
86
90
  Three ways to publish a page's raw Markdown next to its HTML. Pick one per site (stubs may be mixed with the others for single pages).
@@ -91,6 +95,16 @@ Three ways to publish a page's raw Markdown next to its HTML. Pick one per site
91
95
  | Generator | `plugins: [jekyll-theme-modootoday]` | `/<name>/index.md` | Jekyll 4 or a GitHub Actions build | not run by classic GitHub Pages |
92
96
  | Source (front-matter-less) | `modootoday.twins: source`; pages have **no** front matter | the source path: `/<name>.md`, `/<dir>/index.md` | classic GitHub Pages without stubs; simple doc trees | see below |
93
97
 
98
+ Optional URL aliases, declared with `modootoday.aliases: {md: true, html: true}` (either may be left out). They exist for every page with a directory URL other than `/` (`README.md` excepted; a page with `twin: false` has no flat alias) and are stub files that `modootoday-stubs SRC --aliases --write` writes; the generator does not add them.
99
+
100
+ | Alias | Stub | URL | Content |
101
+ |---|---|---|---|
102
+ | Flat alias | `<name>.flat.md.txt`: `layout: twin`, `twin_of: <name>.md`, `permalink: /<name>.md` | `/<name>.md` (`/<dir>.md` for `<dir>/index.md`) | the twin, byte-identical |
103
+ | HTML alias | `<name>.html.md.txt`: `layout: redirect`, `redirect_to: /<name>/`, `permalink: /<name>.html`, `sitemap: false` | `/<name>.html` | a meta refresh redirect to the page, with the page as canonical and `noindex` |
104
+
105
+ - Two pages with the same alias, or an alias at the path of another source file, are errors (`modootoday-stubs` exits 3; `modootoday-check --aliases` reports it). The flat alias is not available with `twins: source`, where a page without front matter is already copied to `/<name>.md`.
106
+ - The HTML alias is a redirect, not a copy of the page, so search engines index one URL.
107
+
94
108
  Source mode relies on `jekyll-optional-front-matter`, a GitHub Pages default plugin: a `.md` file without front matter is rendered to HTML **and** copied verbatim to its own path, so the twin is the whole source file (byte-identical, no front matter to strip). Limits:
95
109
  - No per-page front matter: layout, `lang`, `permalink` and other settings come from path-based `defaults:` in `_config.yml`; the title comes from the first `# ` heading (`jekyll-titles-from-headings`). Per-page `sections:` is not available (use a `defaults:` scope for a single file if needed).
96
110
  - Links to `other.md` in bodies are not rewritten to the HTML page in this mode; they reach the raw twin. Link to `other/` instead.
@@ -104,13 +118,16 @@ Stub and generator details:
104
118
  - Source `<name>.md`. The twin comes from either
105
119
  - the opt-in generator `plugins: [jekyll-theme-modootoday]` (Jekyll 4 or an Actions build; not run by the classic GitHub Pages build, which allows only whitelisted plugins), or
106
120
  - a stub `<name>.md.txt` next to it with only `layout: twin`, `twin_of`, `permalink` and no body (works everywhere). `twin_of` is relative to the stub: `twin_of: install.md` in `guides/install.md.txt`; a path from the site root such as `guides/install.md` fails with "Could not locate the included file". Liquid cannot create output files, so on classic GitHub Pages a stub per page is unavoidable.
107
- Both produce the same page; a stub wins over the generator. `twin: false` opts a page out.
108
- - Output: `index.md` → `/index.md`, others → `/<dir>/<name>/index.md`; other languages under `/<lang>/`.
121
+ The stub may instead sit at the same relative path under `generated/` when it also sets `path:` to its place beside the page (`path: guides/install.md.txt` in `generated/guides/install.md.txt`); `twin_of` then resolves from that path. This theme's docs site keeps its stubs there, and `--twins` looks in both places.
122
+ Both produce the same page; a stub wins over the generator. `twin: false` opts a page out, and error pages (`layout: error`) have none.
123
+ - Output: `index.md` → `/index.md`, others → `/<dir>/<name>/index.md`; other languages under `/<lang>/`. A translation beside its source sets that URL as its `permalink` (`permalink: /ko/guides/install/` in `guides/install.ko.md`), and its twin follows it (`/ko/guides/install/index.md`).
109
124
  - Twin body is **byte-identical** to the source minus front matter (no added headers; put extra information in `llms.txt`).
110
- - `llms.txt` and `llms-full.txt` exist at `/` and under each `/<lang>/`. `llms.txt` follows llmstxt.org: `# Title`, a `>` summary, then `## Section` lists of `- [Name](url): note`. `llms-full.txt` is a common convention, not part of llmstxt.org. Layouts `llms` and `llms-full` generate both from a front-matter-only stub (or the generator adds them); `llms-full.txt` is every page body of that language, byte-identical, separated by a blank line.
125
+ - `llms.txt` and `llms-full.txt` exist at `/` and at `/<lang>/` for each language with pages. `llms.txt` follows llmstxt.org: `# Title`, a `>` summary, then `## Section` lists of `- [Name](url): note`. `llms-full.txt` is a common convention, not part of llmstxt.org. Layouts `llms` and `llms-full` generate both from a front-matter-only stub (or the generator adds them); `llms-full.txt` is every page body of that language, byte-identical, separated by a blank line.
111
126
  - The `default` layout adds `<link rel="alternate" type="text/markdown" href=".../index.md">` when the twin exists and `<link rel="describedby" type="text/plain">` to the nearest `/<lang>/llms.txt` or `/llms.txt`.
112
127
  - With `--twins` and `modootoday.twins: source`: a front-matter-less page needs a rendered page (`<name>.html` or `<name>/index.html`) and a byte-identical raw copy at its source path.
113
- - With `--twins`: a missing or non-identical twin is an error (`README.md` and `twin: false` excepted), a stub must use `layout: twin` with an empty body, `llms.txt` must start with `# `, and `llms-full.txt` must contain every page body of its language.
128
+ - With `--twins`: a missing or non-identical twin is an error (`README.md`, `twin: false` and `layout: error` excepted), a stub must use `layout: twin` with an empty body, `llms.txt` must start with `# `, and `llms-full.txt` must contain every page body of its language.
129
+ - With `--aliases`: every declared alias exists, a flat alias is byte-identical to the twin, and an HTML alias's refresh target and canonical are the page URL.
130
+ - `modootoday-stubs SRC --twins --write` writes the missing stubs and deletes stubs whose page is gone; without `--write` it only lists them, and `--check` exits 1 when anything would change.
114
131
  - Twins and the checker assume directory URLs (`permalink: pretty` or `/<name>/`); with `.html` permalinks the generator writes `/<name>.md` but the checker still expects `/<name>/index.md`.
115
132
  - Twin bodies go through Liquid (`include_relative`); bodies must not contain Liquid (already forbidden in §4).
116
133
 
@@ -1,5 +1,4 @@
1
- {%- comment -%}Override this file in your site to add a footer before </body> (e.g. <footer class="mt-footer"><div class="mt-footer-inner">…</div></footer>).
2
- With modootoday.language_switcher: footer and no override, the theme renders a small footer with the language switcher.{%- endcomment -%}
3
- {%- if site.modootoday.language_switcher == "footer" and site.modootoday.languages %}
4
- <footer class="mt-footer"><div class="mt-footer-inner">{% include modootoday/lang-switch.html %}</div></footer>
5
- {%- endif %}
1
+ {%- comment -%}Override this file in your site to replace the footer before </body> (e.g. <footer class="mt-footer"><div class="mt-footer-inner">…</div></footer>).
2
+ Without an override the theme renders modootoday/chrome/footer.html: columns and a copyright line from _data/nav/footer.yml,
3
+ and the language switcher with modootoday.language_switcher: footer.{%- endcomment -%}
4
+ {%- include modootoday/chrome/footer.html -%}
@@ -0,0 +1,14 @@
1
+ {%- comment -%}Sass @import lines for the parts of the css rows of assets/registry.html (needs config.html): only row include.row, or
2
+ every row in registry order when it is empty (css: bundle). A part is components/<row>/_<part>.scss, a path under components/
3
+ when it has a slash, or one under modootoday/ when it starts with one; components a site turned off are skipped.{%- endcomment -%}
4
+ {%- for _mti_s in mt_context_sheets -%}{%- assign _mti_kv = _mti_s | split: ":" -%}
5
+ {%- if include.row == nil or include.row == _mti_kv[0] -%}{%- assign _mti_ps = _mti_kv[1] | split: "|" -%}
6
+ {%- for _mti_p in _mti_ps -%}{%- assign _mti_n = _mti_p | split: "/" | last -%}{%- assign _mti_1 = _mti_p | slice: 0, 1 -%}
7
+ {%- if _mti_1 == "/" %}
8
+ @import "modootoday{{ _mti_p }}";
9
+ {%- elsif mt_components contains _mti_n -%}{%- if _mti_p contains "/" %}
10
+ @import "modootoday/components/{{ _mti_p }}";
11
+ {%- else %}
12
+ @import "modootoday/components/{{ _mti_kv[0] }}/{{ _mti_p }}";
13
+ {%- endif -%}{%- endif -%}
14
+ {%- endfor -%}{%- endif -%}{%- endfor %}
@@ -0,0 +1,11 @@
1
+ {%- comment -%}<link rel="preload"> for modootoday.preload, then front matter preload: (lists of {href, as, type}; href a site path,
2
+ as one of font, image, style, script, fetch). No ?v= query: the URL must match the one the stylesheet or page requests,
3
+ or the browser fetches the file twice. Fonts and fetches are requested in CORS mode, so they add crossorigin.{%- endcomment -%}
4
+ {%- assign _mtpe = "" | split: "," -%}{%- assign _mtpas = "font image style script fetch" | split: " " -%}
5
+ {%- assign _mtpl = site.modootoday.preload | default: _mtpe -%}{%- unless _mtpl.first.href -%}{%- assign _mtpl = _mtpe -%}{%- endunless -%}
6
+ {%- assign _mtpp = page.preload | default: _mtpe -%}{%- unless _mtpp.first.href -%}{%- assign _mtpp = _mtpe -%}{%- endunless -%}
7
+ {%- assign _mtpl = _mtpl | concat: _mtpp -%}
8
+ {%- for _mtp in _mtpl -%}{%- assign _mtph = _mtp.href | append: "" -%}{%- assign _mtp1 = _mtph | slice: 0, 1 -%}{%- assign _mtp2 = _mtph | slice: 0, 2 -%}
9
+ {%- if _mtp1 == "/" and _mtp2 != "//" and _mtpas contains _mtp.as %}
10
+ <link rel="preload" href="{{ _mtph | relative_url | escape }}" as="{{ _mtp.as }}"{% if _mtp.type %} type="{{ _mtp.type | escape }}"{% endif %}{% if _mtp.as == "font" or _mtp.as == "fetch" %} crossorigin{% endif %}>
11
+ {%- endif -%}{%- endfor -%}
@@ -0,0 +1,95 @@
1
+ {%- comment -%}The theme's CSS and JS files, one row each: name|kind|path|triggers|parts|cap|deps. kind: component (a sheet linked right
2
+ after core) or css (a context sheet, linked after the blog sheet and layout bundles; both assets/sheets.html), section (triggers is the
3
+ sections: name), js (a classic deferred script) or module (an ES module; assets/scripts.html). triggers: texts of the rendered body,
4
+ separated by ^. parts: the Sass partials (assets/imports.html), in old cascade order. cap: gzip bytes (test/system/audit/budgets/modules.mjs).
5
+ deps: a module's static imports, each preloaded with a modulepreload link.
6
+ _mta_fixed holds the files the layouts link themselves; Liquid never reads it. Sets mt_asset_rows, mt_context_sheets ("doc:sidebar|toc|
7
+ page-actions,...", read by assets/imports.html) and mt_section_sheets.{%- endcomment -%}
8
+ {%- capture _mta_rows -%}
9
+ code|component|/assets/css/modootoday/content/code.css|<pre^<code^<kbd|/base/code core/inline/code-copy core/inline/code|1408
10
+ doc-nav|component|/assets/css/modootoday/chrome/doc-nav.css|class="mt-breadcrumb^class="mt-pagination|/layout/page-meta core/chrome/breadcrumb core/chrome/pagination|896
11
+ inline|component|/assets/css/modootoday/content/inline.css|mt-callout^mt-badge^mt-kbd|core/inline/callout core/inline/badge core/inline/kbd|768
12
+ hero|component|/assets/css/modootoday/marketing/hero.css|class="mt-hero^class="mt-section^mt-actions^mt-has-decor|core/inline/hero core/inline/cta|768
13
+ extras|component|/assets/css/modootoday/content/extras.css|mt-reveal^role="doc-noteref"^class="footnotes"^reversefootnote^mt-progress|core/inline/reveal core/inline/footnotes core/inline/progress|640
14
+ figure|component|/assets/css/modootoday/media/figure.css|class="mt-figure^mt-illustration^class="mt-embed|core/inline/figure core/inline/embed figure-svg media/diagram|896
15
+ banner|component|/assets/css/modootoday/chrome/banner.css||core/chrome/banner|384
16
+ footer|component|/assets/css/modootoday/chrome/footer.css||footer|384
17
+ showcase|component|/assets/css/modootoday/chrome/showcase.css||chrome/showcase|1024
18
+ doc|css|/assets/css/modootoday/docs/doc.css||sidebar toc page-actions|1280
19
+ search|css|/assets/css/modootoday/chrome/search.css||search|1024
20
+ loading|css|/assets/css/modootoday/content/loading.css|class="mt-spinner^class="mt-skeleton^class="mt-topbar|loading|1024
21
+ lists|css|/assets/css/modootoday/content/lists.css|class="mt-hero mt-hero-checks^class="mt-chips"^class="mt-item-title"|lists|640
22
+ bleed|css|/assets/css/modootoday/structure/bleed.css||bleed|512
23
+ terminal|css|/assets/css/modootoday/chrome/terminal.css||terminal|384
24
+ visual|css|/assets/css/modootoday/media/visual.css|class="mt-visual-poster^data-mt-script="|visual|256
25
+ filter|css|/assets/css/modootoday/data/filter.css|<div class="mt-filter"|filter|512
26
+ table|css|/assets/css/modootoday/data/table.css|<table|/base/table table|1280
27
+ table-stack|css|/assets/css/modootoday/data/table-stack.css|<table|table-stack|640
28
+ chart|css|/assets/css/modootoday/data/chart.css|class="mt-chart|data/chart|768
29
+ widget|css|/assets/css/modootoday/media/widget.css|class="mt-widget|media/widget|256
30
+ cta|section|/assets/css/modootoday/showcase/cta.css|cta||256
31
+ card|section|/assets/css/modootoday/showcase/card.css|features||640
32
+ linkcards|section|/assets/css/modootoday/showcase/linkcards.css|linkcards||640
33
+ quote|section|/assets/css/modootoday/showcase/quote.css|quote||384
34
+ gallery|section|/assets/css/modootoday/showcase/gallery.css|gallery||640
35
+ pricing|section|/assets/css/modootoday/showcase/pricing.css|pricing||768
36
+ subscribe|section|/assets/css/modootoday/showcase/subscribe.css|subscribe||512
37
+ tabs|section|/assets/css/modootoday/structure/tabs.css|tabs||640
38
+ accordion|section|/assets/css/modootoday/structure/accordion.css|accordion||640
39
+ steps|section|/assets/css/modootoday/structure/steps.css|steps||512
40
+ timeline|section|/assets/css/modootoday/structure/timeline.css|timeline||512
41
+ filetree|section|/assets/css/modootoday/structure/filetree.css|filetree||512
42
+ details|section|/assets/css/modootoday/structure/details.css|details||512
43
+ faq|section|/assets/css/modootoday/structure/faq.css|faq||640
44
+ params|section|/assets/css/modootoday/structure/params.css|params||384
45
+ split|section|/assets/css/modootoday/structure/split.css|split||512
46
+ tabs|module|/assets/js/modootoday/structure/tabs.js|||1024
47
+ menu|module|/assets/js/modootoday/chrome/menu.js|||768
48
+ scroll-region|module|/assets/js/modootoday/content/scroll-region.js|<pre^<table^mt-figure-scroll||1664
49
+ table-stack|module|/assets/js/modootoday/data/table-stack.js|<table||1280
50
+ code-copy|module|/assets/js/modootoday/content/code-copy.js|<pre||1280
51
+ theme-toggle|module|/assets/js/modootoday/chrome/theme-toggle.js|||768
52
+ showcase|module|/assets/js/modootoday/chrome/showcase.js|||384
53
+ accordion|module|/assets/js/modootoday/structure/accordion.js|||640
54
+ share|module|/assets/js/modootoday/blog/share.js|||640
55
+ search-keys|module|/assets/js/modootoday/chrome/search-keys.js|||1024
56
+ filter|module|/assets/js/modootoday/data/filter.js|<div class="mt-filter"||1152|/assets/js/modootoday/text/normalize.js /assets/js/modootoday/dom/config.js /assets/js/modootoday/data/filter-chips.js
57
+ chart|module|/assets/js/modootoday/data/chart.js|class="mt-chart||2176|/assets/js/modootoday/data/chart-table.js /assets/js/modootoday/theme/current.js
58
+ {%- endcapture -%}
59
+ {%- capture _mta_fixed -%}
60
+ core|sheet|/assets/css/modootoday.css|||4608
61
+ blog|sheet|/assets/css/modootoday-blog.css|||2304
62
+ detail|sheet|/assets/css/modootoday-detail.css|||1024
63
+ directory|sheet|/assets/css/modootoday-directory.css|||1920
64
+ docs-extra|sheet|/assets/css/modootoday-docs-extra.css|||1792
65
+ hero|sheet|/assets/css/modootoday-hero.css|||1280
66
+ marketing|sheet|/assets/css/modootoday-marketing.css|||1664
67
+ pages|sheet|/assets/css/modootoday-pages.css|||1408
68
+ resume|sheet|/assets/css/modootoday-resume.css|||768
69
+ theme-init|script|/assets/js/modootoday/chrome/theme-init.js|||256
70
+ mermaid|script|/assets/js/modootoday-mermaid.js|||1152
71
+ math|script|/assets/js/modootoday-math.js|||768
72
+ config|import|/assets/js/modootoday/dom/config.js|||640
73
+ normalize|import|/assets/js/modootoday/text/normalize.js|||512
74
+ search|import|/assets/js/modootoday/chrome/search.js|||1792|/assets/js/modootoday/text/normalize.js
75
+ current|import|/assets/js/modootoday/theme/current.js|||640
76
+ chips|import|/assets/js/modootoday/data/filter-chips.js|||640
77
+ chart-table|import|/assets/js/modootoday/data/chart-table.js|||512
78
+ {%- endcapture -%}
79
+ {%- assign mt_asset_rows = _mta_rows | newline_to_br | strip_newlines | split: "<br />" -%}
80
+ {%- assign _mta_cs = "" -%}{%- assign _mta_ss = "" -%}
81
+ {%- for _mta_r in mt_asset_rows -%}{%- assign _mta_c = _mta_r | split: "|" -%}
82
+ {%- if _mta_c[1] == "component" or _mta_c[1] == "css" -%}{%- if _mta_c[4] and _mta_c[4] != "" -%}{%- assign _mta_parts = _mta_c[4] | replace: " ", "|" -%}{%- assign _mta_cs = _mta_cs | append: "," | append: _mta_c[0] | append: ":" | append: _mta_parts -%}{%- endif -%}
83
+ {%- elsif _mta_c[1] == "section" -%}{%- assign _mta_sp = _mta_c[2] | remove_first: "/assets/css/modootoday/" | remove: ".css" -%}{%- assign _mta_ss = _mta_ss | append: "," | append: _mta_c[3] | append: ":" | append: _mta_sp -%}{%- endif -%}
84
+ {%- endfor -%}
85
+ {%- assign mt_context_sheets = _mta_cs | remove_first: "," | split: "," -%}
86
+ {%- assign mt_section_sheets = _mta_ss | remove_first: "," | split: "," -%}
87
+ {%- comment -%}mt_asset_v: the ?v= query of every theme CSS and JS URL (assets/url.html), from modootoday.asset_version:
88
+ theme (default) the theme version, build adds the commit (or the build time), false none.{%- endcomment -%}
89
+ {%- include modootoday/version.html -%}
90
+ {%- assign _mta_av = site.modootoday.asset_version -%}{%- assign mt_asset_v = mt_version -%}
91
+ {%- if _mta_av == false -%}{%- assign mt_asset_v = "" -%}
92
+ {%- elsif _mta_av == "build" -%}{%- assign _mta_rev = site.github.build_revision | slice: 0, 7 -%}
93
+ {%- if _mta_rev == "" -%}{%- assign _mta_rev = site.time | date: "%s" -%}{%- endif -%}
94
+ {%- assign mt_asset_v = mt_version | append: "-" | append: _mta_rev -%}
95
+ {%- endif -%}
@@ -0,0 +1,39 @@
1
+ {%- comment -%}Theme scripts: the js and module rows of assets/registry.html whose name the conditions below put in _mta_on (_mta_hit: rows
2
+ whose probe is in the rendered body), then the renderers. Needs config.html, stylesheets.html (mt_page_c, mt_blog_css,
3
+ mt_search_index), doc/twin.html and _chrome.{%- endcomment -%}
4
+ {%- assign _mta_hit = "|" -%}
5
+ {%- for _mta_r in mt_asset_rows -%}{%- assign _mta_c = _mta_r | split: "|" -%}
6
+ {%- if _mta_c[1] == "js" or _mta_c[1] == "module" -%}{%- if _mta_c[3] and _mta_c[3] != "" -%}{%- assign _mta_ps = _mta_c[3] | split: "^" -%}
7
+ {%- for _mta_p in _mta_ps -%}{%- if content contains _mta_p -%}{%- assign _mta_hit = _mta_hit | append: _mta_c[0] | append: "|" -%}{%- break -%}{%- endif -%}{%- endfor -%}{%- endif -%}{%- endif -%}
8
+ {%- endfor -%}
9
+ {%- assign _mta_on = "|" -%}
10
+ {%- if _mta_hit contains "|scroll-region|" -%}{%- assign _mta_on = "|scroll-region|" -%}{%- endif -%}
11
+ {%- if _mta_hit contains "|table-stack|" -%}{%- assign _mta_on = _mta_on | append: "table-stack|" -%}{%- endif -%}
12
+ {%- if mt_components contains "tabs" and mt_page_c contains "|tabs|" -%}{%- assign _mta_on = _mta_on | append: "tabs|" -%}{%- endif -%}
13
+ {%- if site.title and _chrome -%}{%- assign _mta_on = _mta_on | append: "menu|" -%}{%- endif -%}
14
+ {%- if mt_components contains "code-copy" and _mta_hit contains "|code-copy|" -%}{%- assign _mta_on = _mta_on | append: "code-copy|" -%}
15
+ {%- elsif mt_components contains "page-actions" and mt_twin -%}{%- assign _mta_on = _mta_on | append: "code-copy|" -%}{%- endif -%}
16
+ {%- if mt_components contains "theme-toggle" and mt_theme_toggle -%}{%- assign _mta_on = _mta_on | append: "theme-toggle|" -%}{%- endif -%}
17
+ {%- if mt_showcase -%}{%- assign _mta_on = _mta_on | append: "showcase|" -%}{%- endif -%}
18
+ {%- if mt_components contains "accordion" and mt_page_c contains "|accordion|" -%}{%- assign _mta_on = _mta_on | append: "accordion|" -%}{%- endif -%}
19
+ {%- if mt_blog_css and site.modootoday.blog.share != false -%}{%- assign _mta_on = _mta_on | append: "share|" -%}{%- endif -%}
20
+ {%- if mt_components contains "search" and mt_search_index -%}{%- assign _mta_on = _mta_on | append: "search-keys|" -%}{%- endif -%}
21
+ {%- if mt_components contains "filter" and _mta_hit contains "|filter|" -%}{%- assign _mta_on = _mta_on | append: "filter|" -%}{%- endif -%}
22
+ {%- comment -%}The chart library tag comes before the module tags: deferred scripts run in document order.{%- endcomment -%}
23
+ {%- if _mta_hit contains "|chart|" -%}{%- include modootoday/render/chart.html -%}{%- if mt_chart_on -%}{%- assign _mta_on = _mta_on | append: "chart|" -%}{%- endif -%}{%- endif -%}
24
+ {%- assign _mta_done = "|" -%}{%- assign _mta_pre = "|" -%}
25
+ {%- for _mta_r in mt_asset_rows -%}{%- assign _mta_c = _mta_r | split: "|" -%}{%- assign _mta_k = "|" | append: _mta_c[0] | append: "|" -%}
26
+ {%- if _mta_c[1] == "js" or _mta_c[1] == "module" -%}{%- if _mta_on contains _mta_k -%}{%- unless _mta_done contains _mta_k -%}{%- assign _mta_done = _mta_done | append: _mta_c[0] | append: "|" -%}
27
+ {%- assign _mta_p = _mta_c[2] -%}{%- include modootoday/assets/url.html path=_mta_p -%}{%- assign _mta_src = mt_asset_url -%}
28
+ {%- if _mta_c[1] == "module" -%}{%- assign _mta_deps = _mta_c[6] | split: " " -%}
29
+ {%- for _mta_d in _mta_deps -%}{%- assign _mta_dk = "|" | append: _mta_d | append: "|" -%}{%- unless _mta_pre contains _mta_dk -%}{%- assign _mta_pre = _mta_pre | append: _mta_d | append: "|" -%}
30
+ {%- include modootoday/assets/url.html path=_mta_d version=false %}
31
+ <link rel="modulepreload" href="{{ mt_asset_url }}">
32
+ {%- endunless -%}{%- endfor %}
33
+ <script type="module" src="{{ _mta_src }}"></script>
34
+ {%- else %}
35
+ <script src="{{ _mta_src }}" defer></script>
36
+ {%- endif -%}
37
+ {%- endunless -%}{%- endif -%}{%- endif -%}{%- endfor -%}
38
+ {%- include modootoday/render/mermaid.html -%}
39
+ {%- include modootoday/render/math.html -%}
@@ -0,0 +1,28 @@
1
+ {%- comment -%}Links the rows of kind include.kind of assets/registry.html (needs config.html and mt_page_c): component sheets right after core,
2
+ context sheets after the blog sheet and layout bundles. A row whose trigger is in the rendered body adds its name to mt_page_c; a sheet
3
+ is linked when mt_page_c or the layout chain's mt_sheets names it. Parts the base layout draws after the head are named here.{%- endcomment -%}
4
+ {%- if include.kind == "component" -%}
5
+ {%- if site.modootoday.loading -%}{%- assign mt_page_c = mt_page_c | append: "loading|" -%}{%- endif -%}
6
+ {%- if page.diagrams -%}{%- assign mt_page_c = mt_page_c | append: "figure|" -%}
7
+ {%- elsif site.modootoday.math.mode == "static" and site.modootoday.math.enabled != false and page.math != false -%}{%- if content contains "language-math" or content contains "\[" -%}{%- assign mt_page_c = mt_page_c | append: "figure|" -%}{%- endif -%}{%- endif -%}
8
+ {%- if mt_components contains "banner" -%}{%- if site.modootoday.banner.text or site.modootoday.back_to_top -%}{%- assign mt_page_c = mt_page_c | append: "banner|" -%}{%- endif -%}{%- endif -%}
9
+ {%- if mt_showcase -%}{%- assign mt_page_c = mt_page_c | append: "showcase|" -%}{%- endif -%}
10
+ {%- assign _mta_fk = "footer-" | append: _lang -%}{%- assign _mta_fd = site.data.nav[_mta_fk] | default: site.data.nav.footer -%}
11
+ {%- if _mta_fd.columns and mt_components contains "footer" -%}{%- assign mt_page_c = mt_page_c | append: "footer|" -%}{%- endif -%}
12
+ {%- unless layout.mt_chrome == false or page.chrome == false -%}
13
+ {%- if page.last_modified_at -%}{%- assign mt_page_c = mt_page_c | append: "doc-nav|" -%}
14
+ {%- elsif site.modootoday.edit_url and page.edit != false and page.path -%}{%- assign mt_page_c = mt_page_c | append: "doc-nav|" -%}
15
+ {%- elsif mt_nav and mt_components contains "pagination" and page.pagination != false -%}{%- assign _mta_nj = mt_nav | jsonify -%}
16
+ {%- assign _mta_nu = '"url":"' | append: page.url | append: '"' -%}{%- if _mta_nj contains _mta_nu -%}{%- assign mt_page_c = mt_page_c | append: "doc-nav|" -%}{%- endif -%}
17
+ {%- endif -%}
18
+ {%- endunless -%}
19
+ {%- endif -%}
20
+ {%- for _mta_r in mt_asset_rows -%}{%- assign _mta_c = _mta_r | split: "|" -%}
21
+ {%- if _mta_c[1] == include.kind and _mta_c[3] and _mta_c[3] != "" -%}{%- assign _mta_ps = _mta_c[3] | split: "^" -%}{%- for _mta_p in _mta_ps -%}{%- if content contains _mta_p -%}
22
+ {%- assign _mta_k = "|" | append: _mta_c[0] | append: "|" -%}{%- unless mt_page_c contains _mta_k -%}{%- assign mt_page_c = mt_page_c | append: _mta_c[0] | append: "|" -%}{%- endunless -%}{%- break -%}
23
+ {%- endif -%}{%- endfor -%}{%- endif -%}{%- endfor -%}
24
+ {%- assign _mta_ls = layout.mt_sheets | default: "" -%}
25
+ {%- for _mta_r in mt_asset_rows -%}{%- assign _mta_c = _mta_r | split: "|" -%}{%- assign _mta_k = "|" | append: _mta_c[0] | append: "|" -%}
26
+ {%- if _mta_c[1] == include.kind -%}{%- if _mta_ls contains _mta_c[0] or mt_page_c contains _mta_k -%}{%- assign _mta_p = _mta_c[2] -%}{%- include modootoday/assets/url.html path=_mta_p %}
27
+ <link rel="stylesheet" href="{{ mt_asset_url }}">
28
+ {%- endif -%}{%- endif -%}{%- endfor -%}
@@ -0,0 +1,25 @@
1
+ {%- comment -%}The site's module scripts named on this page by script: on hero: or a section item, or whose element: is in the
2
+ rendered body (a widget), from modootoday.scripts (name: {src, css, preload, element}; site paths only). Once per name: the css
3
+ sheet, modulepreload for each preload path (no ?v= query, so the URL matches the module's import), then <script type="module">,
4
+ which runs deferred under script-src 'self'.{%- endcomment -%}
5
+ {%- assign _mtsn = "|" -%}{%- if page.hero.script -%}{%- assign _mtsn = _mtsn | append: page.hero.script | append: "|" -%}{%- endif -%}
6
+ {%- for _mtsi in page.sections -%}{%- if _mtsi.script -%}{%- assign _mtsn = _mtsn | append: _mtsi.script | append: "|" -%}{%- endif -%}{%- endfor -%}
7
+ {%- for _mtsi in site.modootoday.scripts -%}{%- assign _mtsl = _mtsi[1].element | append: "" -%}{%- if _mtsl contains "-" -%}
8
+ {%- assign _mtst = "<" | append: _mtsl | append: " " -%}{%- assign _mtsu = "<" | append: _mtsl | append: ">" -%}
9
+ {%- if content contains _mtst or content contains _mtsu -%}{%- assign _mtsn = _mtsn | append: _mtsi[0] | append: "|" -%}{%- endif -%}
10
+ {%- endif -%}{%- endfor -%}
11
+ {%- if _mtsn != "|" -%}{%- assign _mtsn = _mtsn | split: "|" | uniq -%}
12
+ {%- for _mtsk in _mtsn -%}{%- assign _mtse = site.modootoday.scripts[_mtsk] -%}{%- assign _mtsp = _mtse.src | append: "" -%}
13
+ {%- assign _mtsp1 = _mtsp | slice: 0, 1 -%}{%- assign _mtsp2 = _mtsp | slice: 0, 2 -%}
14
+ {%- if _mtsk != "" and _mtsp1 == "/" and _mtsp2 != "//" -%}
15
+ {%- assign _mtsc = _mtse.css | append: "" -%}{%- assign _mtsc1 = _mtsc | slice: 0, 1 -%}{%- assign _mtsc2 = _mtsc | slice: 0, 2 -%}
16
+ {%- if _mtsc1 == "/" and _mtsc2 != "//" -%}{%- include modootoday/assets/url.html path=_mtsc %}
17
+ <link rel="stylesheet" href="{{ mt_asset_url | escape }}">
18
+ {%- endif -%}
19
+ {%- for _mtsm in _mtse.preload -%}{%- assign _mtsm1 = _mtsm | slice: 0, 1 -%}{%- assign _mtsm2 = _mtsm | slice: 0, 2 -%}
20
+ {%- if _mtsm1 == "/" and _mtsm2 != "//" %}
21
+ <link rel="modulepreload" href="{{ _mtsm | relative_url | escape }}">
22
+ {%- endif -%}{%- endfor -%}
23
+ {%- include modootoday/assets/url.html path=_mtsp %}
24
+ <script type="module" src="{{ mt_asset_url | escape }}"></script>
25
+ {%- endif -%}{%- endfor -%}{%- endif -%}
@@ -0,0 +1,10 @@
1
+ {%- comment -%}The site's own stylesheets after the theme's: modootoday.site_css, then front matter site_css (lists of site paths,
2
+ /assets/css/site.css). Each is linked once, with the theme's ?v= query (assets/url.html); anything that is not a site path is skipped.{%- endcomment -%}
3
+ {%- assign _mtse = "" | split: "," -%}
4
+ {%- assign _mtsc = site.modootoday.site_css | default: _mtse -%}{%- unless _mtsc.first -%}{%- assign _mtsc = _mtse -%}{%- endunless -%}
5
+ {%- assign _mtsp = page.site_css | default: _mtse -%}{%- unless _mtsp.first -%}{%- assign _mtsp = _mtse -%}{%- endunless -%}
6
+ {%- assign _mtsc = _mtsc | concat: _mtsp | uniq -%}
7
+ {%- for _mts in _mtsc -%}{%- assign _mts1 = _mts | slice: 0, 1 -%}{%- assign _mts2 = _mts | slice: 0, 2 -%}
8
+ {%- if _mts1 == "/" and _mts2 != "//" -%}{%- include modootoday/assets/url.html path=_mts %}
9
+ <link rel="stylesheet" href="{{ mt_asset_url | escape }}">
10
+ {%- endif -%}{%- endfor -%}
@@ -0,0 +1,5 @@
1
+ {%- comment -%}Sets mt_asset_url for include.path (a site path such as /assets/js/modootoday/structure/tabs.js). Every theme CSS and JS
2
+ tag takes its URL from here. The ?v= query (mt_asset_v, assets/registry.html) lets a CDN cache theme files for long;
3
+ GitHub Pages ignores it and serves the same file. version=false leaves it off (module imports and their preloads).{%- endcomment -%}
4
+ {%- assign mt_asset_url = include.path | relative_url -%}
5
+ {%- if mt_asset_v and mt_asset_v != "" and include.version != false -%}{%- assign mt_asset_url = mt_asset_url | append: "?v=" | append: mt_asset_v -%}{%- endif -%}
@@ -0,0 +1,26 @@
1
+ {%- comment -%}The post list under a home page body, as minima draws it, when blog/home-posts.html says so. Heading: list_title,
2
+ else blog.latest. Excerpts: show_excerpts (page, then site), else modootoday.blog.excerpt. Uses jekyll-paginate's
3
+ paginator on index.html.{%- endcomment -%}
4
+ {%- include modootoday/blog/home-posts.html -%}
5
+ {%- if mt_home_posts -%}
6
+ {%- assign _lang = page.lang | default: site.lang | default: "en" -%}
7
+ {%- include modootoday/i18n.html lang=_lang -%}
8
+ {%- include modootoday/blog/config.html -%}
9
+ {%- assign _hx = page.show_excerpts -%}{%- if _hx == nil -%}{%- assign _hx = site.show_excerpts -%}{%- endif -%}
10
+ {%- if _hx == true -%}{%- assign mt_blog_excerpt = true -%}{%- elsif _hx == false -%}{%- assign mt_blog_excerpt = false -%}{%- endif -%}
11
+ {%- if paginator.posts -%}{%- assign _hl = paginator.posts -%}{%- assign _hmore = false -%}
12
+ {%- else -%}
13
+ {%- include modootoday/blog/select.html lang=page.posts_lang -%}
14
+ {%- assign _hl = mt_posts -%}{%- assign _hmore = false -%}{%- if mt_posts.size > mt_blog_per_page -%}{%- assign _hmore = true -%}{%- endif -%}
15
+ {%- endif %}
16
+ <section class="mt-blog mt-home-posts" data-variant="{{ mt_blog_variant }}" aria-labelledby="mt-home-posts-title">
17
+ <h2 id="mt-home-posts-title">{{ page.list_title | default: mt_t_blog_latest }}</h2>
18
+ {%- if _hl.size == 0 %}
19
+ <p class="mt-archive-empty">{{ mt_t_archive_empty }}</p>
20
+ {%- else -%}
21
+ {% include modootoday/blog/list.html posts=_hl limit=mt_blog_per_page heading="h3" %}
22
+ {%- endif -%}
23
+ {%- assign _hau = page.archive_url | default: site.modootoday.archive.tags -%}
24
+ {% include modootoday/blog/pager.html more=_hmore url=_hau %}
25
+ </section>
26
+ {%- endif -%}
@@ -0,0 +1,6 @@
1
+ {%- comment -%}Sets mt_home_posts: whether a home page lists the latest posts. Front matter posts: true or false decides; unset, the
2
+ list shows when the page has no hero and no sections: and the site has posts. Read by blog/home-list.html and stylesheets.html.{%- endcomment -%}
3
+ {%- assign mt_home_posts = false -%}
4
+ {%- if page.posts == true -%}{%- assign mt_home_posts = true -%}
5
+ {%- elsif page.posts == nil and page.hero == nil and page.sections == nil and site.posts.size > 0 -%}{%- assign mt_home_posts = true -%}
6
+ {%- endif -%}