jekyll-theme-modootoday 1.5.0 → 1.7.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 (203) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +103 -1
  3. data/README.ja.md +150 -0
  4. data/README.ko.md +20 -17
  5. data/README.md +19 -16
  6. data/RULES.md +8 -2
  7. data/_includes/modootoday/assets/build.html +6 -0
  8. data/_includes/modootoday/assets/registry.html +21 -7
  9. data/_includes/modootoday/assets/scripts.html +5 -0
  10. data/_includes/modootoday/assets/sheets.html +9 -3
  11. data/_includes/modootoday/assets/site-scripts.html +8 -3
  12. data/_includes/modootoday/blog/subscribe.html +5 -0
  13. data/_includes/modootoday/brand/icon.html +2 -1
  14. data/_includes/modootoday/chart/figure.html +4 -0
  15. data/_includes/modootoday/chart/table.html +14 -0
  16. data/_includes/modootoday/chrome/banner-text.html +16 -0
  17. data/_includes/modootoday/chrome/banner.html +5 -0
  18. data/_includes/modootoday/chrome/showcase.html +13 -0
  19. data/_includes/modootoday/config.html +9 -5
  20. data/_includes/modootoday/detail/cta.html +1 -1
  21. data/_includes/modootoday/detail/facts.html +1 -0
  22. data/_includes/modootoday/detail/jsonld.html +6 -1
  23. data/_includes/modootoday/detail/page.html +1 -0
  24. data/_includes/modootoday/detail/tickets.html +6 -0
  25. data/_includes/modootoday/docs-extra/feed-entries.html +24 -0
  26. data/_includes/modootoday/docs-extra/head.html +7 -1
  27. data/_includes/modootoday/head-meta.html +25 -14
  28. data/_includes/modootoday/i18n/ar.html +1 -1
  29. data/_includes/modootoday/i18n/de.html +1 -1
  30. data/_includes/modootoday/i18n/el.html +1 -1
  31. data/_includes/modootoday/i18n/es.html +1 -1
  32. data/_includes/modootoday/i18n/fa.html +1 -1
  33. data/_includes/modootoday/i18n/fr.html +1 -1
  34. data/_includes/modootoday/i18n/id.html +1 -1
  35. data/_includes/modootoday/i18n/it.html +1 -1
  36. data/_includes/modootoday/i18n/ja.html +1 -1
  37. data/_includes/modootoday/i18n/ko.html +1 -1
  38. data/_includes/modootoday/i18n/ml.html +1 -1
  39. data/_includes/modootoday/i18n/pl.html +1 -1
  40. data/_includes/modootoday/i18n/pt-BR.html +1 -1
  41. data/_includes/modootoday/i18n/ro.html +1 -1
  42. data/_includes/modootoday/i18n/ru.html +1 -1
  43. data/_includes/modootoday/i18n/th.html +1 -1
  44. data/_includes/modootoday/i18n/tr.html +1 -1
  45. data/_includes/modootoday/i18n/uk.html +1 -1
  46. data/_includes/modootoday/i18n/ur-Latn.html +1 -1
  47. data/_includes/modootoday/i18n/vi.html +1 -1
  48. data/_includes/modootoday/i18n/zh-CN.html +1 -1
  49. data/_includes/modootoday/i18n/zh-TW.html +1 -1
  50. data/_includes/modootoday/i18n.html +176 -136
  51. data/_includes/modootoday/jsonld/graph.html +1 -1
  52. data/_includes/modootoday/links/content.html +6 -2
  53. data/_includes/modootoday/markdown/anchors.html +26 -0
  54. data/_includes/modootoday/markdown/c/chart.html +24 -0
  55. data/_includes/modootoday/markdown/c/install.html +6 -0
  56. data/_includes/modootoday/markdown/c/widget.html +22 -0
  57. data/_includes/modootoday/markdown/components.html +4 -2
  58. data/_includes/modootoday/markdown/figures/diagrams.html +32 -0
  59. data/_includes/modootoday/markdown/figures/math.html +34 -0
  60. data/_includes/modootoday/markdown/figures.html +8 -0
  61. data/_includes/modootoday/markdown/inline/chart.html +30 -0
  62. data/_includes/modootoday/markdown/inline/widget.html +19 -0
  63. data/_includes/modootoday/markdown/inline.html +5 -1
  64. data/_includes/modootoday/markdown/sections.html +10 -4
  65. data/_includes/modootoday/meta/feed-url.html +13 -0
  66. data/_includes/modootoday/meta/feedback.html +14 -0
  67. data/_includes/modootoday/meta/feeds.html +14 -0
  68. data/_includes/modootoday/meta/github.html +15 -0
  69. data/_includes/modootoday/meta/og-image.html +15 -0
  70. data/_includes/modootoday/meta/releases-feed.html +5 -0
  71. data/_includes/modootoday/page-meta.html +22 -4
  72. data/_includes/modootoday/pwa/head.html +7 -0
  73. data/_includes/modootoday/pwa/manifest.json +54 -0
  74. data/_includes/modootoday/pwa/offline-assets.html +10 -0
  75. data/_includes/modootoday/pwa/precache.html +21 -0
  76. data/_includes/modootoday/pwa/sw.js +36 -0
  77. data/_includes/modootoday/render/chart.html +15 -0
  78. data/_includes/modootoday/render/math.html +21 -5
  79. data/_includes/modootoday/render/mermaid.html +4 -3
  80. data/_includes/modootoday/site/dir.html +5 -0
  81. data/_includes/modootoday/stylesheets.html +5 -1
  82. data/_includes/modootoday/t.html +1 -1
  83. data/_includes/modootoday/theme-color.html +1 -0
  84. data/_includes/modootoday/version.html +1 -1
  85. data/_layouts/archive.html +2 -1
  86. data/_layouts/author.html +1 -0
  87. data/_layouts/blog.html +1 -0
  88. data/_layouts/default.html +12 -9
  89. data/_layouts/doc.html +1 -0
  90. data/_layouts/feed.html +14 -5
  91. data/_layouts/pages/offline.html +14 -0
  92. data/_layouts/redirect.html +1 -2
  93. data/_sass/modootoday/blog/_cards.scss +2 -1
  94. data/_sass/modootoday/components/chrome/_showcase.scss +40 -0
  95. data/_sass/modootoday/components/content/_anchor.scss +9 -0
  96. data/_sass/modootoday/components/data/_chart.scss +25 -0
  97. data/_sass/modootoday/components/doc/_sidebar.scss +3 -1
  98. data/_sass/modootoday/components/doc/_toc.scss +4 -0
  99. data/_sass/modootoday/components/figure/_figure-svg.scss +2 -0
  100. data/_sass/modootoday/components/media/_diagram.scss +16 -0
  101. data/_sass/modootoday/components/media/_widget.scss +7 -0
  102. data/_sass/modootoday/components/section/showcase/_install.scss +14 -0
  103. data/_sass/modootoday/components/section/structure/_timeline.scss +7 -3
  104. data/_sass/modootoday/layout/_page-meta.scss +5 -1
  105. data/_sass/modootoday/print/_sheet.scss +17 -0
  106. data/_sass/modootoday/pwa/_toast.scss +16 -0
  107. data/_sass/modootoday.scss +1 -0
  108. data/assets/css/modootoday/chrome/print.scss +5 -0
  109. data/assets/css/modootoday/chrome/showcase.scss +8 -0
  110. data/assets/css/modootoday/chrome/toast.scss +8 -0
  111. data/assets/css/modootoday/content/anchor.scss +7 -0
  112. data/assets/css/modootoday/data/chart.scss +7 -0
  113. data/assets/css/modootoday/media/widget.scss +7 -0
  114. data/assets/css/modootoday/showcase/install.scss +7 -0
  115. data/assets/js/modootoday/chrome/showcase.js +15 -0
  116. data/assets/js/modootoday/chrome/theme-init.js +3 -2
  117. data/assets/js/modootoday/content/scroll-region.js +68 -11
  118. data/assets/js/modootoday/data/chart-table.js +16 -0
  119. data/assets/js/modootoday/data/chart.js +106 -0
  120. data/assets/js/modootoday/pwa/install.js +60 -0
  121. data/assets/js/modootoday/pwa/offline.js +33 -0
  122. data/assets/js/modootoday/pwa/register.js +79 -0
  123. data/assets/js/modootoday/pwa/update-toast.js +75 -0
  124. data/assets/js/modootoday/pwa/worker.js +150 -0
  125. data/assets/js/modootoday/structure/toc-spy.js +121 -0
  126. data/assets/modootoday/icon-192.png +0 -0
  127. data/assets/modootoday/icon-512.png +0 -0
  128. data/assets/modootoday/icon-maskable-512.png +0 -0
  129. data/i18n/ar.yml +33 -3
  130. data/i18n/de.yml +33 -3
  131. data/i18n/el.yml +33 -3
  132. data/i18n/en.yml +33 -3
  133. data/i18n/es.yml +33 -3
  134. data/i18n/fa.yml +33 -3
  135. data/i18n/fr.yml +33 -3
  136. data/i18n/glossary.yml +21 -3
  137. data/i18n/id.yml +33 -3
  138. data/i18n/it.yml +33 -3
  139. data/i18n/ja.yml +33 -3
  140. data/i18n/ko.yml +33 -3
  141. data/i18n/ml.yml +33 -3
  142. data/i18n/pl.yml +33 -3
  143. data/i18n/pt-BR.yml +33 -3
  144. data/i18n/ro.yml +33 -3
  145. data/i18n/ru.yml +33 -3
  146. data/i18n/th.yml +33 -3
  147. data/i18n/tr.yml +33 -3
  148. data/i18n/uk.yml +33 -3
  149. data/i18n/ur-Latn.yml +33 -3
  150. data/i18n/vi.yml +33 -3
  151. data/i18n/zh-CN.yml +33 -3
  152. data/i18n/zh-TW.yml +33 -3
  153. data/lib/modootoday/check/build/build_output.rb +13 -4
  154. data/lib/modootoday/check/build/feeds.rb +63 -0
  155. data/lib/modootoday/check/build/links.rb +74 -0
  156. data/lib/modootoday/check/build/pwa/manifest.rb +61 -0
  157. data/lib/modootoday/check/build/pwa/precache.rb +38 -0
  158. data/lib/modootoday/check/build/pwa/worker.rb +55 -0
  159. data/lib/modootoday/check/build/pwa.rb +55 -0
  160. data/lib/modootoday/check/build/showcase.rb +27 -0
  161. data/lib/modootoday/check/build/structured_data/nested.rb +29 -0
  162. data/lib/modootoday/check/build/structured_data.rb +6 -3
  163. data/lib/modootoday/check/build/{aliases.rb → stubs/aliases.rb} +1 -1
  164. data/lib/modootoday/check/build/{records.rb → stubs/records.rb} +1 -1
  165. data/lib/modootoday/check/build/{twins.rb → stubs/twins.rb} +1 -1
  166. data/lib/modootoday/check/build/third_party.rb +1 -1
  167. data/lib/modootoday/check/cli.rb +9 -3
  168. data/lib/modootoday/check/config/keys/appearance/brand.rb +28 -0
  169. data/lib/modootoday/check/config/keys/appearance/chrome.rb +11 -1
  170. data/lib/modootoday/check/config/keys/appearance/showcase.rb +57 -0
  171. data/lib/modootoday/check/config/keys/appearance/switches.rb +11 -1
  172. data/lib/modootoday/check/config/keys/figures/chart.rb +16 -0
  173. data/lib/modootoday/check/config/keys/figures/diagrams.rb +31 -0
  174. data/lib/modootoday/check/config/keys/figures/renderers.rb +10 -0
  175. data/lib/modootoday/check/config/keys/pages/blog.rb +11 -0
  176. data/lib/modootoday/check/config/keys/pages/content.rb +11 -0
  177. data/lib/modootoday/check/config/keys/pages/edit_url.rb +17 -2
  178. data/lib/modootoday/check/config/keys/pages/feedback.rb +24 -0
  179. data/lib/modootoday/check/config/keys/pages/languages.rb +2 -0
  180. data/lib/modootoday/check/config/keys/serving/delivery.rb +8 -1
  181. data/lib/modootoday/check/config/keys/serving/pwa.rb +118 -0
  182. data/lib/modootoday/check/config/keys.rb +9 -1
  183. data/lib/modootoday/check/config/renderers.rb +36 -12
  184. data/lib/modootoday/check/config/site_config.rb +2 -1
  185. data/lib/modootoday/check/config/validate.rb +4 -1
  186. data/lib/modootoday/check/layouts/detail.rb +24 -6
  187. data/lib/modootoday/check/layouts/directory.rb +1 -1
  188. data/lib/modootoday/check/page/a11y/new_window.rb +4 -2
  189. data/lib/modootoday/check/page/chart.rb +91 -0
  190. data/lib/modootoday/check/page/component_rules.rb +5 -1
  191. data/lib/modootoday/check/page/figures/diagrams.rb +72 -0
  192. data/lib/modootoday/check/page/figures/freshness.rb +55 -0
  193. data/lib/modootoday/check/page/figures/math_static.rb +88 -0
  194. data/lib/modootoday/check/page/math_notation.rb +1 -1
  195. data/lib/modootoday/check/page/pages.rb +22 -0
  196. data/lib/modootoday/check/page/widget.rb +66 -0
  197. data/lib/modootoday/check.rb +7 -3
  198. data/lib/modootoday/figures.rb +88 -0
  199. data/lib/modootoday/markdown.rb +3 -0
  200. data/lib/modootoday/stubs/cli.rb +5 -4
  201. data/lib/modootoday/stubs/pwa.rb +57 -0
  202. data/lib/modootoday/stubs.rb +3 -2
  203. metadata +88 -5
@@ -0,0 +1,30 @@
1
+ {%- comment -%}md-components v1 — `chart:<type> [stacked] [horizontal]` alone in a paragraph right before a table → figure.mt-chart
2
+ (chart/figure.html) around that table; an emphasis-only paragraph right after the table is its figcaption. Called by
3
+ markdown/inline.html when modootoday.chart.enabled; anything else stays a code span, and modootoday-check reports it.{%- endcomment -%}
4
+ {%- assign _mch_x = include.html -%}
5
+ {%- assign _mch_types = "bar,line,area,pie,doughnut" | split: "," -%}
6
+ {%- assign _mch_opts = "stacked,horizontal" | split: "," -%}
7
+ {%- assign _mch_ops = '<code class="language-plaintext highlighter-rouge">|<code>' | split: "|" -%}
8
+ {%- for _mch_o in _mch_ops -%}
9
+ {%- assign _mch_key = "<p>" | append: _mch_o | append: "chart:" -%}
10
+ {%- if _mch_x contains _mch_key -%}{%- assign _mch_bits = _mch_x | split: _mch_key -%}
11
+ {%- capture _mch_x -%}{{ _mch_bits[0] }}{%- for _mch_b in _mch_bits offset: 1 -%}
12
+ {%- assign _mch_v = _mch_b | split: "</code></p>" | first -%}
13
+ {%- assign _mch_r = _mch_b | remove_first: _mch_v | remove_first: "</code></p>" | lstrip -%}
14
+ {%- assign _mch_w = _mch_v | split: " " -%}{%- assign _mch_ty = _mch_w | first -%}{%- assign _mch_ok = false -%}
15
+ {%- if _mch_types contains _mch_ty -%}{%- assign _mch_ok = true -%}{%- endif -%}
16
+ {%- for _mch_q in _mch_w offset: 1 -%}{%- unless _mch_opts contains _mch_q -%}{%- assign _mch_ok = false -%}{%- endunless -%}{%- endfor -%}
17
+ {%- assign _mch_h = _mch_r | slice: 0, 6 -%}
18
+ {%- if _mch_v contains "<" or _mch_v == _mch_b or _mch_h != "<table" or _mch_ok == false -%}{{ _mch_key }}{{ _mch_b }}
19
+ {%- else -%}{%- assign _mch_t = _mch_r | split: "</table>" | first | append: "</table>" -%}
20
+ {%- assign _mch_a = _mch_r | remove_first: _mch_t | lstrip -%}{%- assign _mch_cap = "" -%}
21
+ {%- assign _mch_h = _mch_a | slice: 0, 7 -%}
22
+ {%- if _mch_h == "<p><em>" -%}{%- assign _mch_e = _mch_a | remove_first: "<p><em>" -%}{%- assign _mch_cap = _mch_e | split: "</em></p>" | first -%}
23
+ {%- if _mch_cap contains "<p" or _mch_cap contains "</em>" or _mch_cap == _mch_e -%}{%- assign _mch_cap = "" -%}
24
+ {%- else -%}{%- assign _mch_a = _mch_a | remove_first: "<p><em>" | remove_first: _mch_cap | remove_first: "</em></p>" -%}{%- endif -%}
25
+ {%- endif -%}
26
+ {%- assign _mch_q = _mch_v | remove_first: _mch_ty | strip -%}
27
+ {% include modootoday/chart/figure.html table=_mch_t caption=_mch_cap type=_mch_ty opts=_mch_q %}{{ _mch_a }}
28
+ {%- endif -%}{%- endfor -%}{%- endcapture -%}{%- endif -%}
29
+ {%- endfor -%}
30
+ {{ _mch_x }}
@@ -0,0 +1,19 @@
1
+ {%- comment -%}md-components v1 — `widget:<element>` alone in a paragraph, where <element> is the element: of a modootoday.scripts
2
+ entry → that custom element with class mt-widget, data-props from front matter widget_props.<element> and the
3
+ widget.fallback sentence as its light-DOM fallback. Called by markdown/inline.html; other names stay code spans.{%- endcomment -%}
4
+ {%- assign _miw_x = include.html -%}{%- assign _miw_els = "|" -%}
5
+ {%- for _miw_s in site.modootoday.scripts -%}{%- assign _miw_el = _miw_s[1].element | append: "" -%}
6
+ {%- if _miw_el contains "-" -%}{%- assign _miw_els = _miw_els | append: _miw_el | append: "|" -%}{%- endif -%}{%- endfor -%}
7
+ {%- assign _miw_ops = '<code class="language-plaintext highlighter-rouge">|<code>' | split: "|" -%}
8
+ {%- for _miw_o in _miw_ops -%}
9
+ {%- assign _miw_key = "<p>" | append: _miw_o | append: "widget:" -%}
10
+ {%- if _miw_x contains _miw_key -%}{%- assign _miw_bits = _miw_x | split: _miw_key -%}
11
+ {%- capture _miw_x -%}{{ _miw_bits[0] }}{%- for _miw_b in _miw_bits offset: 1 -%}
12
+ {%- assign _miw_v = _miw_b | split: "</code></p>" | first -%}{%- assign _miw_k = "|" | append: _miw_v | append: "|" -%}
13
+ {%- assign _miw_ok = false -%}{%- if _miw_els contains _miw_k -%}{%- assign _miw_ok = true -%}{%- endif -%}
14
+ {%- if _miw_v contains "|" or _miw_v == _miw_b or _miw_ok == false -%}{{ _miw_key }}{{ _miw_b }}
15
+ {%- else -%}{%- assign _miw_p = page.widget_props[_miw_v] -%}
16
+ <{{ _miw_v }} class="mt-widget"{% if _miw_p %} data-props="{{ _miw_p | jsonify | escape }}"{% endif %}><div class="mt-widget-fallback"><p>{{ mt_t_widget_fallback }}</p></div></{{ _miw_v }}>{{ _miw_b | remove_first: _miw_v | remove_first: "</code></p>" }}
17
+ {%- endif -%}{%- endfor -%}{%- endcapture -%}{%- endif -%}
18
+ {%- endfor -%}
19
+ {{ _miw_x }}
@@ -3,8 +3,12 @@
3
3
  `progress:<0-100>` → span.mt-progress > progress[max=100] labelled progress.label, plus "N%" as text.
4
4
  `embed:https://… Title` alone in a paragraph → div.mt-embed > iframe (lazy; title = the words after the URL,
5
5
  else embed.title). `loading:spinner|bar` and `skeleton:text|card|image|avatar|row` → role=status
6
- placeholders labelled loading.label (optional loading sheet). Footnote back-links get aria-label footnote.back. modootoday-check validates the values.{%- endcomment -%}
6
+ placeholders labelled loading.label (optional loading sheet). Footnote back-links get aria-label footnote.back. modootoday-check validates the values.
7
+ With modootoday.chart.enabled, `chart:<type>` alone before a table → figure.mt-chart (inline/chart.html).
8
+ `widget:<element>` alone in a paragraph, for an element: of modootoday.scripts → that custom element (inline/widget.html).{%- endcomment -%}
7
9
  {%- assign _x = include.html -%}
10
+ {%- if site.modootoday.chart.enabled == true and mt_components contains "chart" and _x contains "chart:" -%}{%- capture _x %}{% include modootoday/markdown/inline/chart.html html=_x %}{% endcapture -%}{%- endif -%}
11
+ {%- if site.modootoday.scripts and mt_components contains "widget" and _x contains "widget:" -%}{%- capture _x %}{% include modootoday/markdown/inline/widget.html html=_x %}{% endcapture -%}{%- endif -%}
8
12
  {%- assign _ops = '<code class="language-plaintext highlighter-rouge">|<code>' | split: "|" -%}
9
13
  {%- for _o in _ops -%}
10
14
  {%- assign _key = "<p>" | append: _o | append: "file:" -%}
@@ -5,7 +5,7 @@ No sections: whole body in one div.mt-prose (no implicit split).
5
5
  With sections: part 0 (before the first h2) is section.mt-hero; item i maps to the i-th top-level h2.
6
6
  Only top-level h2 split: kramdown prints them at column 0 ("\n<h2 "), nested ones (quote, list,
7
7
  alert) are indented and stay inside their section. modootoday-check rejects nested/setext/indented ##.
8
- Item: "name" or {c: component, name: key, ...params}. c: tabs → data-tabs, c: cta → (on the section, or on its [data-mt-result] element when it holds one, so a showcase box only frames the result).
8
+ Item: "name" or {c: component, name: key, ...params}. c: tabs → data-tabs, c: cta → (on the section, or on its [data-mt-result] element when it holds one, so a showcase box only frames the result; c: widget puts its element in that element the same way).
9
9
  visual: <name> on an item (or include.hero.visual for the hero) appends the site's
10
10
  _includes/sections/<name>.html at the end of that section, called with section=<item> (hero=<hero>); every other key
11
11
  on the item (e.g. scene: 2) reaches the include as include.section.<key>.
@@ -20,13 +20,15 @@ the section's top end corner (section gets .mt-has-decor); for ornaments only, n
20
20
  bleed: true (item or hero) adds .mt-bleed: a full-width background band (--mt-bleed-bg) while the content keeps its column;
21
21
  bleed: wide also adds .mt-bleed-wide, which widens the content box up to the container. No wrappers; bleed sheet.
22
22
  The hero's first p after the h1 gets .mt-hero-lead; hero checks: true adds .mt-hero-checks (its first ul is a ✓ row, lists sheet).
23
- site.modootoday.lists (link_chips, titled_items) runs markdown/lists.html on the hero, plain sections and section-less pages.
23
+ site.modootoday.lists (link_chips, titled_items) runs markdown/lists.html on the hero, plain sections and section-less pages;
24
+ modootoday.heading_anchors runs markdown/anchors.html on the same parts, after the lists (never on c: sections).
24
25
  filter: true | {facet: <column>} on an item (or include.filter, the page's filter:, on a page without sections) adds
25
26
  data-mt-filter (data-facet) and the hidden controls of filter/controls.html; data/filter.js filters the first list or table.
26
27
  modootoday-check fails when the item count differs from the h2 count.
27
28
  {%- endcomment -%}
28
29
  {%- assign _lang = include.lang | default: site.lang | default: "en" -%}
29
30
  {%- include modootoday/i18n.html lang=_lang -%}{%- assign _tl = mt_t_tabs_label -%}
31
+ {%- assign _anc = false -%}{%- if site.modootoday.heading_anchors == true and mt_components contains "anchor" -%}{%- assign _anc = true -%}{%- endif -%}
30
32
  {%- if include.sections -%}
31
33
  {%- assign _nl = "
32
34
  " -%}
@@ -37,8 +39,9 @@ modootoday-check fails when the item count differs from the h2 count.
37
39
  {%- assign _main = _fparts[0] -%}{%- assign _notes = "" -%}
38
40
  {%- if _fparts.size > 1 -%}{%- assign _notes = include.content | remove_first: _main | strip -%}{%- endif -%}
39
41
  {%- assign _parts = _main | prepend: _nl | split: _sep -%}
40
- {%- assign mt_c_transforms = "|filetree|linkcards|details|faq|params|quote|gallery|pricing|subscribe|" -%}
42
+ {%- assign mt_c_transforms = "|filetree|linkcards|details|faq|params|quote|gallery|pricing|subscribe|chart|widget|install|" -%}
41
43
  {%- assign _p0 = _parts[0] -%}{%- if site.modootoday.lists -%}{%- capture _p0 %}{% include modootoday/markdown/lists.html html=_p0 %}{% endcapture -%}{%- endif -%}
44
+ {%- if _anc -%}{%- capture _p0 %}{% include modootoday/markdown/anchors.html html=_p0 %}{% endcapture -%}{%- endif -%}
42
45
  {%- capture _hero %}{% include modootoday/actions.html html=_p0 %}{% endcapture -%}{%- assign _hl = "</h1>" | append: _nl | append: _nl -%}{%- assign _hlp = _hl | append: "<p>" -%}{%- assign _hlc = _hl | append: '<p class="mt-hero-lead">' -%}{%- assign _hero = _hero | replace_first: _hlp, _hlc -%}
43
46
  <section class="mt-hero{% if include.hero.checks == true %} mt-hero-checks{% endif %}{% if include.hero.decor %} mt-has-decor{% endif %}{% if include.hero.reveal == true %} mt-reveal{% endif %}{% if include.hero.c == 'split' %} mt-c-split{% if include.hero.side == 'start' %} mt-split-start{% endif %}{% if include.hero.ratio == '5:7' %} mt-split-5-7{% endif %}{% endif %}{% if include.hero.bleed %} mt-bleed{% if include.hero.bleed == 'wide' %} mt-bleed-wide{% endif %}{% endif %}">{% if include.hero.c == 'split' %}{% include modootoday/markdown/split.html body=_hero s=include.hero hero=true %}{% else %}{{ _hero }}{% include modootoday/markdown/visual.html s=include.hero hero=true %}{% endif %}{% if include.hero.decor %}<div class="mt-section-decor" aria-hidden="true">{% include sections/{{ include.hero.decor }}.html section=include.hero %}</div>{% endif %}</section>
44
47
  {%- for _p in _parts offset:1 -%}
@@ -46,6 +49,7 @@ modootoday-check fails when the item count differs from the h2 count.
46
49
  {%- if _s.name or _s.c -%}{%- assign _n = _s.name -%}{%- assign _cc = _s.c -%}{%- else -%}{%- assign _n = _s -%}{%- assign _cc = nil -%}{%- endif -%}
47
50
  {%- assign _body = _p -%}
48
51
  {%- if site.modootoday.lists and _cc == nil -%}{%- capture _body %}{% include modootoday/markdown/lists.html html=_p %}{% endcapture -%}{%- endif -%}
52
+ {%- if _anc and _cc == nil -%}{%- assign _body = "<h2 " | append: _body -%}{%- capture _body %}{% include modootoday/markdown/anchors.html html=_body %}{% endcapture -%}{%- assign _body = _body | remove_first: "<h2 " -%}{%- endif -%}
49
53
  {%- if _cc == 'cta' -%}{%- capture _body %}{% include modootoday/actions.html html=_p %}{% endcapture -%}{%- endif -%}
50
54
  {%- if _cc == 'features' -%}{%- assign _body = _body | replace: "</strong> — ", "</strong> " | replace: "</strong> – ", "</strong> " | replace: "</strong> - ", "</strong> " -%}{%- endif -%}
51
55
  {%- comment -%}features: a card that starts with **Title**: or **Title**: drops that one separator (the title is its own line); later colons and other bold text stay.{%- endcomment -%}
@@ -67,5 +71,7 @@ modootoday-check fails when the item count differs from the h2 count.
67
71
  {%- else -%}
68
72
  {%- capture _fa %}{% if include.filter %} data-mt-filter{% if include.filter.facet %} data-facet="{{ include.filter.facet }}"{% endif %}{% endif %}{% endcapture -%}
69
73
  {%- capture _fc %}{% if include.filter %}{% include modootoday/filter/controls.html %}{% endif %}{% endcapture -%}
70
- {%- if site.modootoday.lists -%}<div class="mt-prose"{{ _fa }}>{% include modootoday/markdown/lists.html html=include.content %}{{ _fc }}</div>{%- else -%}<div class="mt-prose"{{ _fa }}>{{ include.content }}{{ _fc }}</div>{%- endif -%}
74
+ {%- assign _pb = include.content -%}{%- if site.modootoday.lists -%}{%- capture _pb %}{% include modootoday/markdown/lists.html html=_pb %}{% endcapture -%}{%- endif -%}
75
+ {%- if _anc -%}{%- capture _pb %}{% include modootoday/markdown/anchors.html html=_pb %}{% endcapture -%}{%- endif -%}
76
+ <div class="mt-prose"{{ _fa }}>{{ _pb }}{{ _fc }}</div>
71
77
  {%- endif -%}
@@ -0,0 +1,13 @@
1
+ {%- comment -%}Sets mt_site_feed (the language's Atom feed when modootoday.feed is true, else "") and mt_feed_url (this
2
+ page's own feed, else ""), without a pass over site.pages. Front matter feed: a site path (kept only when that page
3
+ exists; modootoday-check reports one that does not) or false. Without it a blog index with no category or tag
4
+ filter uses mt_site_feed.{%- endcomment -%}
5
+ {%- assign mt_site_feed = "" -%}{%- assign mt_feed_url = "" -%}
6
+ {%- if site.modootoday.feed == true -%}
7
+ {%- assign mt_site_feed = "/feed.xml" -%}{%- assign _mt_fd = site.lang | default: "en" -%}{%- assign _mt_fl = page.lang | default: _mt_fd -%}
8
+ {%- if _mt_fl != _mt_fd -%}{%- assign _mt_lf = "/" | append: _mt_fl | append: "/feed.xml" -%}{%- include modootoday/lookup/urls.html -%}{%- assign _mt_lfk = "|" | append: _mt_lf | append: "|" -%}{%- if mt_page_urls contains _mt_lfk -%}{%- assign mt_site_feed = _mt_lf -%}{%- endif -%}{%- endif -%}
9
+ {%- endif -%}
10
+ {%- if page.feed == false -%}{%- assign mt_feed_url = "" -%}
11
+ {%- elsif page.feed -%}{%- include modootoday/lookup/urls.html -%}{%- assign _mt_pfk = "|" | append: page.feed | append: "|" -%}{%- if mt_page_urls contains _mt_pfk -%}{%- assign mt_feed_url = page.feed -%}{%- endif -%}
12
+ {%- elsif page.layout == "blog" -%}{%- unless page.category or page.tag -%}{%- assign mt_feed_url = mt_site_feed -%}{%- endunless -%}
13
+ {%- endif -%}
@@ -0,0 +1,14 @@
1
+ {%- comment -%}Page feedback links (modootoday.feedback), resolved at build time with no request: issues: auto (the repository from
2
+ meta/github.html) | an issues URL | false, helpful: true (two prefilled issue links), discuss: a URL, labels: a list added
3
+ to the prefilled issues. Front matter feedback: false turns the row off for one page. Sets mt_fb_issues (the issues URL or
4
+ ""), mt_fb_helpful, mt_fb_discuss, mt_fb_labels and mt_fb_on.{%- endcomment -%}
5
+ {%- assign _fb = site.modootoday.feedback -%}
6
+ {%- assign mt_fb_issues = "" -%}{%- assign mt_fb_discuss = "" -%}{%- assign mt_fb_labels = "" -%}{%- assign mt_fb_helpful = false -%}{%- assign mt_fb_on = false -%}
7
+ {%- if _fb and page.feedback != false -%}
8
+ {%- if _fb.issues == "auto" -%}{%- include modootoday/meta/github.html -%}{%- if mt_gh_repo != "" -%}{%- assign mt_fb_issues = mt_gh_repo | append: "/issues" -%}{%- endif -%}
9
+ {%- elsif _fb.issues -%}{%- assign mt_fb_issues = _fb.issues -%}{%- endif -%}
10
+ {%- if _fb.labels -%}{%- assign mt_fb_labels = _fb.labels | join: "," -%}{%- endif -%}
11
+ {%- if _fb.helpful == true and mt_fb_issues != "" -%}{%- assign mt_fb_helpful = true -%}{%- endif -%}
12
+ {%- assign mt_fb_discuss = _fb.discuss | default: "" -%}
13
+ {%- if mt_fb_issues != "" or mt_fb_discuss != "" -%}{%- assign mt_fb_on = true -%}{%- endif -%}
14
+ {%- endif -%}
@@ -0,0 +1,14 @@
1
+ {%- comment -%}Atom alternates in the head: the site feed (modootoday.feed: true, per language), the page's own feed
2
+ (meta/feed-url.html) when it differs, titled with the page, and with releases_feed: (true or a URL) GitHub's
3
+ releases.atom (meta/releases-feed.html).{%- endcomment -%}
4
+ {%- include modootoday/meta/feed-url.html -%}
5
+ {%- if mt_site_feed != "" %}
6
+ <link rel="alternate" type="application/atom+xml" title="{{ site.title | escape }}" href="{{ mt_site_feed | relative_url }}">
7
+ {%- endif -%}
8
+ {%- if mt_feed_url != "" and mt_feed_url != mt_site_feed %}
9
+ <link rel="alternate" type="application/atom+xml" title="{{ site.title | escape }} – {{ page.title | escape }}" href="{{ mt_feed_url | relative_url }}">
10
+ {%- endif -%}
11
+ {%- include modootoday/meta/releases-feed.html -%}
12
+ {%- if mt_releases_feed != "" %}
13
+ <link rel="alternate" type="application/atom+xml" title="GitHub releases" href="{{ mt_releases_feed }}">
14
+ {%- endif -%}
@@ -0,0 +1,15 @@
1
+ {%- comment -%}GitHub-derived URLs, the one owner (Liquid only). site.github comes from jekyll-github-metadata, which GitHub Pages
2
+ runs; elsewhere a github: map in _config.yml stands in. Read only when edit_url: auto, build_link, feedback.issues: auto or releases_feed: true asks, since the
3
+ plugin raises without a repository name. Sets mt_gh_repo (repository URL), mt_gh_edit (edit prefix ending in /, from the
4
+ Pages source branch and folder) and mt_gh_rev (the commit the site was built from); each is "" when unknown.{%- endcomment -%}
5
+ {%- assign mt_gh_repo = "" -%}{%- assign mt_gh_edit = "" -%}{%- assign mt_gh_rev = "" -%}
6
+ {%- if site.modootoday.edit_url == "auto" or site.modootoday.build_link == true or site.modootoday.feedback.issues == "auto" or page.releases_feed == true -%}
7
+ {%- assign mt_gh_repo = site.github.repository_url | default: "" -%}
8
+ {%- assign mt_gh_rev = site.github.build_revision | default: "" -%}
9
+ {%- assign _gh_branch = site.github.source.branch | default: "" -%}
10
+ {%- if mt_gh_repo != "" and _gh_branch != "" -%}
11
+ {%- assign _gh_path = site.github.source.path | default: "/" | remove_first: "/" -%}
12
+ {%- if _gh_path != "" -%}{%- assign _gh_path = _gh_path | append: "/" -%}{%- endif -%}
13
+ {%- assign mt_gh_edit = mt_gh_repo | append: "/edit/" | append: _gh_branch | append: "/" | append: _gh_path -%}
14
+ {%- endif -%}
15
+ {%- endif -%}
@@ -0,0 +1,15 @@
1
+ {%- comment -%}The page's share image, the one owner for the Open Graph tags (head-meta.html) and JSON-LD (jsonld/graph.html), which
2
+ the structured-data check compares. Order: page.image (a path or {path, alt, width, height}), the hero image, the hero
3
+ poster, then modootoday.og_image (a path or the same map). Alt: page.image.alt, then image_alt, then the chosen image's alt.
4
+ Sets mt_og_img (a path or URL, "" when none), mt_og_alt, mt_og_w and mt_og_h ("" when unknown).{%- endcomment -%}
5
+ {%- assign mt_og_img = "" -%}{%- assign mt_og_alt = "" -%}{%- assign mt_og_w = "" -%}{%- assign mt_og_h = "" -%}
6
+ {%- assign _og = nil -%}{%- assign _og_page = false -%}
7
+ {%- if page.image -%}{%- assign _og = page.image -%}{%- assign _og_page = true -%}
8
+ {%- elsif page.hero.image -%}{%- assign _og = page.hero.image -%}
9
+ {%- elsif page.hero.poster -%}{%- assign _og = page.hero.poster -%}
10
+ {%- elsif site.modootoday.og_image -%}{%- assign _og = site.modootoday.og_image -%}{%- endif -%}
11
+ {%- if _og -%}
12
+ {%- assign mt_og_img = _og.path | default: _og -%}
13
+ {%- assign mt_og_w = _og.width | default: "" -%}{%- assign mt_og_h = _og.height | default: "" -%}
14
+ {%- if _og_page -%}{%- assign mt_og_alt = page.image.alt | default: page.image_alt | default: "" -%}{%- else -%}{%- assign mt_og_alt = _og.alt | default: "" -%}{%- endif -%}
15
+ {%- endif -%}
@@ -0,0 +1,5 @@
1
+ {%- comment -%}Sets mt_releases_feed: GitHub's releases.atom for front matter releases_feed: true (the repository from
2
+ meta/github.html, no API call) or the URL given; "" otherwise.{%- endcomment -%}
3
+ {%- assign mt_releases_feed = "" -%}
4
+ {%- if page.releases_feed == true -%}{%- include modootoday/meta/github.html -%}{%- if mt_gh_repo != "" -%}{%- assign mt_releases_feed = mt_gh_repo | append: "/releases.atom" -%}{%- endif -%}
5
+ {%- elsif page.releases_feed -%}{%- assign mt_releases_feed = page.releases_feed -%}{%- endif -%}
@@ -1,16 +1,34 @@
1
1
  {%- comment -%}
2
2
  Optional page footer line (needs modootoday/config.html first).
3
- site.modootoday.edit_url prefix joined with page.path, e.g. https://github.com/OWNER/REPO/edit/main/docs/
3
+ site.modootoday.edit_url prefix joined with page.path, e.g. https://github.com/OWNER/REPO/edit/main/docs/,
4
+ or auto: the repository and folder GitHub Pages builds from (modootoday/meta/github.html)
5
+ site.modootoday.build_link true adds "Built from <commit>", linked to that commit, when the repository and commit are known
4
6
  page.last_modified_at date shown as "Last updated" (front matter, or a plugin that sets it)
5
7
  page.edit: false hides the edit link on one page
8
+ site.modootoday.feedback a second row: Report an issue, Was this page helpful? and Discuss (modootoday/meta/feedback.html)
6
9
  {%- endcomment -%}
7
10
  {%- include modootoday/i18n.html lang=_lang -%}
8
- {%- assign _pm_edit = nil -%}
9
- {%- if site.modootoday.edit_url and page.edit != false and page.path -%}{%- assign _pm_edit = site.modootoday.edit_url | append: page.path -%}{%- endif -%}
10
- {%- if _pm_edit or page.last_modified_at %}
11
+ {%- include modootoday/meta/github.html -%}
12
+ {%- assign _pm_edit = nil -%}{%- assign _pm_built = nil -%}
13
+ {%- assign _pm_prefix = site.modootoday.edit_url -%}{%- if _pm_prefix == "auto" -%}{%- assign _pm_prefix = mt_gh_edit -%}{%- endif -%}
14
+ {%- if _pm_prefix and _pm_prefix != "" and page.edit != false and page.path -%}{%- assign _pm_edit = _pm_prefix | append: page.path -%}{%- endif -%}
15
+ {%- if site.modootoday.build_link == true and mt_gh_repo != "" and mt_gh_rev != "" -%}{%- assign _pm_built = mt_gh_rev | slice: 0, 7 -%}{%- endif -%}
16
+ {%- if _pm_edit or _pm_built or page.last_modified_at %}
11
17
  <p class="mt-page-meta">
12
18
  {%- if page.last_modified_at -%}<span>{{ mt_t_page_updated }} <time datetime="{{ page.last_modified_at | date_to_xmlschema }}">{{ page.last_modified_at | date: "%Y-%m-%d" }}</time></span>{%- endif -%}
13
19
  {%- if _pm_edit and page.last_modified_at %} · {% endif -%}
14
20
  {%- if _pm_edit -%}<a href="{{ _pm_edit }}" rel="nofollow">{% include modootoday/brand/icon.html name="edit" size=14 %} {{ mt_t_page_edit }}</a>{%- endif -%}
21
+ {%- if _pm_built -%}{%- if _pm_edit or page.last_modified_at %} · {% endif -%}<a href="{{ mt_gh_repo }}/commit/{{ mt_gh_rev }}" rel="nofollow">{{ mt_t_page_built | replace: "[commit]", _pm_built }}</a>{%- endif -%}
22
+ </p>
23
+ {%- endif -%}
24
+ {%- include modootoday/meta/feedback.html -%}
25
+ {%- if mt_fb_on -%}
26
+ {%- assign _pf_url = page.url | absolute_url -%}{%- assign _pf_title = page.title | default: site.title | strip_html -%}
27
+ {%- capture _pf_body -%}Page: {{ _pf_url }}{%- endcapture -%}
28
+ {%- capture _pf_q -%}&amp;body={{ _pf_body | url_encode }}{%- if mt_fb_labels != "" -%}&amp;labels={{ mt_fb_labels | url_encode }}{%- endif -%}{%- endcapture %}
29
+ <p class="mt-page-feedback">
30
+ {%- if mt_fb_issues != "" -%}<a href="{{ mt_fb_issues }}/new?title={{ _pf_title | url_encode }}{{ _pf_q }}" rel="nofollow">{{ mt_t_page_issue }}</a>{%- endif -%}
31
+ {%- if mt_fb_helpful -%}{%- if mt_fb_issues != "" %} · {% endif -%}<span>{{ mt_t_page_helpful }} <a href="{{ mt_fb_issues }}/new?title={{ "Helpful: " | append: _pf_title | url_encode }}{{ _pf_q }}" rel="nofollow">{{ mt_t_page_helpful_yes }}</a> <a href="{{ mt_fb_issues }}/new?title={{ "Not helpful: " | append: _pf_title | url_encode }}{{ _pf_q }}" rel="nofollow">{{ mt_t_page_helpful_no }}</a></span>{%- endif -%}
32
+ {%- if mt_fb_discuss != "" -%}{%- if mt_fb_issues != "" %} · {% endif -%}<a href="{{ mt_fb_discuss }}" rel="nofollow">{{ mt_t_page_discuss }}</a>{%- endif -%}
15
33
  </p>
16
34
  {%- endif -%}
@@ -0,0 +1,7 @@
1
+ {%- comment -%}PWA head tags, only with modootoday.pwa.enabled: true. The manifest and worker URLs are the permalinks of the site's
2
+ stubs (modootoday-stubs --pwa); pwa/register.js reads data-mt-sw and data-mt-scope, pwa/update-toast.js its sheet and labels
3
+ (no inline script under csp: strict). The apple-touch-icon stays with favicon. Needs i18n.html.{%- endcomment -%}
4
+ {%- if site.modootoday.pwa.enabled == true -%}
5
+ {%- include modootoday/assets/url.html path="/assets/css/modootoday/chrome/toast.css" %}
6
+ <link rel="manifest" href="{{ '/manifest.webmanifest' | relative_url }}" data-mt-sw="{{ '/sw.js' | relative_url }}" data-mt-scope="{{ '/' | relative_url }}" data-mt-toast-css="{{ mt_asset_url }}" data-mt-update="{{ mt_t_pwa_update | escape }}" data-mt-reload="{{ mt_t_pwa_reload | escape }}" data-mt-later="{{ mt_t_pwa_later | escape }}" data-mt-offline-notice="{{ mt_t_pwa_offline_notice | escape }}" data-mt-close="{{ mt_t_pwa_close | escape }}">
7
+ {%- endif -%}
@@ -0,0 +1,54 @@
1
+ {%- comment -%}Web app manifest for the manifest.webmanifest stub (modootoday-stubs --pwa). Every field derives from a setting the site
2
+ already has, so nothing is named twice; the field table is in docs/recipes/pwa.md. scope is the site root; start_url carries no
3
+ query, so it is also the id. shortcuts and screenshots appear only when modootoday.pwa lists them.{%- endcomment -%}
4
+ {%- include modootoday/config.html -%}
5
+ {%- assign _pw = site.modootoday.pwa -%}{%- assign _pwl = site.lang | default: "en" -%}
6
+ {%- include modootoday/i18n.html lang=_pwl -%}{%- include modootoday/site/dir.html lang=_pwl -%}
7
+ {%- assign _tcl = nil -%}{%- assign _tcd = nil -%}{%- capture _pwx -%}{%- include modootoday/theme-color.html -%}{%- endcapture -%}
8
+ {%- if mt_color_scheme == "dark" -%}{%- assign _pwtc = _tcd -%}{%- assign _pwbg = "#0a0a0a" -%}
9
+ {%- else -%}{%- assign _pwtc = _tcl -%}{%- assign _pwbg = "#ffffff" -%}{%- endif -%}
10
+ {%- assign _pwn = _pw.name | default: site.title -%}{%- assign _pwd = _pw.description | default: site.description -%}
11
+ {%- assign _pws = _pw.start_url | default: "/" | relative_url -%}
12
+ {
13
+ "id": {{ _pws | jsonify }},
14
+ "name": {{ _pwn | jsonify }},
15
+ "short_name": {{ _pw.short_name | default: _pwn | jsonify }},
16
+ {%- if _pwd %}
17
+ "description": {{ _pwd | strip_html | normalize_whitespace | jsonify }},
18
+ {%- endif %}
19
+ "lang": {{ _pwl | jsonify }},
20
+ "dir": {{ mt_dir | default: "ltr" | jsonify }},
21
+ "start_url": {{ _pws | jsonify }},
22
+ "scope": {{ "/" | relative_url | jsonify }},
23
+ "display": {{ _pw.display | default: "standalone" | jsonify }},
24
+ "background_color": {{ _pw.background_color | default: _pwbg | jsonify }},
25
+ {%- if _pwtc %}
26
+ "theme_color": {{ _pwtc | jsonify }},
27
+ {%- endif -%}
28
+ {%- if _pw.shortcuts.first %}
29
+ "shortcuts": [
30
+ {%- for _s in _pw.shortcuts %}
31
+ {"name": {{ _s.name | jsonify }}{% if _s.short_name %}, "short_name": {{ _s.short_name | jsonify }}{% endif %}{% if _s.description %}, "description": {{ _s.description | jsonify }}{% endif %}, "url": {{ _s.url | relative_url | jsonify }}}{% unless forloop.last %},{% endunless %}
32
+ {%- endfor %}
33
+ ],
34
+ {%- endif -%}
35
+ {%- if _pw.screenshots.first %}
36
+ "screenshots": [
37
+ {%- for _s in _pw.screenshots %}
38
+ {"src": {{ _s.src | relative_url | jsonify }}, "sizes": {{ _s.sizes | jsonify }}, "type": "image/png"{% if _s.form_factor %}, "form_factor": {{ _s.form_factor | jsonify }}{% endif %}{% if _s.label %}, "label": {{ _s.label | jsonify }}{% endif %}}{% unless forloop.last %},{% endunless %}
39
+ {%- endfor %}
40
+ ],
41
+ {%- endif %}
42
+ "icons": [
43
+ {%- if _pw.icons == nil or _pw.icons == "brand" -%}
44
+ {%- assign _pwb = "192,512,maskable-512" | split: "," -%}
45
+ {%- for _b in _pwb -%}{%- assign _pwz = _b | remove: "maskable-" %}
46
+ {"src": {{ "/assets/modootoday/icon-" | append: _b | append: ".png" | relative_url | jsonify }}, "sizes": "{{ _pwz }}x{{ _pwz }}", "type": "image/png", "purpose": "{% if _b contains "maskable" %}maskable{% else %}any{% endif %}"}{% unless forloop.last %},{% endunless %}
47
+ {%- endfor -%}
48
+ {%- else -%}
49
+ {%- for _i in _pw.icons %}
50
+ {"src": {{ _i.src | relative_url | jsonify }}, "sizes": {{ _i.sizes | jsonify }}, "type": "image/png", "purpose": {{ _i.purpose | default: "any" | jsonify }}}{% unless forloop.last %},{% endunless %}
51
+ {%- endfor -%}
52
+ {%- endif %}
53
+ ]
54
+ }
@@ -0,0 +1,10 @@
1
+ {%- comment -%}Sets mt_pwa_offline_assets: the theme files the offline page (layout pages/offline) links, for the worker to precache
2
+ (pwa/precache.html): core, the pages bundle, the hero sheet its actions row needs, the PWA modules and the theme toggle's
3
+ scripts. Needs config.html. test/theme/pwa/offline_test.rb compares it with built offline pages.{%- endcomment -%}
4
+ {%- assign _pwo = "/assets/css/modootoday.css /assets/css/modootoday/marketing/hero.css /assets/css/modootoday-pages.css" -%}
5
+ {%- if mt_components contains "theme-toggle" and mt_theme_toggle -%}
6
+ {%- if site.modootoday.csp == "strict" -%}{%- assign _pwo = _pwo | append: " /assets/js/modootoday/chrome/theme-init.js" -%}{%- endif -%}
7
+ {%- assign _pwo = _pwo | append: " /assets/js/modootoday/chrome/theme-toggle.js" -%}
8
+ {%- endif -%}
9
+ {%- assign _pwo = _pwo | append: " /assets/js/modootoday/pwa/register.js /assets/js/modootoday/pwa/offline.js" -%}
10
+ {%- assign mt_pwa_offline_assets = _pwo | split: " " -%}
@@ -0,0 +1,21 @@
1
+ {%- comment -%}Sets mt_pwa_precache (site URLs with the baseurl) and mt_pwa_offline (JSON: language prefix to its offline page): the
2
+ offline pages, the files they link (pwa/offline-assets.html), the notice's sheet and module (it shows offline too), start_url,
3
+ modootoday.pwa.precache and the pages with front matter pwa: precache. Needs config.html. Only pwa/sw.js reads it.{%- endcomment -%}
4
+ {%- include modootoday/pwa/offline-assets.html -%}
5
+ {%- assign _pcs = "/" | relative_url -%}{%- assign _pco = "/offline/" | relative_url -%}
6
+ {%- assign _pck = _pcs | jsonify -%}{%- assign _pcv = _pco | jsonify -%}
7
+ {%- assign _pcj = _pck | append: ":" | append: _pcv -%}{%- assign _pcl = _pco -%}
8
+ {%- for _l in site.modootoday.full_languages -%}
9
+ {%- assign _pclp = "/" | append: _l | append: "/" -%}{%- assign _pclo = _pclp | append: "offline/" | relative_url -%}
10
+ {%- assign _pck = _pclp | relative_url | jsonify -%}{%- assign _pcv = _pclo | jsonify -%}
11
+ {%- assign _pcj = _pcj | append: "," | append: _pck | append: ":" | append: _pcv -%}{%- assign _pcl = _pcl | append: " " | append: _pclo -%}
12
+ {%- endfor -%}
13
+ {%- assign mt_pwa_offline = "{" | append: _pcj | append: "}" -%}
14
+ {%- for _pca in mt_pwa_offline_assets -%}{%- include modootoday/assets/url.html path=_pca -%}{%- assign _pcl = _pcl | append: " " | append: mt_asset_url -%}{%- endfor -%}
15
+ {%- include modootoday/assets/url.html path="/assets/css/modootoday/chrome/toast.css" -%}{%- assign _pcl = _pcl | append: " " | append: mt_asset_url -%}
16
+ {%- include modootoday/assets/url.html path="/assets/js/modootoday/pwa/update-toast.js" version=false -%}{%- assign _pcl = _pcl | append: " " | append: mt_asset_url -%}
17
+ {%- assign _pcu = site.modootoday.pwa.start_url | default: "/" | relative_url -%}{%- assign _pcl = _pcl | append: " " | append: _pcu -%}
18
+ {%- for _pcp in site.modootoday.pwa.precache -%}{%- assign _pcu = _pcp | relative_url -%}{%- assign _pcl = _pcl | append: " " | append: _pcu -%}{%- endfor -%}
19
+ {%- assign _pcf = site.pages | where: "pwa", "precache" -%}{%- assign _pcd = site.documents | where: "pwa", "precache" -%}{%- assign _pcf = _pcf | concat: _pcd -%}
20
+ {%- for _pcp in _pcf -%}{%- assign _pcu = _pcp.url | relative_url -%}{%- assign _pcl = _pcl | append: " " | append: _pcu -%}{%- endfor -%}
21
+ {%- assign mt_pwa_precache = _pcl | split: " " | uniq -%}
@@ -0,0 +1,36 @@
1
+ {%- comment -%}The service worker, rendered by the site's sw.js stub (modootoday-stubs --pwa). With modootoday.pwa.enabled: true it
2
+ holds constants and imports the strategies (assets/js/modootoday/pwa/worker.js); otherwise it deletes this scope's caches
3
+ and unregisters itself, inline, so a broken worker.js can never block the rollback.{%- endcomment -%}
4
+ {%- include modootoday/config.html -%}
5
+ {%- assign _sws = "/" | relative_url -%}
6
+ {%- if site.modootoday.pwa.enabled == true -%}
7
+ {%- include modootoday/assets/build.html -%}{%- include modootoday/pwa/precache.html -%}
8
+ {%- comment -%}assets follows the ?v= contract: the theme version unless asset_version is build or false.{%- endcomment -%}
9
+ {%- assign _swa = mt_asset_v -%}{%- if _swa != mt_version -%}{%- assign _swa = mt_build_v -%}{%- endif -%}
10
+ {%- include modootoday/assets/url.html path="/assets/js/modootoday/pwa/worker.js" -%}
11
+ self.MT_PWA = {"scope": {{ _sws | jsonify }}, "build": {{ mt_build_v | jsonify }}, "assets": {{ _swa | jsonify }}, "precache": {{ mt_pwa_precache | jsonify }}, "offline": {{ mt_pwa_offline }}};
12
+ importScripts({{ mt_asset_url | jsonify }});
13
+ {% else -%}
14
+ // modootoday.pwa is off: remove this scope's caches and the worker itself, then reload open pages without it.
15
+ self.addEventListener("install", function () {
16
+ self.skipWaiting();
17
+ });
18
+ self.addEventListener("activate", function (event) {
19
+ var prefix = {{ "mt:" | append: _sws | append: ":" | jsonify }};
20
+ event.waitUntil(caches.keys().then(function (names) {
21
+ return Promise.all(names.filter(function (name) {
22
+ return name.indexOf(prefix) === 0;
23
+ }).map(function (name) {
24
+ return caches.delete(name);
25
+ }));
26
+ }).then(function () {
27
+ return self.registration.unregister();
28
+ }).then(function () {
29
+ return self.clients.matchAll({ type: "window" });
30
+ }).then(function (clients) {
31
+ clients.forEach(function (client) {
32
+ client.navigate(client.url).catch(function () {});
33
+ });
34
+ }));
35
+ });
36
+ {% endif -%}
@@ -0,0 +1,15 @@
1
+ {%- comment -%}
2
+ Optional chart renderer: site.modootoday.chart. assets/scripts.html includes it on pages whose body has a chart figure.
3
+ enabled true turns charts on (markdown/inline/chart.html); without src they stay tables
4
+ src Chart.js 4 (dist/chart.umd.min.js): a pinned, versioned https URL (with integrity), or a site path
5
+ integrity SRI hash (sha256-/sha384-/sha512-…); required for an https src, optional for a site path
6
+ Prints the library tag and sets mt_chart_on, so the chart module (data/chart.js) loads after it; front matter chart: false
7
+ opts a page out. An https src without integrity loads nothing (modootoday-check reports it).
8
+ {%- endcomment -%}
9
+ {%- assign mt_chart_on = false -%}{%- assign _mc = site.modootoday.chart -%}
10
+ {%- if _mc.enabled == true and page.chart != false and _mc.src -%}
11
+ {%- include modootoday/render/asset.html src=_mc.src integrity=_mc.integrity -%}
12
+ {%- if mt_asset_tag -%}{%- assign mt_chart_on = true %}
13
+ {{ mt_asset_tag }}
14
+ {%- endif -%}
15
+ {%- endif -%}
@@ -1,6 +1,9 @@
1
1
  {%- comment -%}
2
2
  Optional math renderer: site.modootoday.math (off by default). Needs the page body (content) first.
3
3
  enabled true turns it on; engine: katex (the only engine)
4
+ mode client (default): this loader; static: blocks were replaced from _data/math (markdown/figures/math.html),
5
+ so no script loads; only KaTeX HTML output (mt_math_html) links css
6
+ base a site path such as /assets/vendor/katex/: src, css and auto_render_src default to the KaTeX dist/ files in it
4
7
  src, css katex.min.js and katex.min.css: pinned, versioned https URLs (with integrity), or site paths (/assets/…)
5
8
  integrity {js: sha384-…, css: sha384-…}; required for https URLs, optional for site paths
6
9
  auto_render_src KaTeX auto-render (contrib/auto-render.min.js) for $$ blocks; auto_render_integrity is its SRI hash
@@ -10,18 +13,31 @@ or \( … \); with inline: true also on pages with a $. Front matter math: false
10
13
  If any declared URL cannot load (an https URL without integrity), nothing loads. Without JavaScript the TeX source stays.
11
14
  {%- endcomment -%}
12
15
  {%- assign _mx = site.modootoday.math -%}
13
- {%- if _mx.enabled == true and page.math != false and _mx.src and _mx.css -%}
16
+ {%- assign _mx_src = _mx.src -%}{%- assign _mx_cssu = _mx.css -%}{%- assign _mx_aru = _mx.auto_render_src -%}
17
+ {%- if _mx.base -%}
18
+ {%- unless _mx_src -%}{%- assign _mx_src = _mx.base | append: "katex.min.js" -%}{%- endunless -%}
19
+ {%- unless _mx_cssu -%}{%- assign _mx_cssu = _mx.base | append: "katex.min.css" -%}{%- endunless -%}
20
+ {%- unless _mx_aru -%}{%- assign _mx_aru = _mx.base | append: "contrib/auto-render.min.js" -%}{%- endunless -%}
21
+ {%- endif -%}
22
+ {%- if _mx.mode == "static" -%}
23
+ {%- if mt_math_html and _mx_cssu and _mx.enabled != false and page.math != false -%}
24
+ {%- include modootoday/render/asset.html kind="css" src=_mx_cssu integrity=_mx.integrity.css -%}
25
+ {%- if mt_asset_tag %}
26
+ {{ mt_asset_tag }}
27
+ {%- endif -%}
28
+ {%- endif -%}
29
+ {%- elsif _mx.enabled == true and page.math != false and _mx_src and _mx_cssu -%}
14
30
  {%- assign _mx_hit = false -%}
15
31
  {%- if content contains '<code class="language-math"' or content contains 'class="language-math highlighter-rouge"' -%}{%- assign _mx_hit = true -%}{%- endif -%}
16
- {%- if _mx.auto_render_src -%}
32
+ {%- if _mx_aru -%}
17
33
  {%- if content contains '\[' or content contains '\(' -%}{%- assign _mx_hit = true -%}{%- endif -%}
18
34
  {%- if _mx.inline == true and content contains '$' -%}{%- assign _mx_hit = true -%}{%- endif -%}
19
35
  {%- endif -%}
20
36
  {%- if _mx_hit -%}
21
- {%- include modootoday/render/asset.html kind="css" src=_mx.css integrity=_mx.integrity.css -%}{%- assign _mx_css = mt_asset_tag -%}
22
- {%- include modootoday/render/asset.html src=_mx.src integrity=_mx.integrity.js -%}{%- assign _mx_js = mt_asset_tag -%}
37
+ {%- include modootoday/render/asset.html kind="css" src=_mx_cssu integrity=_mx.integrity.css -%}{%- assign _mx_css = mt_asset_tag -%}
38
+ {%- include modootoday/render/asset.html src=_mx_src integrity=_mx.integrity.js -%}{%- assign _mx_js = mt_asset_tag -%}
23
39
  {%- assign _mx_ar = "" -%}
24
- {%- if _mx.auto_render_src -%}{%- include modootoday/render/asset.html src=_mx.auto_render_src integrity=_mx.auto_render_integrity -%}{%- assign _mx_ar = mt_asset_tag -%}{%- endif -%}
40
+ {%- if _mx_aru -%}{%- include modootoday/render/asset.html src=_mx_aru integrity=_mx.auto_render_integrity -%}{%- assign _mx_ar = mt_asset_tag -%}{%- endif -%}
25
41
  {%- if _mx_css and _mx_js and _mx_ar -%}{%- include modootoday/assets/url.html path="/assets/js/modootoday-math.js" %}
26
42
  {{ _mx_css }}
27
43
  {{ _mx_js }}
@@ -4,11 +4,12 @@ Optional Mermaid renderer: site.modootoday.mermaid (off by default). Needs the p
4
4
  src a pinned, versioned https URL (with integrity), or a site path such as /assets/mermaid/mermaid.min.js
5
5
  integrity SRI hash (sha256-/sha384-/sha512-…); required for an https src, optional for a site path
6
6
  theme auto (follows prefers-color-scheme and the theme toggle) | default | dark | neutral | forest
7
- Loads only on pages whose body has a ```mermaid fence; front matter mermaid: false opts a page out.
7
+ Loads only on pages whose body has a ```mermaid fence; front matter mermaid: false opts a page out, and so does a
8
+ diagrams: list (its fences are committed static figures, markdown/figures/diagrams.html).
8
9
  An https src without integrity loads nothing (modootoday-check reports it). Without JavaScript the fence stays a code block.
9
10
  {%- endcomment -%}
10
- {%- assign _mm = site.modootoday.mermaid -%}{%- assign _mm_tag = false -%}
11
- {%- if _mm.enabled == true and page.mermaid != false and _mm.src -%}
11
+ {%- assign _mm = site.modootoday.mermaid -%}{%- assign _mm_tag = false -%}{%- assign _mm_on = _mm.enabled -%}{%- if page.diagrams -%}{%- assign _mm_on = false -%}{%- endif -%}
12
+ {%- if _mm_on == true and page.mermaid != false and _mm.src -%}
12
13
  {%- if content contains '<code class="language-mermaid"' or content contains 'class="language-mermaid highlighter-rouge"' -%}
13
14
  {%- include modootoday/render/asset.html src=_mm.src integrity=_mm.integrity -%}{%- assign _mm_tag = mt_asset_tag -%}
14
15
  {%- if _mm_tag -%}{%- include modootoday/assets/url.html path="/assets/js/modootoday-mermaid.js" %}
@@ -0,0 +1,5 @@
1
+ {%- comment -%}Sets mt_dir for include.lang: the direction its catalog gives (mt_t_direction, so include modootoday/i18n.html for
2
+ that language first), else rtl for a right-to-left base subtag, else nil. Read by the layouts' dir attribute and the manifest.{%- endcomment -%}
3
+ {%- assign _drtl = "ar fa he ur yi ps sd ug dv ckb" | split: " " -%}{%- assign _db = include.lang | split: "-" | first -%}
4
+ {%- if _drtl contains _db -%}{%- assign mt_dir = "rtl" -%}{%- else -%}{%- assign mt_dir = nil -%}{%- endif -%}
5
+ {%- assign mt_dir = mt_t_direction | default: mt_dir -%}
@@ -3,7 +3,8 @@ Stylesheet links (needs modootoday/config.html first). Sets mt_page_c ("|tabs|fa
3
3
  split (default): the core sheet and its component sheets, then the context sheets of assets/sheets.html (front matter mt_sheets, body probes),
4
4
  and one sheet per section component the page's sections: use. Page front matter css: [c, ...] adds more.
5
5
  modootoday.css: bundle — only the core sheet, which then holds everything.
6
- Both modes: preload hints first (assets/preload.html), the site's own sheets last (assets/site-sheets.html, site_css), then the
6
+ Both modes: preload hints first (assets/preload.html), the site's own sheets (assets/site-sheets.html, site_css), the print sheet
7
+ last with modootoday.print: true (media="print"), then the
7
8
  site's module scripts the page names with script: (assets/site-scripts.html, modootoday.scripts).
8
9
  {%- endcomment -%}
9
10
  {%- assign mt_page_c = "|" -%}
@@ -41,4 +42,7 @@ Both modes: preload hints first (assets/preload.html), the site's own sheets las
41
42
  {%- endif -%}{%- endfor -%}
42
43
  {%- endunless -%}
43
44
  {%- include modootoday/assets/site-sheets.html -%}
45
+ {%- if site.modootoday.print == true -%}{%- include modootoday/assets/url.html path="/assets/css/modootoday/chrome/print.css" %}
46
+ <link rel="stylesheet" href="{{ mt_asset_url }}" media="print">
47
+ {%- endif -%}
44
48
  {%- include modootoday/assets/site-scripts.html -%}
@@ -1,7 +1,7 @@
1
1
  {%- comment -%}Theme string by key: {% include modootoday/t.html key="nav.label" %} (optional n= / name= fill %{n} / %{name}).
2
2
  Resolution: site _data/i18n/<lang>.yml, then the theme catalog for the language, then English. Generated by script/i18n-build.{%- endcomment -%}
3
3
  {%- include modootoday/i18n.html -%}
4
- {%- case include.key -%}{%- when "direction" -%}{%- assign _tv = mt_t_direction -%}{%- when "skip" -%}{%- assign _tv = mt_t_skip -%}{%- when "new_window.hint" -%}{%- assign _tv = mt_t_new_window_hint -%}{%- when "new_window.open" -%}{%- assign _tv = mt_t_new_window_open -%}{%- when "callout.note" -%}{%- assign _tv = mt_t_callout_note -%}{%- when "callout.tip" -%}{%- assign _tv = mt_t_callout_tip -%}{%- when "callout.important" -%}{%- assign _tv = mt_t_callout_important -%}{%- when "callout.warning" -%}{%- assign _tv = mt_t_callout_warning -%}{%- when "callout.caution" -%}{%- assign _tv = mt_t_callout_caution -%}{%- when "status.available" -%}{%- assign _tv = mt_t_status_available -%}{%- when "status.partial" -%}{%- assign _tv = mt_t_status_partial -%}{%- when "status.planned" -%}{%- assign _tv = mt_t_status_planned -%}{%- when "task.done" -%}{%- assign _tv = mt_t_task_done -%}{%- when "task.open" -%}{%- assign _tv = mt_t_task_open -%}{%- when "tabs.label" -%}{%- assign _tv = mt_t_tabs_label -%}{%- when "toc.label" -%}{%- assign _tv = mt_t_toc_label -%}{%- when "theme.toggle" -%}{%- assign _tv = mt_t_theme_toggle -%}{%- when "sidebar.label" -%}{%- assign _tv = mt_t_sidebar_label -%}{%- when "page_actions.label" -%}{%- assign _tv = mt_t_page_actions_label -%}{%- when "page_actions.copy" -%}{%- assign _tv = mt_t_page_actions_copy -%}{%- when "page_actions.copy_ai" -%}{%- assign _tv = mt_t_page_actions_copy_ai -%}{%- when "page_actions.view" -%}{%- assign _tv = mt_t_page_actions_view -%}{%- when "page_actions.source" -%}{%- assign _tv = mt_t_page_actions_source -%}{%- when "breadcrumb.label" -%}{%- assign _tv = mt_t_breadcrumb_label -%}{%- when "nav.label" -%}{%- assign _tv = mt_t_nav_label -%}{%- when "nav.back_to_top" -%}{%- assign _tv = mt_t_nav_back_to_top -%}{%- when "nav.menu" -%}{%- assign _tv = mt_t_nav_menu -%}{%- when "pagination.label" -%}{%- assign _tv = mt_t_pagination_label -%}{%- when "pagination.prev" -%}{%- assign _tv = mt_t_pagination_prev -%}{%- when "pagination.next" -%}{%- assign _tv = mt_t_pagination_next -%}{%- when "code.copy" -%}{%- assign _tv = mt_t_code_copy -%}{%- when "code.copied" -%}{%- assign _tv = mt_t_code_copied -%}{%- when "code.label" -%}{%- assign _tv = mt_t_code_label -%}{%- when "code.file" -%}{%- assign _tv = mt_t_code_file -%}{%- when "table.label" -%}{%- assign _tv = mt_t_table_label -%}{%- when "diagram.label" -%}{%- assign _tv = mt_t_diagram_label -%}{%- when "search.label" -%}{%- assign _tv = mt_t_search_label -%}{%- when "filter.label" -%}{%- assign _tv = mt_t_filter_label -%}{%- when "filter.count" -%}{%- assign _tv = mt_t_filter_count -%}{%- when "page.edit" -%}{%- assign _tv = mt_t_page_edit -%}{%- when "page.updated" -%}{%- assign _tv = mt_t_page_updated -%}{%- when "languages.label" -%}{%- assign _tv = mt_t_languages_label -%}{%- when "post.date_format" -%}{%- assign _tv = mt_t_post_date_format -%}{%- when "post.author" -%}{%- assign _tv = mt_t_post_author -%}{%- when "post.related" -%}{%- assign _tv = mt_t_post_related -%}{%- when "post.share" -%}{%- assign _tv = mt_t_post_share -%}{%- when "fallback.notice" -%}{%- assign _tv = mt_t_fallback_notice -%}{%- when "archive.years" -%}{%- assign _tv = mt_t_archive_years -%}{%- when "archive.tags" -%}{%- assign _tv = mt_t_archive_tags -%}{%- when "archive.categories" -%}{%- assign _tv = mt_t_archive_categories -%}{%- when "archive.posts" -%}{%- assign _tv = mt_t_archive_posts -%}{%- when "archive.empty" -%}{%- assign _tv = mt_t_archive_empty -%}{%- when "blog.featured" -%}{%- assign _tv = mt_t_blog_featured -%}{%- when "blog.read_more" -%}{%- assign _tv = mt_t_blog_read_more -%}{%- when "blog.reading_time" -%}{%- assign _tv = mt_t_blog_reading_time -%}{%- when "blog.by" -%}{%- assign _tv = mt_t_blog_by -%}{%- when "blog.updated" -%}{%- assign _tv = mt_t_blog_updated -%}{%- when "blog.newer" -%}{%- assign _tv = mt_t_blog_newer -%}{%- when "blog.older" -%}{%- assign _tv = mt_t_blog_older -%}{%- when "blog.related" -%}{%- assign _tv = mt_t_blog_related -%}{%- when "blog.series" -%}{%- assign _tv = mt_t_blog_series -%}{%- when "blog.series_part" -%}{%- assign _tv = mt_t_blog_series_part -%}{%- when "blog.share" -%}{%- assign _tv = mt_t_blog_share -%}{%- when "blog.copied" -%}{%- assign _tv = mt_t_blog_copied -%}{%- when "blog.feed" -%}{%- assign _tv = mt_t_blog_feed -%}{%- when "blog.latest" -%}{%- assign _tv = mt_t_blog_latest -%}{%- when "blog.breaking" -%}{%- assign _tv = mt_t_blog_breaking -%}{%- when "blog.live" -%}{%- assign _tv = mt_t_blog_live -%}{%- when "blog.correction" -%}{%- assign _tv = mt_t_blog_correction -%}{%- when "blog.sources" -%}{%- assign _tv = mt_t_blog_sources -%}{%- when "blog.more" -%}{%- assign _tv = mt_t_blog_more -%}{%- when "blog.authors" -%}{%- assign _tv = mt_t_blog_authors -%}{%- when "filetree.label" -%}{%- assign _tv = mt_t_filetree_label -%}{%- when "gallery.close" -%}{%- assign _tv = mt_t_gallery_close -%}{%- when "embed.title" -%}{%- assign _tv = mt_t_embed_title -%}{%- when "pricing.recommended" -%}{%- assign _tv = mt_t_pricing_recommended -%}{%- when "banner.label" -%}{%- assign _tv = mt_t_banner_label -%}{%- when "footnote.back" -%}{%- assign _tv = mt_t_footnote_back -%}{%- when "progress.label" -%}{%- assign _tv = mt_t_progress_label -%}{%- when "subscribe.email" -%}{%- assign _tv = mt_t_subscribe_email -%}{%- when "subscribe.submit" -%}{%- assign _tv = mt_t_subscribe_submit -%}{%- when "params.required" -%}{%- assign _tv = mt_t_params_required -%}{%- when "loading.label" -%}{%- assign _tv = mt_t_loading_label -%}{%- when "pages.not_found" -%}{%- assign _tv = mt_t_pages_not_found -%}{%- when "pages.not_found_text" -%}{%- assign _tv = mt_t_pages_not_found_text -%}{%- when "pages.gone" -%}{%- assign _tv = mt_t_pages_gone -%}{%- when "pages.gone_text" -%}{%- assign _tv = mt_t_pages_gone_text -%}{%- when "pages.error" -%}{%- assign _tv = mt_t_pages_error -%}{%- when "pages.error_text" -%}{%- assign _tv = mt_t_pages_error_text -%}{%- when "pages.home" -%}{%- assign _tv = mt_t_pages_home -%}{%- when "pages.moved" -%}{%- assign _tv = mt_t_pages_moved -%}{%- when "pages.moved_link" -%}{%- assign _tv = mt_t_pages_moved_link -%}{%- when "pages.search_hint" -%}{%- assign _tv = mt_t_pages_search_hint -%}{%- when "layouts.all" -%}{%- assign _tv = mt_t_layouts_all -%}{%- when "layouts.filter" -%}{%- assign _tv = mt_t_layouts_filter -%}{%- when "layouts.role" -%}{%- assign _tv = mt_t_layouts_role -%}{%- when "layouts.client" -%}{%- assign _tv = mt_t_layouts_client -%}{%- when "layouts.year" -%}{%- assign _tv = mt_t_layouts_year -%}{%- when "layouts.stack" -%}{%- assign _tv = mt_t_layouts_stack -%}{%- when "layouts.links" -%}{%- assign _tv = mt_t_layouts_links -%}{%- when "layouts.location" -%}{%- assign _tv = mt_t_layouts_location -%}{%- when "layouts.employment" -%}{%- assign _tv = mt_t_layouts_employment -%}{%- when "layouts.salary" -%}{%- assign _tv = mt_t_layouts_salary -%}{%- when "layouts.posted" -%}{%- assign _tv = mt_t_layouts_posted -%}{%- when "layouts.deadline" -%}{%- assign _tv = mt_t_layouts_deadline -%}{%- when "layouts.apply" -%}{%- assign _tv = mt_t_layouts_apply -%}{%- when "layouts.starts" -%}{%- assign _tv = mt_t_layouts_starts -%}{%- when "layouts.ends" -%}{%- assign _tv = mt_t_layouts_ends -%}{%- when "layouts.venue" -%}{%- assign _tv = mt_t_layouts_venue -%}{%- when "layouts.online" -%}{%- assign _tv = mt_t_layouts_online -%}{%- when "layouts.agenda" -%}{%- assign _tv = mt_t_layouts_agenda -%}{%- when "layouts.tickets" -%}{%- assign _tv = mt_t_layouts_tickets -%}{%- when "layouts.calendar" -%}{%- assign _tv = mt_t_layouts_calendar -%}{%- when "layouts.episode" -%}{%- assign _tv = mt_t_layouts_episode -%}{%- when "layouts.season" -%}{%- assign _tv = mt_t_layouts_season -%}{%- when "layouts.duration" -%}{%- assign _tv = mt_t_layouts_duration -%}{%- when "layouts.listen" -%}{%- assign _tv = mt_t_layouts_listen -%}{%- when "layouts.transcript" -%}{%- assign _tv = mt_t_layouts_transcript -%}{%- when "layouts.monthly" -%}{%- assign _tv = mt_t_layouts_monthly -%}{%- when "layouts.yearly" -%}{%- assign _tv = mt_t_layouts_yearly -%}{%- when "layouts.billing" -%}{%- assign _tv = mt_t_layouts_billing -%}{%- when "layouts.popular" -%}{%- assign _tv = mt_t_layouts_popular -%}{%- when "layouts.download" -%}{%- assign _tv = mt_t_layouts_download -%}{%- when "layouts.version" -%}{%- assign _tv = mt_t_layouts_version -%}{%- when "layouts.colors" -%}{%- assign _tv = mt_t_layouts_colors -%}{%- when "layouts.assets" -%}{%- assign _tv = mt_t_layouts_assets -%}{%- when "layouts.send" -%}{%- assign _tv = mt_t_layouts_send -%}{%- when "layouts.name" -%}{%- assign _tv = mt_t_layouts_name -%}{%- when "layouts.email" -%}{%- assign _tv = mt_t_layouts_email -%}{%- when "layouts.message" -%}{%- assign _tv = mt_t_layouts_message -%}{%- when "layouts.contact" -%}{%- assign _tv = mt_t_layouts_contact -%}{%- when "layouts.added" -%}{%- assign _tv = mt_t_layouts_added -%}{%- when "layouts.changed" -%}{%- assign _tv = mt_t_layouts_changed -%}{%- when "layouts.fixed" -%}{%- assign _tv = mt_t_layouts_fixed -%}{%- when "layouts.removed" -%}{%- assign _tv = mt_t_layouts_removed -%}{%- when "layouts.security" -%}{%- assign _tv = mt_t_layouts_security -%}{%- when "layouts.now" -%}{%- assign _tv = mt_t_layouts_now -%}{%- when "layouts.next" -%}{%- assign _tv = mt_t_layouts_next -%}{%- when "layouts.later" -%}{%- assign _tv = mt_t_layouts_later -%}{%- when "layouts.letters" -%}{%- assign _tv = mt_t_layouts_letters -%}{%- when "layouts.lessons" -%}{%- assign _tv = mt_t_layouts_lessons -%}{%- when "layouts.minutes" -%}{%- assign _tv = mt_t_layouts_minutes -%}{%- when "layouts.module" -%}{%- assign _tv = mt_t_layouts_module -%}{%- when "layouts.chapter" -%}{%- assign _tv = mt_t_layouts_chapter -%}{%- when "layouts.effective" -%}{%- assign _tv = mt_t_layouts_effective -%}{%- when "layouts.experience" -%}{%- assign _tv = mt_t_layouts_experience -%}{%- when "layouts.education" -%}{%- assign _tv = mt_t_layouts_education -%}{%- when "layouts.skills" -%}{%- assign _tv = mt_t_layouts_skills -%}{%- when "layouts.present" -%}{%- assign _tv = mt_t_layouts_present -%}{%- when "layouts.loading" -%}{%- assign _tv = mt_t_layouts_loading -%}{%- when "layouts.contents" -%}{%- assign _tv = mt_t_layouts_contents -%}{%- when "language" -%}{%- capture _tv -%}{%- include modootoday/i18n/name.html code=mt_t_lang -%}{%- endcapture -%}{%- assign _tv = site.data.i18n[mt_t_lang].language | default: _tv -%}{%- else -%}{%- assign _tv = include.key -%}{%- endcase -%}
4
+ {%- case include.key -%}{%- when "direction" -%}{%- assign _tv = mt_t_direction -%}{%- when "skip" -%}{%- assign _tv = mt_t_skip -%}{%- when "new_window.hint" -%}{%- assign _tv = mt_t_new_window_hint -%}{%- when "new_window.open" -%}{%- assign _tv = mt_t_new_window_open -%}{%- when "callout.note" -%}{%- assign _tv = mt_t_callout_note -%}{%- when "callout.tip" -%}{%- assign _tv = mt_t_callout_tip -%}{%- when "callout.important" -%}{%- assign _tv = mt_t_callout_important -%}{%- when "callout.warning" -%}{%- assign _tv = mt_t_callout_warning -%}{%- when "callout.caution" -%}{%- assign _tv = mt_t_callout_caution -%}{%- when "status.available" -%}{%- assign _tv = mt_t_status_available -%}{%- when "status.partial" -%}{%- assign _tv = mt_t_status_partial -%}{%- when "status.planned" -%}{%- assign _tv = mt_t_status_planned -%}{%- when "task.done" -%}{%- assign _tv = mt_t_task_done -%}{%- when "task.open" -%}{%- assign _tv = mt_t_task_open -%}{%- when "tabs.label" -%}{%- assign _tv = mt_t_tabs_label -%}{%- when "toc.label" -%}{%- assign _tv = mt_t_toc_label -%}{%- when "anchor.label" -%}{%- assign _tv = mt_t_anchor_label -%}{%- when "theme.toggle" -%}{%- assign _tv = mt_t_theme_toggle -%}{%- when "sidebar.label" -%}{%- assign _tv = mt_t_sidebar_label -%}{%- when "page_actions.label" -%}{%- assign _tv = mt_t_page_actions_label -%}{%- when "page_actions.copy" -%}{%- assign _tv = mt_t_page_actions_copy -%}{%- when "page_actions.copy_ai" -%}{%- assign _tv = mt_t_page_actions_copy_ai -%}{%- when "page_actions.view" -%}{%- assign _tv = mt_t_page_actions_view -%}{%- when "page_actions.source" -%}{%- assign _tv = mt_t_page_actions_source -%}{%- when "breadcrumb.label" -%}{%- assign _tv = mt_t_breadcrumb_label -%}{%- when "nav.label" -%}{%- assign _tv = mt_t_nav_label -%}{%- when "nav.back_to_top" -%}{%- assign _tv = mt_t_nav_back_to_top -%}{%- when "nav.menu" -%}{%- assign _tv = mt_t_nav_menu -%}{%- when "pagination.label" -%}{%- assign _tv = mt_t_pagination_label -%}{%- when "pagination.prev" -%}{%- assign _tv = mt_t_pagination_prev -%}{%- when "pagination.next" -%}{%- assign _tv = mt_t_pagination_next -%}{%- when "code.copy" -%}{%- assign _tv = mt_t_code_copy -%}{%- when "code.copied" -%}{%- assign _tv = mt_t_code_copied -%}{%- when "code.label" -%}{%- assign _tv = mt_t_code_label -%}{%- when "code.file" -%}{%- assign _tv = mt_t_code_file -%}{%- when "table.label" -%}{%- assign _tv = mt_t_table_label -%}{%- when "diagram.label" -%}{%- assign _tv = mt_t_diagram_label -%}{%- when "diagram.source" -%}{%- assign _tv = mt_t_diagram_source -%}{%- when "math.label" -%}{%- assign _tv = mt_t_math_label -%}{%- when "search.label" -%}{%- assign _tv = mt_t_search_label -%}{%- when "filter.label" -%}{%- assign _tv = mt_t_filter_label -%}{%- when "filter.count" -%}{%- assign _tv = mt_t_filter_count -%}{%- when "page.edit" -%}{%- assign _tv = mt_t_page_edit -%}{%- when "page.updated" -%}{%- assign _tv = mt_t_page_updated -%}{%- when "page.built" -%}{%- assign _tv = mt_t_page_built -%}{%- when "page.issue" -%}{%- assign _tv = mt_t_page_issue -%}{%- when "page.helpful" -%}{%- assign _tv = mt_t_page_helpful -%}{%- when "page.helpful_yes" -%}{%- assign _tv = mt_t_page_helpful_yes -%}{%- when "page.helpful_no" -%}{%- assign _tv = mt_t_page_helpful_no -%}{%- when "page.discuss" -%}{%- assign _tv = mt_t_page_discuss -%}{%- when "languages.label" -%}{%- assign _tv = mt_t_languages_label -%}{%- when "post.date_format" -%}{%- assign _tv = mt_t_post_date_format -%}{%- when "post.author" -%}{%- assign _tv = mt_t_post_author -%}{%- when "post.related" -%}{%- assign _tv = mt_t_post_related -%}{%- when "post.share" -%}{%- assign _tv = mt_t_post_share -%}{%- when "fallback.notice" -%}{%- assign _tv = mt_t_fallback_notice -%}{%- when "archive.years" -%}{%- assign _tv = mt_t_archive_years -%}{%- when "archive.tags" -%}{%- assign _tv = mt_t_archive_tags -%}{%- when "archive.categories" -%}{%- assign _tv = mt_t_archive_categories -%}{%- when "archive.posts" -%}{%- assign _tv = mt_t_archive_posts -%}{%- when "archive.empty" -%}{%- assign _tv = mt_t_archive_empty -%}{%- when "blog.featured" -%}{%- assign _tv = mt_t_blog_featured -%}{%- when "blog.read_more" -%}{%- assign _tv = mt_t_blog_read_more -%}{%- when "blog.reading_time" -%}{%- assign _tv = mt_t_blog_reading_time -%}{%- when "blog.by" -%}{%- assign _tv = mt_t_blog_by -%}{%- when "blog.updated" -%}{%- assign _tv = mt_t_blog_updated -%}{%- when "blog.newer" -%}{%- assign _tv = mt_t_blog_newer -%}{%- when "blog.older" -%}{%- assign _tv = mt_t_blog_older -%}{%- when "blog.related" -%}{%- assign _tv = mt_t_blog_related -%}{%- when "blog.series" -%}{%- assign _tv = mt_t_blog_series -%}{%- when "blog.series_part" -%}{%- assign _tv = mt_t_blog_series_part -%}{%- when "blog.share" -%}{%- assign _tv = mt_t_blog_share -%}{%- when "blog.copied" -%}{%- assign _tv = mt_t_blog_copied -%}{%- when "blog.feed" -%}{%- assign _tv = mt_t_blog_feed -%}{%- when "blog.subscribe" -%}{%- assign _tv = mt_t_blog_subscribe -%}{%- when "blog.latest" -%}{%- assign _tv = mt_t_blog_latest -%}{%- when "blog.breaking" -%}{%- assign _tv = mt_t_blog_breaking -%}{%- when "blog.live" -%}{%- assign _tv = mt_t_blog_live -%}{%- when "blog.correction" -%}{%- assign _tv = mt_t_blog_correction -%}{%- when "blog.sources" -%}{%- assign _tv = mt_t_blog_sources -%}{%- when "blog.more" -%}{%- assign _tv = mt_t_blog_more -%}{%- when "blog.authors" -%}{%- assign _tv = mt_t_blog_authors -%}{%- when "filetree.label" -%}{%- assign _tv = mt_t_filetree_label -%}{%- when "gallery.close" -%}{%- assign _tv = mt_t_gallery_close -%}{%- when "embed.title" -%}{%- assign _tv = mt_t_embed_title -%}{%- when "pricing.recommended" -%}{%- assign _tv = mt_t_pricing_recommended -%}{%- when "banner.label" -%}{%- assign _tv = mt_t_banner_label -%}{%- when "banner.release" -%}{%- assign _tv = mt_t_banner_release -%}{%- when "banner.release_link" -%}{%- assign _tv = mt_t_banner_release_link -%}{%- when "footnote.back" -%}{%- assign _tv = mt_t_footnote_back -%}{%- when "progress.label" -%}{%- assign _tv = mt_t_progress_label -%}{%- when "subscribe.email" -%}{%- assign _tv = mt_t_subscribe_email -%}{%- when "subscribe.submit" -%}{%- assign _tv = mt_t_subscribe_submit -%}{%- when "params.required" -%}{%- assign _tv = mt_t_params_required -%}{%- when "chart.data" -%}{%- assign _tv = mt_t_chart_data -%}{%- when "widget.fallback" -%}{%- assign _tv = mt_t_widget_fallback -%}{%- when "region.named" -%}{%- assign _tv = mt_t_region_named -%}{%- when "region.nth" -%}{%- assign _tv = mt_t_region_nth -%}{%- when "loading.label" -%}{%- assign _tv = mt_t_loading_label -%}{%- when "pages.not_found" -%}{%- assign _tv = mt_t_pages_not_found -%}{%- when "pages.not_found_text" -%}{%- assign _tv = mt_t_pages_not_found_text -%}{%- when "pages.gone" -%}{%- assign _tv = mt_t_pages_gone -%}{%- when "pages.gone_text" -%}{%- assign _tv = mt_t_pages_gone_text -%}{%- when "pages.error" -%}{%- assign _tv = mt_t_pages_error -%}{%- when "pages.error_text" -%}{%- assign _tv = mt_t_pages_error_text -%}{%- when "pages.home" -%}{%- assign _tv = mt_t_pages_home -%}{%- when "pages.moved" -%}{%- assign _tv = mt_t_pages_moved -%}{%- when "pages.moved_link" -%}{%- assign _tv = mt_t_pages_moved_link -%}{%- when "pages.search_hint" -%}{%- assign _tv = mt_t_pages_search_hint -%}{%- when "layouts.all" -%}{%- assign _tv = mt_t_layouts_all -%}{%- when "layouts.filter" -%}{%- assign _tv = mt_t_layouts_filter -%}{%- when "layouts.role" -%}{%- assign _tv = mt_t_layouts_role -%}{%- when "layouts.client" -%}{%- assign _tv = mt_t_layouts_client -%}{%- when "layouts.year" -%}{%- assign _tv = mt_t_layouts_year -%}{%- when "layouts.stack" -%}{%- assign _tv = mt_t_layouts_stack -%}{%- when "layouts.links" -%}{%- assign _tv = mt_t_layouts_links -%}{%- when "layouts.location" -%}{%- assign _tv = mt_t_layouts_location -%}{%- when "layouts.employment" -%}{%- assign _tv = mt_t_layouts_employment -%}{%- when "layouts.salary" -%}{%- assign _tv = mt_t_layouts_salary -%}{%- when "layouts.posted" -%}{%- assign _tv = mt_t_layouts_posted -%}{%- when "layouts.deadline" -%}{%- assign _tv = mt_t_layouts_deadline -%}{%- when "layouts.apply" -%}{%- assign _tv = mt_t_layouts_apply -%}{%- when "layouts.starts" -%}{%- assign _tv = mt_t_layouts_starts -%}{%- when "layouts.ends" -%}{%- assign _tv = mt_t_layouts_ends -%}{%- when "layouts.venue" -%}{%- assign _tv = mt_t_layouts_venue -%}{%- when "layouts.online" -%}{%- assign _tv = mt_t_layouts_online -%}{%- when "layouts.agenda" -%}{%- assign _tv = mt_t_layouts_agenda -%}{%- when "layouts.tickets" -%}{%- assign _tv = mt_t_layouts_tickets -%}{%- when "layouts.price" -%}{%- assign _tv = mt_t_layouts_price -%}{%- when "layouts.free" -%}{%- assign _tv = mt_t_layouts_free -%}{%- when "layouts.releases_feed" -%}{%- assign _tv = mt_t_layouts_releases_feed -%}{%- when "layouts.calendar" -%}{%- assign _tv = mt_t_layouts_calendar -%}{%- when "layouts.episode" -%}{%- assign _tv = mt_t_layouts_episode -%}{%- when "layouts.season" -%}{%- assign _tv = mt_t_layouts_season -%}{%- when "layouts.duration" -%}{%- assign _tv = mt_t_layouts_duration -%}{%- when "layouts.listen" -%}{%- assign _tv = mt_t_layouts_listen -%}{%- when "layouts.transcript" -%}{%- assign _tv = mt_t_layouts_transcript -%}{%- when "layouts.monthly" -%}{%- assign _tv = mt_t_layouts_monthly -%}{%- when "layouts.yearly" -%}{%- assign _tv = mt_t_layouts_yearly -%}{%- when "layouts.billing" -%}{%- assign _tv = mt_t_layouts_billing -%}{%- when "layouts.popular" -%}{%- assign _tv = mt_t_layouts_popular -%}{%- when "layouts.download" -%}{%- assign _tv = mt_t_layouts_download -%}{%- when "layouts.version" -%}{%- assign _tv = mt_t_layouts_version -%}{%- when "layouts.colors" -%}{%- assign _tv = mt_t_layouts_colors -%}{%- when "layouts.assets" -%}{%- assign _tv = mt_t_layouts_assets -%}{%- when "layouts.send" -%}{%- assign _tv = mt_t_layouts_send -%}{%- when "layouts.name" -%}{%- assign _tv = mt_t_layouts_name -%}{%- when "layouts.email" -%}{%- assign _tv = mt_t_layouts_email -%}{%- when "layouts.message" -%}{%- assign _tv = mt_t_layouts_message -%}{%- when "layouts.contact" -%}{%- assign _tv = mt_t_layouts_contact -%}{%- when "layouts.added" -%}{%- assign _tv = mt_t_layouts_added -%}{%- when "layouts.changed" -%}{%- assign _tv = mt_t_layouts_changed -%}{%- when "layouts.fixed" -%}{%- assign _tv = mt_t_layouts_fixed -%}{%- when "layouts.removed" -%}{%- assign _tv = mt_t_layouts_removed -%}{%- when "layouts.security" -%}{%- assign _tv = mt_t_layouts_security -%}{%- when "layouts.now" -%}{%- assign _tv = mt_t_layouts_now -%}{%- when "layouts.next" -%}{%- assign _tv = mt_t_layouts_next -%}{%- when "layouts.later" -%}{%- assign _tv = mt_t_layouts_later -%}{%- when "layouts.letters" -%}{%- assign _tv = mt_t_layouts_letters -%}{%- when "layouts.lessons" -%}{%- assign _tv = mt_t_layouts_lessons -%}{%- when "layouts.minutes" -%}{%- assign _tv = mt_t_layouts_minutes -%}{%- when "layouts.module" -%}{%- assign _tv = mt_t_layouts_module -%}{%- when "layouts.chapter" -%}{%- assign _tv = mt_t_layouts_chapter -%}{%- when "layouts.effective" -%}{%- assign _tv = mt_t_layouts_effective -%}{%- when "layouts.experience" -%}{%- assign _tv = mt_t_layouts_experience -%}{%- when "layouts.education" -%}{%- assign _tv = mt_t_layouts_education -%}{%- when "layouts.skills" -%}{%- assign _tv = mt_t_layouts_skills -%}{%- when "layouts.present" -%}{%- assign _tv = mt_t_layouts_present -%}{%- when "layouts.loading" -%}{%- assign _tv = mt_t_layouts_loading -%}{%- when "layouts.contents" -%}{%- assign _tv = mt_t_layouts_contents -%}{%- when "showcase.region" -%}{%- assign _tv = mt_t_showcase_region -%}{%- when "showcase.theme" -%}{%- assign _tv = mt_t_showcase_theme -%}{%- when "showcase.demo" -%}{%- assign _tv = mt_t_showcase_demo -%}{%- when "showcase.docs" -%}{%- assign _tv = mt_t_showcase_docs -%}{%- when "showcase.docs_short" -%}{%- assign _tv = mt_t_showcase_docs_short -%}{%- when "showcase.use" -%}{%- assign _tv = mt_t_showcase_use -%}{%- when "showcase.dismiss" -%}{%- assign _tv = mt_t_showcase_dismiss -%}{%- when "showcase.starters.docs" -%}{%- assign _tv = mt_t_showcase_starters_docs -%}{%- when "showcase.starters.blog" -%}{%- assign _tv = mt_t_showcase_starters_blog -%}{%- when "showcase.starters.landing" -%}{%- assign _tv = mt_t_showcase_starters_landing -%}{%- when "pwa.offline_title" -%}{%- assign _tv = mt_t_pwa_offline_title -%}{%- when "pwa.offline_text" -%}{%- assign _tv = mt_t_pwa_offline_text -%}{%- when "pwa.offline_pages" -%}{%- assign _tv = mt_t_pwa_offline_pages -%}{%- when "pwa.retry" -%}{%- assign _tv = mt_t_pwa_retry -%}{%- when "pwa.update" -%}{%- assign _tv = mt_t_pwa_update -%}{%- when "pwa.reload" -%}{%- assign _tv = mt_t_pwa_reload -%}{%- when "pwa.later" -%}{%- assign _tv = mt_t_pwa_later -%}{%- when "pwa.offline_notice" -%}{%- assign _tv = mt_t_pwa_offline_notice -%}{%- when "pwa.close" -%}{%- assign _tv = mt_t_pwa_close -%}{%- when "pwa.install" -%}{%- assign _tv = mt_t_pwa_install -%}{%- when "pwa.install_hint" -%}{%- assign _tv = mt_t_pwa_install_hint -%}{%- when "language" -%}{%- capture _tv -%}{%- include modootoday/i18n/name.html code=mt_t_lang -%}{%- endcapture -%}{%- assign _tv = site.data.i18n[mt_t_lang].language | default: _tv -%}{%- else -%}{%- assign _tv = include.key -%}{%- endcase -%}
5
5
  {%- if include.n -%}{%- assign _tv = _tv | replace: "%{n}", include.n -%}{%- endif -%}
6
6
  {%- if include.name -%}{%- assign _tv = _tv | replace: "%{name}", include.name -%}{%- endif -%}
7
7
  {{- _tv -}}
@@ -2,6 +2,7 @@
2
2
  Browser UI colour (iOS Safari, Android Chrome address bar) matching the page background tokens.
3
3
  site.modootoday.theme_color false drops the tags; {light: "#hex", dark: "#hex"} or one "#hex" replaces the defaults
4
4
  Defaults follow --mt-background: #ffffff light, #0a0a0a dark. With color_scheme light/dark only that colour is emitted.
5
+ Leaves _tcl and _tcd set (unset with theme_color: false); pwa/manifest.json reads them.
5
6
  {%- endcomment -%}
6
7
  {%- assign _tc = site.modootoday.theme_color -%}
7
8
  {%- unless _tc == false -%}
@@ -1,2 +1,2 @@
1
1
  {%- comment -%}Generated by script/version-include from the gemspec; do not edit. Sets mt_version.{%- endcomment -%}
2
- {%- assign mt_version = "1.5.0" -%}
2
+ {%- assign mt_version = "1.7.0" -%}