jekyll-theme-modootoday 1.4.1 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (352) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +134 -1
  3. data/README.ko.md +38 -11
  4. data/README.md +38 -11
  5. data/RULES.md +27 -12
  6. data/_includes/footer-custom.html +4 -5
  7. data/_includes/modootoday/assets/imports.html +14 -0
  8. data/_includes/modootoday/assets/preload.html +11 -0
  9. data/_includes/modootoday/assets/registry.html +89 -0
  10. data/_includes/modootoday/assets/scripts.html +36 -0
  11. data/_includes/modootoday/assets/sheets.html +25 -0
  12. data/_includes/modootoday/assets/site-scripts.html +20 -0
  13. data/_includes/modootoday/assets/site-sheets.html +10 -0
  14. data/_includes/modootoday/assets/url.html +5 -0
  15. data/_includes/modootoday/blog/home-list.html +26 -0
  16. data/_includes/modootoday/blog/home-posts.html +6 -0
  17. data/_includes/modootoday/breadcrumb.html +9 -10
  18. data/_includes/modootoday/chrome/footer.html +16 -0
  19. data/_includes/modootoday/chrome/nav-sheet.html +13 -0
  20. data/_includes/modootoday/config.html +17 -15
  21. data/_includes/modootoday/detail/page.html +28 -0
  22. data/_includes/modootoday/directory/item.html +4 -2
  23. data/_includes/modootoday/directory/items.html +7 -2
  24. data/_includes/modootoday/directory/jsonld.html +2 -2
  25. data/_includes/modootoday/directory/list.html +4 -2
  26. data/_includes/modootoday/directory/self.html +8 -0
  27. data/_includes/modootoday/doc/pagination.html +1 -1
  28. data/_includes/modootoday/doc/sidebar.html +1 -1
  29. data/_includes/modootoday/doc/twin.html +5 -4
  30. data/_includes/modootoday/docs-extra/jsonld.html +7 -7
  31. data/_includes/modootoday/docs-extra/packages.html +3 -3
  32. data/_includes/modootoday/filter/controls.html +4 -0
  33. data/_includes/modootoday/head-meta.html +7 -7
  34. data/_includes/modootoday/home-url.html +1 -1
  35. data/_includes/modootoday/i18n/ar.html +1 -1
  36. data/_includes/modootoday/i18n/de.html +1 -1
  37. data/_includes/modootoday/i18n/el.html +1 -1
  38. data/_includes/modootoday/i18n/es.html +1 -1
  39. data/_includes/modootoday/i18n/fa.html +1 -1
  40. data/_includes/modootoday/i18n/fr.html +1 -1
  41. data/_includes/modootoday/i18n/id.html +1 -1
  42. data/_includes/modootoday/i18n/it.html +1 -1
  43. data/_includes/modootoday/i18n/ja.html +1 -1
  44. data/_includes/modootoday/i18n/ko.html +1 -1
  45. data/_includes/modootoday/i18n/ml.html +1 -1
  46. data/_includes/modootoday/i18n/pl.html +1 -1
  47. data/_includes/modootoday/i18n/pt-BR.html +1 -1
  48. data/_includes/modootoday/i18n/ro.html +1 -1
  49. data/_includes/modootoday/i18n/ru.html +1 -1
  50. data/_includes/modootoday/i18n/th.html +1 -1
  51. data/_includes/modootoday/i18n/tr.html +1 -1
  52. data/_includes/modootoday/i18n/uk.html +1 -1
  53. data/_includes/modootoday/i18n/ur-Latn.html +1 -1
  54. data/_includes/modootoday/i18n/vi.html +1 -1
  55. data/_includes/modootoday/i18n/zh-CN.html +1 -1
  56. data/_includes/modootoday/i18n/zh-TW.html +1 -1
  57. data/_includes/modootoday/i18n.html +126 -123
  58. data/_includes/modootoday/jsonld/author.html +6 -7
  59. data/_includes/modootoday/jsonld/breadcrumb.html +4 -4
  60. data/_includes/modootoday/jsonld/graph.html +1 -1
  61. data/_includes/modootoday/jsonld/profile.html +3 -2
  62. data/_includes/modootoday/jsonld/props.html +2 -2
  63. data/_includes/modootoday/jsonld/schema/defined-term.html +8 -0
  64. data/_includes/modootoday/jsonld/schema/faq.html +19 -0
  65. data/_includes/modootoday/jsonld/schema/learning.html +11 -0
  66. data/_includes/modootoday/jsonld/type.html +10 -3
  67. data/_includes/modootoday/jsonld/webpage.html +1 -0
  68. data/_includes/modootoday/lang-switch.html +1 -1
  69. data/_includes/modootoday/links/content.html +4 -2
  70. data/_includes/modootoday/lookup/crumbs.html +13 -0
  71. data/_includes/modootoday/lookup/page.html +9 -0
  72. data/_includes/modootoday/lookup/urls.html +3 -0
  73. data/_includes/modootoday/markdown/c/faq.html +1 -1
  74. data/_includes/modootoday/markdown/c/params.html +3 -2
  75. data/_includes/modootoday/markdown/code.html +19 -0
  76. data/_includes/modootoday/markdown/components.html +8 -9
  77. data/_includes/modootoday/markdown/llms-pages.html +2 -2
  78. data/_includes/modootoday/markdown/sections.html +10 -4
  79. data/_includes/modootoday/markdown/split.html +3 -2
  80. data/_includes/modootoday/markdown/visual.html +6 -0
  81. data/_includes/modootoday/meta/byline.html +7 -8
  82. data/_includes/modootoday/meta/share.html +1 -1
  83. data/_includes/modootoday/nav.html +6 -6
  84. data/_includes/modootoday/news/notes.html +1 -1
  85. data/_includes/modootoday/pages/error.html +4 -2
  86. data/_includes/modootoday/pages/hero/poster.html +10 -0
  87. data/_includes/modootoday/pages/search-form.html +6 -4
  88. data/_includes/modootoday/pages/title.html +6 -0
  89. data/_includes/modootoday/profile/name.html +8 -0
  90. data/_includes/modootoday/records/body.html +3 -0
  91. data/_includes/modootoday/records/card.html +5 -0
  92. data/_includes/modootoday/records/facts.html +14 -0
  93. data/_includes/modootoday/records/lookup.html +8 -0
  94. data/_includes/modootoday/ref-url.html +7 -1
  95. data/_includes/modootoday/render/math.html +2 -2
  96. data/_includes/modootoday/render/mermaid.html +2 -2
  97. data/_includes/modootoday/search/record.html +13 -0
  98. data/_includes/modootoday/search.json +14 -7
  99. data/_includes/modootoday/site/author.html +18 -0
  100. data/_includes/modootoday/site/nav-auto.html +22 -0
  101. data/_includes/modootoday/site/nav.html +17 -0
  102. data/_includes/modootoday/stylesheets.html +25 -21
  103. data/_includes/modootoday/t.html +1 -1
  104. data/_includes/modootoday/theme-color.html +3 -3
  105. data/_includes/modootoday/version.html +2 -0
  106. data/_layouts/blog.html +2 -0
  107. data/_layouts/default.html +7 -32
  108. data/_layouts/detail.html +2 -26
  109. data/_layouts/directory.html +9 -3
  110. data/_layouts/doc.html +5 -4
  111. data/_layouts/download.html +2 -2
  112. data/_layouts/events.html +1 -0
  113. data/_layouts/feed.html +3 -3
  114. data/_layouts/home.html +4 -1
  115. data/_layouts/integrations.html +1 -0
  116. data/_layouts/jobs.html +1 -0
  117. data/_layouts/llms.html +8 -5
  118. data/_layouts/page.html +5 -0
  119. data/_layouts/portfolio.html +1 -0
  120. data/_layouts/reference.html +4 -2
  121. data/_layouts/resume.html +3 -2
  122. data/_layouts/search.html +2 -2
  123. data/_layouts/sponsors.html +1 -0
  124. data/_layouts/team.html +1 -0
  125. data/_sass/modootoday/_access.scss +6 -6
  126. data/_sass/modootoday/_core.scss +9 -4
  127. data/_sass/modootoday/_settings.scss +3 -0
  128. data/_sass/modootoday/_sheet.scss +4 -0
  129. data/_sass/modootoday/_site.scss +3 -0
  130. data/_sass/modootoday/base/_code.scss +21 -12
  131. data/_sass/modootoday/base/_prose.scss +18 -12
  132. data/_sass/modootoday/base/_table.scss +3 -6
  133. data/_sass/modootoday/blog/_article.scss +8 -3
  134. data/_sass/modootoday/blog/_cards.scss +13 -12
  135. data/_sass/modootoday/blog/_index.scss +2 -0
  136. data/_sass/modootoday/blog/_news.scss +1 -1
  137. data/_sass/modootoday/blog/_post.scss +1 -1
  138. data/_sass/modootoday/components/core/chrome/_breadcrumb.scss +7 -3
  139. data/_sass/modootoday/components/core/chrome/_header.scss +26 -0
  140. data/_sass/modootoday/components/core/chrome/_nav.scss +15 -20
  141. data/_sass/modootoday/components/core/chrome/_pagination.scss +12 -4
  142. data/_sass/modootoday/components/core/chrome/_theme-toggle.scss +2 -2
  143. data/_sass/modootoday/components/core/inline/_badge.scss +10 -6
  144. data/_sass/modootoday/components/core/inline/_callout.scss +5 -5
  145. data/_sass/modootoday/components/core/inline/_code-copy.scss +34 -8
  146. data/_sass/modootoday/components/core/inline/_code.scss +7 -5
  147. data/_sass/modootoday/components/core/inline/_cta.scss +6 -6
  148. data/_sass/modootoday/components/core/inline/_embed.scss +1 -1
  149. data/_sass/modootoday/components/core/inline/_figure.scss +5 -4
  150. data/_sass/modootoday/components/core/inline/_hero.scss +9 -5
  151. data/_sass/modootoday/components/core/inline/_kbd.scss +1 -1
  152. data/_sass/modootoday/components/core/inline/_reveal.scss +3 -1
  153. data/_sass/modootoday/components/doc/_sidebar.scss +29 -12
  154. data/_sass/modootoday/components/doc/_toc.scss +5 -4
  155. data/_sass/modootoday/components/figure/_figure-svg.scss +1 -1
  156. data/_sass/modootoday/components/filter/_filter.scss +14 -0
  157. data/_sass/modootoday/components/footer/_footer.scss +13 -0
  158. data/_sass/modootoday/components/search/_search.scss +23 -14
  159. data/_sass/modootoday/components/section/showcase/_card.scss +20 -11
  160. data/_sass/modootoday/components/section/showcase/_cta.scss +5 -3
  161. data/_sass/modootoday/components/section/showcase/_linkcards.scss +11 -7
  162. data/_sass/modootoday/components/section/showcase/_pricing.scss +19 -9
  163. data/_sass/modootoday/components/section/showcase/_quote.scss +4 -3
  164. data/_sass/modootoday/components/section/structure/_accordion.scss +7 -1
  165. data/_sass/modootoday/components/section/structure/_params.scss +1 -2
  166. data/_sass/modootoday/components/section/structure/_steps.scss +1 -1
  167. data/_sass/modootoday/components/section/structure/_tabs.scss +14 -6
  168. data/_sass/modootoday/components/section/structure/_timeline.scss +7 -1
  169. data/_sass/modootoday/components/table/_table.scss +65 -0
  170. data/_sass/modootoday/components/table-stack/_table-stack.scss +22 -0
  171. data/_sass/modootoday/components/visual/_visual.scss +9 -0
  172. data/_sass/modootoday/detail/_index.scss +3 -0
  173. data/_sass/modootoday/detail/_page.scss +2 -0
  174. data/_sass/modootoday/directory/_grid.scss +7 -0
  175. data/_sass/modootoday/directory/_index.scss +3 -0
  176. data/_sass/modootoday/docs-extra/_index.scss +3 -0
  177. data/_sass/modootoday/docs-extra/_page.scss +15 -10
  178. data/_sass/modootoday/hero/_index.scss +2 -0
  179. data/_sass/modootoday/hero/_layout.scss +10 -7
  180. data/_sass/modootoday/kit/_button.scss +5 -5
  181. data/_sass/modootoday/kit/_measure.scss +5 -0
  182. data/_sass/modootoday/layout/_shell.scss +7 -21
  183. data/_sass/modootoday/marketing/_index.scss +3 -0
  184. data/_sass/modootoday/marketing/_page.scss +11 -7
  185. data/_sass/modootoday/marketing/_pricing.scss +6 -5
  186. data/_sass/modootoday/pages/_actions.scss +5 -4
  187. data/_sass/modootoday/pages/_error.scss +7 -3
  188. data/_sass/modootoday/pages/_index.scss +3 -0
  189. data/_sass/modootoday/pages/_legal.scss +3 -3
  190. data/_sass/modootoday/pages/_search.scss +3 -1
  191. data/_sass/modootoday/registry/_hooks.scss +13 -0
  192. data/_sass/modootoday/resume/_index.scss +3 -0
  193. data/_sass/modootoday/resume/_page.scss +1 -1
  194. data/_sass/modootoday/tokens/_code-presets.scss +17 -0
  195. data/_sass/modootoday/tokens/_fonts.scss +17 -0
  196. data/_sass/modootoday/tokens/_merge.scss +4 -0
  197. data/_sass/modootoday/tokens/_primitive.scss +4 -2
  198. data/_sass/modootoday/tokens/_scale.scss +9 -0
  199. data/_sass/modootoday/tokens/_semantic.scss +18 -11
  200. data/_sass/modootoday/tools/_functions.scss +9 -0
  201. data/_sass/modootoday.scss +6 -2
  202. data/assets/css/modootoday/chrome/banner.scss +8 -0
  203. data/assets/css/modootoday/chrome/doc-nav.scss +8 -0
  204. data/assets/css/modootoday/chrome/footer.scss +8 -0
  205. data/assets/css/modootoday/{search.scss → chrome/search.scss} +1 -2
  206. data/assets/css/modootoday/{terminal.scss → chrome/terminal.scss} +1 -2
  207. data/assets/css/modootoday/content/code.scss +8 -0
  208. data/assets/css/modootoday/content/extras.scss +8 -0
  209. data/assets/css/modootoday/content/inline.scss +8 -0
  210. data/assets/css/modootoday/{lists.scss → content/lists.scss} +1 -2
  211. data/assets/css/modootoday/{loading.scss → content/loading.scss} +1 -2
  212. data/assets/css/modootoday/data/filter.scss +7 -0
  213. data/assets/css/modootoday/data/table-stack.scss +7 -0
  214. data/assets/css/modootoday/data/table.scss +7 -0
  215. data/assets/css/modootoday/docs/doc.scss +7 -0
  216. data/assets/css/modootoday/marketing/hero.scss +8 -0
  217. data/assets/css/modootoday/media/figure.scss +8 -0
  218. data/assets/css/modootoday/media/visual.scss +7 -0
  219. data/assets/css/modootoday/{bleed.scss → structure/bleed.scss} +1 -2
  220. data/assets/css/modootoday.scss +3 -2
  221. data/assets/js/modootoday/blog/share.js +34 -0
  222. data/assets/js/modootoday/chrome/menu.js +51 -0
  223. data/assets/js/modootoday/chrome/search-keys.js +56 -0
  224. data/assets/js/modootoday/chrome/search.js +112 -0
  225. data/assets/js/modootoday/chrome/theme-toggle.js +36 -0
  226. data/assets/js/modootoday/content/code-copy.js +59 -0
  227. data/assets/js/modootoday/content/scroll-region.js +27 -0
  228. data/assets/js/modootoday/data/filter-chips.js +30 -0
  229. data/assets/js/modootoday/data/filter.js +62 -0
  230. data/assets/js/modootoday/data/table-stack.js +60 -0
  231. data/assets/js/modootoday/dom/config.js +32 -0
  232. data/assets/js/modootoday/structure/accordion.js +25 -0
  233. data/assets/js/modootoday/structure/tabs.js +51 -0
  234. data/assets/js/modootoday/text/normalize.js +28 -0
  235. data/assets/js/modootoday/theme/current.js +38 -0
  236. data/exe/modootoday-stubs +7 -0
  237. data/i18n/ar.yml +2 -1
  238. data/i18n/de.yml +2 -1
  239. data/i18n/el.yml +2 -1
  240. data/i18n/en.yml +2 -1
  241. data/i18n/es.yml +2 -1
  242. data/i18n/fa.yml +2 -1
  243. data/i18n/fr.yml +2 -1
  244. data/i18n/id.yml +2 -1
  245. data/i18n/it.yml +2 -1
  246. data/i18n/ja.yml +3 -2
  247. data/i18n/ko.yml +3 -2
  248. data/i18n/languages.yml +2 -1
  249. data/i18n/ml.yml +2 -1
  250. data/i18n/pl.yml +2 -1
  251. data/i18n/pt-BR.yml +2 -1
  252. data/i18n/ro.yml +2 -1
  253. data/i18n/ru.yml +2 -1
  254. data/i18n/th.yml +2 -1
  255. data/i18n/tr.yml +2 -1
  256. data/i18n/uk.yml +2 -1
  257. data/i18n/ur-Latn.yml +2 -1
  258. data/i18n/vi.yml +2 -1
  259. data/i18n/zh-CN.yml +3 -2
  260. data/i18n/zh-TW.yml +3 -2
  261. data/lib/jekyll-theme-modootoday.rb +14 -6
  262. data/lib/modootoday/check/build/aliases.rb +79 -0
  263. data/lib/modootoday/check/{build_output.rb → build/build_output.rb} +13 -3
  264. data/lib/modootoday/check/build/byte_exact.rb +55 -0
  265. data/lib/modootoday/check/build/records.rb +39 -0
  266. data/lib/modootoday/check/build/site_assets.rb +59 -0
  267. data/lib/modootoday/check/{structured_data.rb → build/structured_data.rb} +10 -1
  268. data/lib/modootoday/check/build/term_sets.rb +46 -0
  269. data/lib/modootoday/check/build/third_party.rb +33 -0
  270. data/lib/modootoday/check/{twins.rb → build/twins.rb} +31 -14
  271. data/lib/modootoday/check/cli.rb +7 -5
  272. data/lib/modootoday/check/config/keys/appearance/chrome.rb +13 -0
  273. data/lib/modootoday/check/config/keys/appearance/color_scheme.rb +10 -0
  274. data/lib/modootoday/check/config/keys/appearance/components.rb +13 -0
  275. data/lib/modootoday/check/config/keys/appearance/switches.rb +15 -0
  276. data/lib/modootoday/check/config/keys/appearance/tokens.rb +31 -0
  277. data/lib/modootoday/check/config/keys/pages/content.rb +25 -0
  278. data/lib/modootoday/check/config/keys/pages/edit_url.rb +10 -0
  279. data/lib/modootoday/check/config/keys/pages/languages.rb +17 -0
  280. data/lib/modootoday/check/config/keys/pages/search.rb +47 -0
  281. data/lib/modootoday/check/config/keys/pages/twins.rb +30 -0
  282. data/lib/modootoday/check/config/keys/serving/csp.rb +9 -0
  283. data/lib/modootoday/check/config/keys/serving/delivery.rb +59 -0
  284. data/lib/modootoday/check/config/keys.rb +18 -0
  285. data/lib/modootoday/check/{renderers.rb → config/renderers.rb} +2 -51
  286. data/lib/modootoday/check/config/schema.rb +23 -0
  287. data/lib/modootoday/check/config/site_config.rb +25 -0
  288. data/lib/modootoday/check/config/source_mode.rb +18 -0
  289. data/lib/modootoday/check/config/validate.rb +47 -0
  290. data/lib/modootoday/check/context.rb +11 -5
  291. data/lib/modootoday/check/layouts/directory.rb +10 -2
  292. data/lib/modootoday/check/layouts/docs_extra.rb +3 -3
  293. data/lib/modootoday/check/layouts/profile.rb +21 -0
  294. data/lib/modootoday/check/layouts/shells.rb +2 -0
  295. data/lib/modootoday/check/layouts.rb +5 -1
  296. data/lib/modootoday/check/native/collections.rb +47 -0
  297. data/lib/modootoday/check/native/layouts.rb +43 -0
  298. data/lib/modootoday/check/native/sources.rb +27 -0
  299. data/lib/modootoday/check/{a11y → page/a11y}/new_window.rb +2 -3
  300. data/lib/modootoday/check/{component_rules.rb → page/component_rules.rb} +1 -1
  301. data/lib/modootoday/check/page/filter.rb +63 -0
  302. data/lib/modootoday/check/page/hero_script.rb +39 -0
  303. data/lib/modootoday/check/page/math_notation.rb +36 -0
  304. data/lib/modootoday/check/{page_sections.rb → page/page_sections.rb} +5 -3
  305. data/lib/modootoday/check/{page_syntax.rb → page/page_syntax.rb} +4 -1
  306. data/lib/modootoday/check/{pages.rb → page/pages.rb} +11 -0
  307. data/lib/modootoday/check/{i18n.rb → registry/i18n.rb} +8 -30
  308. data/lib/modootoday/check/registry/i18n_pages.rb +80 -0
  309. data/lib/modootoday/check/{registry.rb → registry/registry.rb} +1 -1
  310. data/lib/modootoday/check/source/site_hook.rb +65 -0
  311. data/lib/modootoday/check.rb +29 -15
  312. data/lib/modootoday/i18n/page_lang.rb +56 -0
  313. data/lib/modootoday/i18n/source_rev.rb +26 -0
  314. data/lib/modootoday/i18n.rb +6 -0
  315. data/lib/modootoday/markdown.rb +46 -0
  316. data/lib/modootoday/schema/compat/minima.yml +8 -0
  317. data/lib/modootoday/schema/compat/minimal-mistakes.yml +16 -0
  318. data/lib/modootoday/schema/rules.rb +1 -0
  319. data/lib/modootoday/stubs/aliases.rb +61 -0
  320. data/lib/modootoday/stubs/cli.rb +77 -0
  321. data/lib/modootoday/stubs/page.rb +19 -0
  322. data/lib/modootoday/stubs/plan.rb +43 -0
  323. data/lib/modootoday/stubs/records.rb +101 -0
  324. data/lib/modootoday/stubs/report.rb +31 -0
  325. data/lib/modootoday/stubs/source.rb +87 -0
  326. data/lib/modootoday/stubs/twins.rb +40 -0
  327. data/lib/modootoday/stubs/writer.rb +19 -0
  328. data/lib/modootoday/stubs.rb +24 -0
  329. metadata +157 -43
  330. data/assets/css/modootoday/doc.scss +0 -10
  331. data/assets/css/modootoday/figure.scss +0 -8
  332. data/assets/js/modootoday/accordion.js +0 -13
  333. data/assets/js/modootoday/code-copy.js +0 -29
  334. data/assets/js/modootoday/menu.js +0 -19
  335. data/assets/js/modootoday/scroll-region.js +0 -14
  336. data/assets/js/modootoday/search-keys.js +0 -18
  337. data/assets/js/modootoday/search.js +0 -31
  338. data/assets/js/modootoday/share.js +0 -16
  339. data/assets/js/modootoday/tabs.js +0 -26
  340. data/assets/js/modootoday/theme-toggle.js +0 -17
  341. data/lib/modootoday/check/markdown.rb +0 -39
  342. data/lib/modootoday/check/site_config.rb +0 -88
  343. /data/assets/js/modootoday/{theme-init.js → chrome/theme-init.js} +0 -0
  344. /data/lib/modootoday/check/{built_parts.rb → build/built_parts.rb} +0 -0
  345. /data/lib/modootoday/check/{blog.rb → layouts/blog.rb} +0 -0
  346. /data/lib/modootoday/check/{a11y → page/a11y}/content.rb +0 -0
  347. /data/lib/modootoday/check/{a11y → page/a11y}/illustration.rb +0 -0
  348. /data/lib/modootoday/check/{page_values.rb → page/page_values.rb} +0 -0
  349. /data/lib/modootoday/check/{slots.rb → page/slots.rb} +0 -0
  350. /data/lib/modootoday/check/{gh_render.rb → source/gh_render.rb} +0 -0
  351. /data/lib/modootoday/check/{github_pages.rb → source/github_pages.rb} +0 -0
  352. /data/lib/modootoday/check/{stylesheets.rb → source/stylesheets.rb} +0 -0
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,7 +25,7 @@ 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
+ | 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 |
28
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. `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 |
@@ -32,7 +33,7 @@ Every content page starts with front matter; an empty block (`---` then `---`) i
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,7 +41,8 @@ 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 |
@@ -51,7 +53,7 @@ Every content page starts with front matter; an empty block (`---` then `---`) i
51
53
 
52
54
  ## 3. Localisation
53
55
  - 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`.
56
+ - The same rules apply to translated pages, whether they sit beside their source (`<name>.<lang>.md`) or under `<lang>/`.
55
57
 
56
58
  ## 3a. Writing direction
57
59
  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 +66,7 @@ The bans are about **portability**: the same source must look the same on github
64
66
  | 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
67
  | 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
68
  | Liquid `{% %}` `{{ }}` | breaks on GitHub and in twins | checker |
67
- | kramdown IAL/ALD `{: .x}`, `{:toc}` | kramdown-only | checker |
69
+ | 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
70
  | header ids `{#id}` | kramdown-only (literal text on GitHub) | checker |
69
71
  | definition lists `: text` | kramdown-only | checker |
70
72
  | abbreviations `*[HTML]: …` | kramdown-only (literal text on GitHub) | checker |
@@ -80,7 +82,7 @@ The bans are about **portability**: the same source must look the same on github
80
82
  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
83
 
82
84
  ## 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`.
85
+ 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
86
 
85
87
  ## 5a. Markdown twins
86
88
  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 +93,16 @@ Three ways to publish a page's raw Markdown next to its HTML. Pick one per site
91
93
  | Generator | `plugins: [jekyll-theme-modootoday]` | `/<name>/index.md` | Jekyll 4 or a GitHub Actions build | not run by classic GitHub Pages |
92
94
  | 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
95
 
96
+ 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.
97
+
98
+ | Alias | Stub | URL | Content |
99
+ |---|---|---|---|
100
+ | 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 |
101
+ | 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` |
102
+
103
+ - 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`.
104
+ - The HTML alias is a redirect, not a copy of the page, so search engines index one URL.
105
+
94
106
  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
107
  - 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
108
  - 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 +116,16 @@ Stub and generator details:
104
116
  - Source `<name>.md`. The twin comes from either
105
117
  - 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
118
  - 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>/`.
119
+ 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.
120
+ Both produce the same page; a stub wins over the generator. `twin: false` opts a page out, and error pages (`layout: error`) have none.
121
+ - 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
122
  - 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.
123
+ - `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
124
  - 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
125
  - 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.
126
+ - 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.
127
+ - 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.
128
+ - `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
129
  - 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
130
  - Twin bodies go through Liquid (`include_relative`); bodies must not contain Liquid (already forbidden in §4).
116
131
 
@@ -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,89 @@
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|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
+ doc|css|/assets/css/modootoday/docs/doc.css||sidebar toc page-actions|1280
18
+ search|css|/assets/css/modootoday/chrome/search.css||search|1024
19
+ loading|css|/assets/css/modootoday/content/loading.css|class="mt-spinner^class="mt-skeleton^class="mt-topbar|loading|1024
20
+ lists|css|/assets/css/modootoday/content/lists.css|class="mt-hero mt-hero-checks^class="mt-chips"^class="mt-item-title"|lists|640
21
+ bleed|css|/assets/css/modootoday/structure/bleed.css||bleed|512
22
+ terminal|css|/assets/css/modootoday/chrome/terminal.css||terminal|384
23
+ visual|css|/assets/css/modootoday/media/visual.css|class="mt-visual-poster^data-mt-script="|visual|256
24
+ filter|css|/assets/css/modootoday/data/filter.css|<div class="mt-filter"|filter|512
25
+ table|css|/assets/css/modootoday/data/table.css|<table|/base/table table|1280
26
+ table-stack|css|/assets/css/modootoday/data/table-stack.css|<table|table-stack|640
27
+ cta|section|/assets/css/modootoday/showcase/cta.css|cta||256
28
+ card|section|/assets/css/modootoday/showcase/card.css|features||640
29
+ linkcards|section|/assets/css/modootoday/showcase/linkcards.css|linkcards||640
30
+ quote|section|/assets/css/modootoday/showcase/quote.css|quote||384
31
+ gallery|section|/assets/css/modootoday/showcase/gallery.css|gallery||640
32
+ pricing|section|/assets/css/modootoday/showcase/pricing.css|pricing||768
33
+ subscribe|section|/assets/css/modootoday/showcase/subscribe.css|subscribe||512
34
+ tabs|section|/assets/css/modootoday/structure/tabs.css|tabs||640
35
+ accordion|section|/assets/css/modootoday/structure/accordion.css|accordion||640
36
+ steps|section|/assets/css/modootoday/structure/steps.css|steps||512
37
+ timeline|section|/assets/css/modootoday/structure/timeline.css|timeline||512
38
+ filetree|section|/assets/css/modootoday/structure/filetree.css|filetree||512
39
+ details|section|/assets/css/modootoday/structure/details.css|details||512
40
+ faq|section|/assets/css/modootoday/structure/faq.css|faq||640
41
+ params|section|/assets/css/modootoday/structure/params.css|params||384
42
+ split|section|/assets/css/modootoday/structure/split.css|split||512
43
+ tabs|module|/assets/js/modootoday/structure/tabs.js|||1024
44
+ menu|module|/assets/js/modootoday/chrome/menu.js|||768
45
+ scroll-region|module|/assets/js/modootoday/content/scroll-region.js|<pre^<table||640
46
+ table-stack|module|/assets/js/modootoday/data/table-stack.js|<table||1280
47
+ code-copy|module|/assets/js/modootoday/content/code-copy.js|<pre||1280
48
+ theme-toggle|module|/assets/js/modootoday/chrome/theme-toggle.js|||768
49
+ accordion|module|/assets/js/modootoday/structure/accordion.js|||640
50
+ share|module|/assets/js/modootoday/blog/share.js|||640
51
+ search-keys|module|/assets/js/modootoday/chrome/search-keys.js|||1024
52
+ 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
53
+ {%- endcapture -%}
54
+ {%- capture _mta_fixed -%}
55
+ core|sheet|/assets/css/modootoday.css|||4608
56
+ blog|sheet|/assets/css/modootoday-blog.css|||2304
57
+ detail|sheet|/assets/css/modootoday-detail.css|||1024
58
+ directory|sheet|/assets/css/modootoday-directory.css|||1920
59
+ docs-extra|sheet|/assets/css/modootoday-docs-extra.css|||1792
60
+ hero|sheet|/assets/css/modootoday-hero.css|||1280
61
+ marketing|sheet|/assets/css/modootoday-marketing.css|||1664
62
+ pages|sheet|/assets/css/modootoday-pages.css|||1408
63
+ resume|sheet|/assets/css/modootoday-resume.css|||768
64
+ theme-init|script|/assets/js/modootoday/chrome/theme-init.js|||256
65
+ mermaid|script|/assets/js/modootoday-mermaid.js|||1152
66
+ math|script|/assets/js/modootoday-math.js|||768
67
+ config|import|/assets/js/modootoday/dom/config.js|||640
68
+ normalize|import|/assets/js/modootoday/text/normalize.js|||512
69
+ search|import|/assets/js/modootoday/chrome/search.js|||1792|/assets/js/modootoday/text/normalize.js
70
+ current|import|/assets/js/modootoday/theme/current.js|||640
71
+ chips|import|/assets/js/modootoday/data/filter-chips.js|||640
72
+ {%- endcapture -%}
73
+ {%- assign mt_asset_rows = _mta_rows | newline_to_br | strip_newlines | split: "<br />" -%}
74
+ {%- assign _mta_cs = "" -%}{%- assign _mta_ss = "" -%}
75
+ {%- for _mta_r in mt_asset_rows -%}{%- assign _mta_c = _mta_r | split: "|" -%}
76
+ {%- 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 -%}
77
+ {%- 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 -%}
78
+ {%- endfor -%}
79
+ {%- assign mt_context_sheets = _mta_cs | remove_first: "," | split: "," -%}
80
+ {%- assign mt_section_sheets = _mta_ss | remove_first: "," | split: "," -%}
81
+ {%- comment -%}mt_asset_v: the ?v= query of every theme CSS and JS URL (assets/url.html), from modootoday.asset_version:
82
+ theme (default) the theme version, build adds the commit (or the build time), false none.{%- endcomment -%}
83
+ {%- include modootoday/version.html -%}
84
+ {%- assign _mta_av = site.modootoday.asset_version -%}{%- assign mt_asset_v = mt_version -%}
85
+ {%- if _mta_av == false -%}{%- assign mt_asset_v = "" -%}
86
+ {%- elsif _mta_av == "build" -%}{%- assign _mta_rev = site.github.build_revision | slice: 0, 7 -%}
87
+ {%- if _mta_rev == "" -%}{%- assign _mta_rev = site.time | date: "%s" -%}{%- endif -%}
88
+ {%- assign mt_asset_v = mt_version | append: "-" | append: _mta_rev -%}
89
+ {%- endif -%}
@@ -0,0 +1,36 @@
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_components contains "accordion" and mt_page_c contains "|accordion|" -%}{%- assign _mta_on = _mta_on | append: "accordion|" -%}{%- endif -%}
18
+ {%- if mt_blog_css and site.modootoday.blog.share != false -%}{%- assign _mta_on = _mta_on | append: "share|" -%}{%- endif -%}
19
+ {%- if mt_components contains "search" and mt_search_index -%}{%- assign _mta_on = _mta_on | append: "search-keys|" -%}{%- endif -%}
20
+ {%- if mt_components contains "filter" and _mta_hit contains "|filter|" -%}{%- assign _mta_on = _mta_on | append: "filter|" -%}{%- endif -%}
21
+ {%- assign _mta_done = "|" -%}{%- assign _mta_pre = "|" -%}
22
+ {%- for _mta_r in mt_asset_rows -%}{%- assign _mta_c = _mta_r | split: "|" -%}{%- assign _mta_k = "|" | append: _mta_c[0] | append: "|" -%}
23
+ {%- 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: "|" -%}
24
+ {%- assign _mta_p = _mta_c[2] -%}{%- include modootoday/assets/url.html path=_mta_p -%}{%- assign _mta_src = mt_asset_url -%}
25
+ {%- if _mta_c[1] == "module" -%}{%- assign _mta_deps = _mta_c[6] | split: " " -%}
26
+ {%- 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: "|" -%}
27
+ {%- include modootoday/assets/url.html path=_mta_d version=false %}
28
+ <link rel="modulepreload" href="{{ mt_asset_url }}">
29
+ {%- endunless -%}{%- endfor %}
30
+ <script type="module" src="{{ _mta_src }}"></script>
31
+ {%- else %}
32
+ <script src="{{ _mta_src }}" defer></script>
33
+ {%- endif -%}
34
+ {%- endunless -%}{%- endif -%}{%- endif -%}{%- endfor -%}
35
+ {%- include modootoday/render/mermaid.html -%}
36
+ {%- include modootoday/render/math.html -%}
@@ -0,0 +1,25 @@
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 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 -%}
7
+ {%- assign _mta_fk = "footer-" | append: _lang -%}{%- assign _mta_fd = site.data.nav[_mta_fk] | default: site.data.nav.footer -%}
8
+ {%- if _mta_fd.columns and mt_components contains "footer" -%}{%- assign mt_page_c = mt_page_c | append: "footer|" -%}{%- endif -%}
9
+ {%- unless layout.mt_chrome == false or page.chrome == false -%}
10
+ {%- if page.last_modified_at -%}{%- assign mt_page_c = mt_page_c | append: "doc-nav|" -%}
11
+ {%- elsif site.modootoday.edit_url and page.edit != false and page.path -%}{%- assign mt_page_c = mt_page_c | append: "doc-nav|" -%}
12
+ {%- elsif mt_nav and mt_components contains "pagination" and page.pagination != false -%}{%- assign _mta_nj = mt_nav | jsonify -%}
13
+ {%- 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 -%}
14
+ {%- endif -%}
15
+ {%- endunless -%}
16
+ {%- endif -%}
17
+ {%- for _mta_r in mt_asset_rows -%}{%- assign _mta_c = _mta_r | split: "|" -%}
18
+ {%- 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 -%}
19
+ {%- 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 -%}
20
+ {%- endif -%}{%- endfor -%}{%- endif -%}{%- endfor -%}
21
+ {%- assign _mta_ls = layout.mt_sheets | default: "" -%}
22
+ {%- for _mta_r in mt_asset_rows -%}{%- assign _mta_c = _mta_r | split: "|" -%}{%- assign _mta_k = "|" | append: _mta_c[0] | append: "|" -%}
23
+ {%- 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 %}
24
+ <link rel="stylesheet" href="{{ mt_asset_url }}">
25
+ {%- endif -%}{%- endif -%}{%- endfor -%}
@@ -0,0 +1,20 @@
1
+ {%- comment -%}The site's module scripts named on this page by script: on hero: or a section item, from modootoday.scripts
2
+ (name: {src, css, preload}; site paths only). Once per name: the css sheet, modulepreload for each preload path (no ?v= query,
3
+ so the URL matches the module's import), then <script type="module">, which runs deferred under script-src 'self'.{%- endcomment -%}
4
+ {%- assign _mtsn = "|" -%}{%- if page.hero.script -%}{%- assign _mtsn = _mtsn | append: page.hero.script | append: "|" -%}{%- endif -%}
5
+ {%- for _mtsi in page.sections -%}{%- if _mtsi.script -%}{%- assign _mtsn = _mtsn | append: _mtsi.script | append: "|" -%}{%- endif -%}{%- endfor -%}
6
+ {%- if _mtsn != "|" -%}{%- assign _mtsn = _mtsn | split: "|" | uniq -%}
7
+ {%- for _mtsk in _mtsn -%}{%- assign _mtse = site.modootoday.scripts[_mtsk] -%}{%- assign _mtsp = _mtse.src | append: "" -%}
8
+ {%- assign _mtsp1 = _mtsp | slice: 0, 1 -%}{%- assign _mtsp2 = _mtsp | slice: 0, 2 -%}
9
+ {%- if _mtsk != "" and _mtsp1 == "/" and _mtsp2 != "//" -%}
10
+ {%- assign _mtsc = _mtse.css | append: "" -%}{%- assign _mtsc1 = _mtsc | slice: 0, 1 -%}{%- assign _mtsc2 = _mtsc | slice: 0, 2 -%}
11
+ {%- if _mtsc1 == "/" and _mtsc2 != "//" -%}{%- include modootoday/assets/url.html path=_mtsc %}
12
+ <link rel="stylesheet" href="{{ mt_asset_url | escape }}">
13
+ {%- endif -%}
14
+ {%- for _mtsm in _mtse.preload -%}{%- assign _mtsm1 = _mtsm | slice: 0, 1 -%}{%- assign _mtsm2 = _mtsm | slice: 0, 2 -%}
15
+ {%- if _mtsm1 == "/" and _mtsm2 != "//" %}
16
+ <link rel="modulepreload" href="{{ _mtsm | relative_url | escape }}">
17
+ {%- endif -%}{%- endfor -%}
18
+ {%- include modootoday/assets/url.html path=_mtsp %}
19
+ <script type="module" src="{{ mt_asset_url | escape }}"></script>
20
+ {%- 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 -%}
@@ -1,22 +1,21 @@
1
1
  {%- comment -%}Breadcrumb from the page URL: each parent directory that is a page becomes a link.
2
- The home crumb uses the home page short_title, then its title. Hidden on the home page (or a /<lang>/ home) and with front matter breadcrumb: false.{%- endcomment -%}
2
+ The home crumb uses the home page short_title, then its title. Each chevron closes the item before it, so a wrapped line starts with a name. Hidden on the home page (or a /<lang>/ home) and with front matter breadcrumb: false.{%- endcomment -%}
3
3
  {%- if mt_components contains "breadcrumb" and page.breadcrumb != false -%}
4
- {%- assign _segs = page.url | split: "/" -%}
5
- {%- assign _home = "/" -%}{%- assign _start = 0 -%}
6
- {%- if _segs[1] == _lang and _lang != site.lang -%}{%- assign _home = "/" | append: _lang | append: "/" -%}{%- assign _start = 1 -%}{%- endif -%}
4
+ {%- include modootoday/lookup/crumbs.html lang=_lang -%}
5
+ {%- assign _segs = page.url | split: "/" -%}{%- assign _home = mt_crumb_home -%}{%- assign _start = mt_crumb_start -%}
7
6
  {%- if page.url != _home and page.url != "/" -%}
8
- {%- assign _hp = site.pages | where: "url", _home | first -%}
7
+ {%- assign _hp = mt_crumb_pages | where: "url", _home | first -%}
9
8
  <nav class="mt-breadcrumb" aria-label="{% include modootoday/i18n.html lang=_lang %}{{ mt_t_breadcrumb_label }}"><ol>
10
- <li><a href="{{ _home | relative_url }}">{{ _hp.short_title | default: _hp.title | default: mt_site_title | default: site.title | default: "Home" }}</a></li>
9
+ <li><a href="{{ _home | relative_url }}">{{ _hp.short_title | default: _hp.title | default: mt_site_title | default: site.title | default: "Home" }}</a>
11
10
  {%- assign _acc = _home -%}
12
11
  {%- for _s in _segs offset: 1 -%}{%- if forloop.index > _start and _s != "" and _s != "index.html" -%}
13
12
  {%- assign _acc = _acc | append: _s | append: "/" -%}
14
13
  {%- if _acc == page.url or forloop.last -%}
15
- <li>{% include modootoday/brand/icon.html name="chevron-right" size=12 %}<span aria-current="page">{{ page.title | default: _s }}</span></li>
16
- {%- else -%}{%- assign _pp = site.pages | where: "url", _acc | first -%}{%- if _pp -%}
17
- <li>{% include modootoday/brand/icon.html name="chevron-right" size=12 %}<a href="{{ _acc | relative_url }}">{{ _pp.title | default: _s }}</a></li>
14
+ {% include modootoday/brand/icon.html name="chevron-right" size=12 %}</li><li><span aria-current="page">{{ page.title | default: _s }}</span>
15
+ {%- else -%}{%- assign _pp = mt_crumb_pages | where: "url", _acc | first -%}{%- if _pp -%}
16
+ {% include modootoday/brand/icon.html name="chevron-right" size=12 %}</li><li><a href="{{ _acc | relative_url }}">{{ _pp.title | default: _s }}</a>
18
17
  {%- endif -%}{%- endif -%}
19
18
  {%- endif -%}{%- endfor %}
20
- </ol></nav>
19
+ </li></ol></nav>
21
20
  {%- endif -%}
22
21
  {%- endif -%}
@@ -0,0 +1,16 @@
1
+ {%- comment -%}Site footer from _data/nav/footer-<lang>.yml, else _data/nav/footer.yml: columns: [{title, items: [{title, url}]}]
2
+ and copyright: (text). Columns are lists labelled by their titles, not landmarks, so a title never collides
3
+ with another landmark's name (the sidebar's "Docs"). With modootoday.language_switcher: footer the switcher
4
+ closes it. Renders nothing without either.
5
+ The theme's footer-custom.html includes it; a site's own footer-custom.html replaces both.{%- endcomment -%}
6
+ {%- assign _fl = page.lang | default: site.lang | default: "en" -%}
7
+ {%- assign _fk = "footer-" | append: _fl -%}
8
+ {%- assign _fd = site.data.nav[_fk] | default: site.data.nav.footer -%}
9
+ {%- assign _fsw = false -%}{%- if site.modootoday.language_switcher == "footer" and site.modootoday.languages -%}{%- assign _fsw = true -%}{%- endif -%}
10
+ {%- if _fd.columns or _fd.copyright or _fsw %}
11
+ <footer class="mt-footer"><div class="mt-footer-inner">
12
+ {%- if _fd.columns %}<div class="mt-footer-cols">{% for _fc in _fd.columns %}<div><p class="mt-footer-title" id="mt-footer-{{ forloop.index }}">{{ _fc.title }}</p><ul aria-labelledby="mt-footer-{{ forloop.index }}">{% for _fi in _fc.items %}<li><a href="{% include modootoday/link.html url=_fi.url %}">{{ _fi.title }}</a></li>{% endfor %}</ul></div>{% endfor %}</div>{% endif %}
13
+ {%- if _fd.copyright %}<p class="mt-footer-copy">{{ _fd.copyright }}</p>{% endif %}
14
+ {%- if _fsw %}{% include modootoday/lang-switch.html %}{% endif %}
15
+ </div></footer>
16
+ {%- endif -%}
@@ -0,0 +1,13 @@
1
+ {%- comment -%}Header menu sheet below 64rem, inside nav.html's <nav>: one details.mt-menu (menu.js: Escape, arrow keys, one open)
2
+ listing the top-level links, then each group's links under the group title. Needs mt_nav and the i18n labels.{%- endcomment -%}
3
+ <details class="mt-menu mt-nav-sheet"><summary aria-label="{{ mt_t_nav_menu }}" title="{{ mt_t_nav_menu }}">{% include modootoday/brand/icon.html name="menu" %}</summary><ul>
4
+ {%- for it in mt_nav %}
5
+ {%- if it.items and mt_nav_groups %}
6
+ <li><span class="mt-nav-sheet-label">{{ it.title }}</span><ul>
7
+ {%- for sub in it.items %}<li><a href="{% include modootoday/link.html url=sub.url %}"{% include modootoday/links/attrs.html on=sub.new_window target=sub.target url=sub.url %}{% if sub.url == page.url %} aria-current="page"{% endif %}>{{ sub.title }}</a></li>{% endfor -%}
8
+ </ul></li>
9
+ {%- else %}
10
+ <li><a href="{% include modootoday/link.html url=it.url %}"{% include modootoday/links/attrs.html on=it.new_window target=it.target url=it.url %}{% if it.url == page.url %} aria-current="page"{% endif %}>{{ it.title }}{% if it.url contains "://" %}{% include modootoday/brand/icon.html name="external" size=12 %}{% endif %}</a></li>
11
+ {%- endif %}
12
+ {%- endfor %}
13
+ </ul></details>
@@ -4,25 +4,27 @@ Jekyll 3.10 / GitHub Pages, so every default lives here (Liquid). Sets mt_* vari
4
4
  site.modootoday.color_scheme auto | light | dark | auto-dark | auto-light (default auto)
5
5
  auto*: toggle shown; auto follows the system, auto-dark/auto-light start in that scheme
6
6
  site.modootoday.css_layers true | false (default false)
7
- site.modootoday.components list of component names (default: all); lists, bleed and terminal are always added:
8
- their CSS only reaches pages that turn them on (modootoday.lists / hero.checks, bleed:, chrome: terminal)
7
+ site.modootoday.code_theme theme | github: code block colours (default theme; github = the GitHub light and dark palettes)
8
+ site.modootoday.components list of component names (default: all); lists, bleed, terminal, visual, filter, table and table-stack
9
+ are always added: their CSS only reaches pages that turn them on (modootoday.lists / hero.checks, bleed:,
10
+ chrome: terminal, script: / poster:, filter: / filter_text:)
9
11
  site.modootoday.css split | bundle: split (default) links the core sheet plus only the sheets a page uses; bundle links one file with everything
10
- site.modootoday.nav _data/nav/<name>.yml or _data/nav.yml (default main); _data/nav/<name>-<lang>.yml wins for that page.lang
12
+ site.modootoday.nav _data/nav/<name>.yml or _data/nav.yml (default main); _data/nav/<name>-<lang>.yml wins for that page.lang;
13
+ then _data/navigation.yml main, header_pages, titled pages; false: no titled-page list (site/nav.html)
11
14
  site.modootoday.tokens / tokens_dark semantic token overrides, inline :root CSS
12
15
  site.modootoday.sidebar auto | true | false: doc-page sidebar from the nav (default auto: on when the nav has a group)
13
16
  site.modootoday.badges false disables status badges (default true)
14
17
  site.modootoday.lists {link_chips: true, titled_items: true}: optional list markup (markdown/lists.html, lists sheet)
15
18
  {%- endcomment -%}
16
19
  {%- assign mt = site.modootoday -%}
17
- {%- assign mt_all_components = "callout,badge,hero,cta,card,tabs,code-copy,nav,sidebar,page-actions,pagination,theme-toggle,breadcrumb,toc,accordion,steps,figure,timeline,kbd,search,code,footnotes,progress,embed,banner,filetree,details,faq,params,linkcards,quote,gallery,pricing,subscribe,split,loading,figure-svg,lists,reveal,bleed,terminal" | split: "," -%}
20
+ {%- assign mt_all_components = "callout,badge,hero,cta,card,tabs,code-copy,nav,sidebar,page-actions,pagination,theme-toggle,breadcrumb,toc,accordion,steps,figure,timeline,kbd,search,code,footnotes,progress,embed,banner,filetree,details,faq,params,linkcards,quote,gallery,pricing,subscribe,split,loading,figure-svg,lists,reveal,bleed,terminal,visual,filter,table,table-stack,footer" | split: "," -%}
18
21
  {%- comment -%}Sass partials by context (components/<group>/_<name>.scss). Core: always in assets/css/modootoday.css.
19
- Section sheets: assets/css/modootoday/<group>/<name>.css, linked when a page's sections: use c (c:sheet).
22
+ Section sheets: assets/css/modootoday/<group>/<name>.css, linked when a page's sections: use c (section rows of assets/registry.html).
20
23
  Context sheets: assets/css/modootoday/<name>.css, linked by layout front matter mt_sheets (doc; blog layouts also get assets/css/modootoday-blog.css).{%- endcomment -%}
21
- {%- assign mt_core_partials = "core/inline/callout,core/inline/badge,core/inline/kbd,core/inline/figure,core/inline/code-copy,core/inline/hero,core/inline/reveal,core/inline/cta,core/inline/code,core/inline/footnotes,core/inline/progress,core/inline/embed,core/chrome/nav,core/chrome/theme-toggle,core/chrome/breadcrumb,core/chrome/pagination,core/chrome/banner" | split: "," -%}
22
- {%- assign mt_section_sheets = "cta:showcase/cta,features:showcase/card,linkcards:showcase/linkcards,quote:showcase/quote,gallery:showcase/gallery,pricing:showcase/pricing,subscribe:showcase/subscribe,tabs:structure/tabs,accordion:structure/accordion,steps:structure/steps,timeline:structure/timeline,filetree:structure/filetree,details:structure/details,faq:structure/faq,params:structure/params,split:structure/split" | split: "," -%}
23
- {%- assign mt_context_sheets = "doc:sidebar|toc|page-actions,search:search,loading:loading,figure:figure-svg,lists:lists,bleed:bleed,terminal:terminal" | split: "," -%}
24
+ {%- assign mt_core_partials = "core/chrome/nav,core/chrome/theme-toggle" | split: "," -%}
25
+ {%- include modootoday/assets/registry.html -%}
24
26
  {%- assign mt_components = mt_all_components -%}
25
- {%- if mt.components -%}{%- assign _mt_optin = "lists,bleed,terminal" | split: "," -%}{%- assign mt_components = mt.components | concat: _mt_optin | uniq -%}{%- endif -%}
27
+ {%- if mt.components -%}{%- assign _mt_optin = "lists,bleed,terminal,visual,filter,table,table-stack" | split: "," -%}{%- assign mt_components = mt.components | concat: _mt_optin | uniq -%}{%- endif -%}
26
28
  {%- assign mt_color_scheme = "auto" -%}
27
29
  {%- assign _mt_cs = "light dark auto-dark auto-light" | split: " " -%}
28
30
  {%- if _mt_cs contains mt.color_scheme -%}{%- assign mt_color_scheme = mt.color_scheme -%}{%- endif -%}
@@ -31,13 +33,13 @@ Jekyll 3.10 / GitHub Pages, so every default lives here (Liquid). Sets mt_* vari
31
33
  {%- if mt_color_scheme contains "auto" -%}{%- assign mt_theme_toggle = true -%}{%- endif -%}
32
34
  {%- if mt_color_scheme == "auto" -%}{%- assign mt_theme_start = nil -%}{%- endif -%}
33
35
  {%- if mt.css_layers == true -%}{%- assign mt_css_layers = "true" -%}{%- else -%}{%- assign mt_css_layers = "false" -%}{%- endif -%}
36
+ {%- comment -%}mt_langs: the site's languages (site.lang, then modootoday.languages); none when modootoday.tokens sets font-sans.{%- endcomment -%}
37
+ {%- assign mt_langs = site.lang | default: "en" | split: "," -%}{%- if mt.languages -%}{%- assign mt_langs = mt_langs | concat: mt.languages | uniq -%}{%- endif -%}
38
+ {%- if mt.tokens["font-sans"] -%}{%- assign mt_langs = "" | split: "," -%}{%- endif -%}
39
+ {%- if mt.code_theme == "github" -%}{%- assign mt_code_theme = "github" -%}{%- else -%}{%- assign mt_code_theme = "theme" -%}{%- endif -%}
34
40
  {%- if mt.badges == false -%}{%- assign mt_badges = false -%}{%- else -%}{%- assign mt_badges = true -%}{%- endif -%}
35
- {%- assign mt_nav_name = mt.nav | default: "main" -%}
36
- {%- assign mt_nav = site.data.nav[mt_nav_name] -%}
37
- {%- assign _mt_nav_l = mt_nav_name | append: "-" | append: page.lang -%}
38
- {%- if page.lang and site.data.nav[_mt_nav_l] -%}{%- assign mt_nav = site.data.nav[_mt_nav_l] -%}{%- endif -%}
39
- {%- if mt_nav == nil and site.data.nav.first.url -%}{%- assign mt_nav = site.data.nav -%}{%- endif -%}
41
+ {%- include modootoday/site/nav.html -%}
40
42
  {%- assign mt_sidebar = false -%}
41
- {%- if mt_nav and mt_components contains "sidebar" and mt.sidebar != false and page.sidebar != false -%}
43
+ {%- if mt_nav and mt_nav_groups and mt_components contains "sidebar" and mt.sidebar != false and page.sidebar != false -%}
42
44
  {%- if mt.sidebar == true -%}{%- assign mt_sidebar = true -%}{%- else -%}{%- for _it in mt_nav -%}{%- if _it.items -%}{%- assign mt_sidebar = true -%}{%- endif -%}{%- endfor -%}{%- endif -%}
43
45
  {%- endif -%}
@@ -0,0 +1,28 @@
1
+ {%- include modootoday/i18n.html -%}
2
+ {%- comment -%}One item page (project, case study, job, event, episode) for the detail layout and a directory layout's self-detail.
3
+ Header (kicker, title, lead), an optional cover image (detail/cover.html), a facts list from front matter (detail/facts.html,
4
+ per include.kind), the body, then one call to action. A record page (record: set/key) adds the record's facts and body.{%- endcomment -%}
5
+ {%- assign _k = include.kind | default: "item" -%}
6
+ <article class="mt-detail-page mt-detail-{{ _k }}" aria-labelledby="mt-detail-title">
7
+ <header class="mt-detail-head">
8
+ {%- assign _kick = page.kicker -%}
9
+ {%- if _k == "episode" and page.episode -%}{%- assign _kick = mt_t_layouts_episode | replace: "[n]", page.episode -%}{%- if page.season %}{%- assign _kick = mt_t_layouts_season | append: " " | append: page.season | append: " · " | append: _kick -%}{%- endif -%}{%- endif -%}
10
+ {%- if _kick %}
11
+ <p class="mt-detail-kicker">{{ _kick }}</p>
12
+ {%- endif %}
13
+ <h1 id="mt-detail-title">{{ page.title }}</h1>
14
+ {%- if page.description %}
15
+ <p class="mt-detail-lead">{{ page.description }}</p>
16
+ {%- endif %}
17
+ </header>
18
+ {%- include modootoday/detail/cover.html %}
19
+ {%- include modootoday/detail/facts.html kind=_k %}
20
+ {%- if page.record %}{% include modootoday/records/lookup.html %}{% include modootoday/records/facts.html %}{% endif %}
21
+ {%- if _k == "episode" and page.audio %}
22
+ <figure class="mt-detail-media"><audio controls preload="none" src="{{ page.audio | relative_url }}" aria-label="{{ mt_t_layouts_listen }}: {{ page.title | escape }}"></audio>{% if page.transcript %}<figcaption><a href="{{ page.transcript | relative_url }}">{{ mt_t_layouts_transcript }}</a></figcaption>{% endif %}</figure>
23
+ {%- endif %}
24
+ <div class="mt-detail-body">{%- if page.record %}{% include modootoday/records/body.html %}{% endif %}
25
+ {{ content }}
26
+ </div>
27
+ {%- include modootoday/detail/cta.html kind=_k %}
28
+ </article>