jekyll-theme-modootoday 1.6.0 → 1.7.1

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 (168) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +95 -1
  3. data/README.ja.md +149 -0
  4. data/README.ko.md +21 -21
  5. data/README.md +20 -18
  6. data/RULES.md +8 -4
  7. data/_includes/modootoday/assets/build.html +6 -0
  8. data/_includes/modootoday/assets/registry.html +14 -6
  9. data/_includes/modootoday/assets/scripts.html +2 -0
  10. data/_includes/modootoday/assets/sheets.html +6 -3
  11. data/_includes/modootoday/blog/subscribe.html +5 -0
  12. data/_includes/modootoday/brand/icon.html +2 -1
  13. data/_includes/modootoday/chrome/banner-text.html +19 -0
  14. data/_includes/modootoday/chrome/banner.html +5 -0
  15. data/_includes/modootoday/config.html +2 -1
  16. data/_includes/modootoday/detail/cta.html +1 -1
  17. data/_includes/modootoday/detail/facts.html +1 -0
  18. data/_includes/modootoday/detail/jsonld.html +6 -1
  19. data/_includes/modootoday/detail/page.html +1 -0
  20. data/_includes/modootoday/detail/tickets.html +6 -0
  21. data/_includes/modootoday/docs-extra/feed-entries.html +24 -0
  22. data/_includes/modootoday/docs-extra/head.html +7 -1
  23. data/_includes/modootoday/head-meta.html +17 -9
  24. data/_includes/modootoday/i18n/ar.html +1 -1
  25. data/_includes/modootoday/i18n/de.html +1 -1
  26. data/_includes/modootoday/i18n/el.html +1 -1
  27. data/_includes/modootoday/i18n/es.html +1 -1
  28. data/_includes/modootoday/i18n/fa.html +1 -1
  29. data/_includes/modootoday/i18n/fr.html +1 -1
  30. data/_includes/modootoday/i18n/id.html +1 -1
  31. data/_includes/modootoday/i18n/it.html +1 -1
  32. data/_includes/modootoday/i18n/ja.html +1 -1
  33. data/_includes/modootoday/i18n/ko.html +1 -1
  34. data/_includes/modootoday/i18n/ml.html +1 -1
  35. data/_includes/modootoday/i18n/pl.html +1 -1
  36. data/_includes/modootoday/i18n/pt-BR.html +1 -1
  37. data/_includes/modootoday/i18n/ro.html +1 -1
  38. data/_includes/modootoday/i18n/ru.html +1 -1
  39. data/_includes/modootoday/i18n/th.html +1 -1
  40. data/_includes/modootoday/i18n/tr.html +1 -1
  41. data/_includes/modootoday/i18n/uk.html +1 -1
  42. data/_includes/modootoday/i18n/ur-Latn.html +1 -1
  43. data/_includes/modootoday/i18n/vi.html +1 -1
  44. data/_includes/modootoday/i18n/zh-CN.html +1 -1
  45. data/_includes/modootoday/i18n/zh-TW.html +1 -1
  46. data/_includes/modootoday/i18n.html +176 -152
  47. data/_includes/modootoday/jsonld/graph.html +1 -1
  48. data/_includes/modootoday/links/markdown.html +105 -0
  49. data/_includes/modootoday/lookup/paths.html +8 -0
  50. data/_includes/modootoday/markdown/anchors.html +26 -0
  51. data/_includes/modootoday/markdown/c/install.html +6 -0
  52. data/_includes/modootoday/markdown/figures/diagrams.html +3 -2
  53. data/_includes/modootoday/markdown/inline.html +3 -1
  54. data/_includes/modootoday/markdown/raw-body.html +5 -1
  55. data/_includes/modootoday/markdown/sections.html +9 -3
  56. data/_includes/modootoday/meta/feed-url.html +13 -0
  57. data/_includes/modootoday/meta/feedback.html +14 -0
  58. data/_includes/modootoday/meta/feeds.html +14 -0
  59. data/_includes/modootoday/meta/github.html +15 -0
  60. data/_includes/modootoday/meta/og-image.html +15 -0
  61. data/_includes/modootoday/meta/releases-feed.html +5 -0
  62. data/_includes/modootoday/page-meta.html +22 -4
  63. data/_includes/modootoday/pwa/head.html +7 -0
  64. data/_includes/modootoday/pwa/manifest.json +54 -0
  65. data/_includes/modootoday/pwa/offline-assets.html +10 -0
  66. data/_includes/modootoday/pwa/precache.html +21 -0
  67. data/_includes/modootoday/pwa/sw.js +36 -0
  68. data/_includes/modootoday/site/dir.html +5 -0
  69. data/_includes/modootoday/stylesheets.html +5 -1
  70. data/_includes/modootoday/t.html +1 -1
  71. data/_includes/modootoday/theme-color.html +1 -0
  72. data/_includes/modootoday/toc.html +2 -1
  73. data/_includes/modootoday/version.html +1 -1
  74. data/_layouts/archive.html +2 -1
  75. data/_layouts/author.html +1 -0
  76. data/_layouts/blog.html +1 -0
  77. data/_layouts/default.html +8 -8
  78. data/_layouts/doc.html +1 -0
  79. data/_layouts/feed.html +14 -5
  80. data/_layouts/llms-full.html +1 -1
  81. data/_layouts/pages/offline.html +14 -0
  82. data/_layouts/redirect.html +1 -2
  83. data/_layouts/twin.html +1 -1
  84. data/_sass/modootoday/components/content/_anchor.scss +9 -0
  85. data/_sass/modootoday/components/doc/_sidebar.scss +3 -1
  86. data/_sass/modootoday/components/doc/_toc.scss +4 -0
  87. data/_sass/modootoday/components/media/_diagram.scss +3 -1
  88. data/_sass/modootoday/components/section/showcase/_install.scss +14 -0
  89. data/_sass/modootoday/layout/_page-meta.scss +5 -1
  90. data/_sass/modootoday/print/_sheet.scss +17 -0
  91. data/_sass/modootoday/pwa/_toast.scss +16 -0
  92. data/_sass/modootoday.scss +1 -0
  93. data/assets/css/modootoday/chrome/print.scss +5 -0
  94. data/assets/css/modootoday/chrome/toast.scss +8 -0
  95. data/assets/css/modootoday/content/anchor.scss +7 -0
  96. data/assets/css/modootoday/showcase/install.scss +7 -0
  97. data/assets/js/modootoday/pwa/install.js +60 -0
  98. data/assets/js/modootoday/pwa/offline.js +33 -0
  99. data/assets/js/modootoday/pwa/register.js +79 -0
  100. data/assets/js/modootoday/pwa/update-toast.js +75 -0
  101. data/assets/js/modootoday/pwa/worker.js +150 -0
  102. data/assets/js/modootoday/structure/toc-spy.js +125 -0
  103. data/assets/modootoday/icon-192.png +0 -0
  104. data/assets/modootoday/icon-512.png +0 -0
  105. data/assets/modootoday/icon-maskable-512.png +0 -0
  106. data/i18n/ar.yml +19 -2
  107. data/i18n/de.yml +19 -2
  108. data/i18n/el.yml +19 -2
  109. data/i18n/en.yml +19 -2
  110. data/i18n/es.yml +19 -2
  111. data/i18n/fa.yml +19 -2
  112. data/i18n/fr.yml +19 -2
  113. data/i18n/glossary.yml +21 -3
  114. data/i18n/id.yml +19 -2
  115. data/i18n/it.yml +19 -2
  116. data/i18n/ja.yml +19 -2
  117. data/i18n/ko.yml +19 -2
  118. data/i18n/ml.yml +19 -2
  119. data/i18n/pl.yml +19 -2
  120. data/i18n/pt-BR.yml +19 -2
  121. data/i18n/ro.yml +19 -2
  122. data/i18n/ru.yml +19 -2
  123. data/i18n/th.yml +19 -2
  124. data/i18n/tr.yml +19 -2
  125. data/i18n/uk.yml +19 -2
  126. data/i18n/ur-Latn.yml +19 -2
  127. data/i18n/vi.yml +19 -2
  128. data/i18n/zh-CN.yml +19 -2
  129. data/i18n/zh-TW.yml +19 -2
  130. data/lib/modootoday/check/build/feeds.rb +63 -0
  131. data/lib/modootoday/check/build/links.rb +83 -0
  132. data/lib/modootoday/check/build/pwa/manifest.rb +61 -0
  133. data/lib/modootoday/check/build/pwa/precache.rb +38 -0
  134. data/lib/modootoday/check/build/pwa/worker.rb +55 -0
  135. data/lib/modootoday/check/build/pwa.rb +55 -0
  136. data/lib/modootoday/check/build/release_banner.rb +31 -0
  137. data/lib/modootoday/check/build/{aliases.rb → stubs/aliases.rb} +1 -1
  138. data/lib/modootoday/check/build/{records.rb → stubs/records.rb} +1 -1
  139. data/lib/modootoday/check/build/stubs/twin_links.rb +40 -0
  140. data/lib/modootoday/check/build/{twins.rb → stubs/twins.rb} +12 -6
  141. data/lib/modootoday/check/cli.rb +6 -4
  142. data/lib/modootoday/check/config/keys/appearance/brand.rb +28 -0
  143. data/lib/modootoday/check/config/keys/appearance/chrome.rb +11 -1
  144. data/lib/modootoday/check/config/keys/appearance/switches.rb +11 -1
  145. data/lib/modootoday/check/config/keys/figures/renderers.rb +10 -0
  146. data/lib/modootoday/check/config/keys/pages/blog.rb +11 -0
  147. data/lib/modootoday/check/config/keys/pages/content.rb +11 -0
  148. data/lib/modootoday/check/config/keys/pages/edit_url.rb +20 -2
  149. data/lib/modootoday/check/config/keys/pages/feedback.rb +24 -0
  150. data/lib/modootoday/check/config/keys/pages/languages.rb +2 -0
  151. data/lib/modootoday/check/config/keys/serving/pwa.rb +118 -0
  152. data/lib/modootoday/check/config/keys.rb +5 -0
  153. data/lib/modootoday/check/config/site_config.rb +2 -1
  154. data/lib/modootoday/check/config/validate.rb +4 -1
  155. data/lib/modootoday/check/context.rb +27 -3
  156. data/lib/modootoday/check/layouts/detail.rb +24 -6
  157. data/lib/modootoday/check/layouts/directory.rb +1 -1
  158. data/lib/modootoday/check/native/sources.rb +1 -1
  159. data/lib/modootoday/check/page/a11y/new_window.rb +2 -1
  160. data/lib/modootoday/check/page/component_rules.rb +5 -1
  161. data/lib/modootoday/check/page/figures/diagrams.rb +10 -2
  162. data/lib/modootoday/check/registry/i18n_pages.rb +4 -1
  163. data/lib/modootoday/check.rb +8 -3
  164. data/lib/modootoday/markdown.rb +3 -0
  165. data/lib/modootoday/stubs/cli.rb +5 -4
  166. data/lib/modootoday/stubs/pwa.rb +57 -0
  167. data/lib/modootoday/stubs.rb +3 -2
  168. metadata +60 -5
@@ -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|chart|widget|" -%}
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,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 "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 "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 "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.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 "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,5 +1,6 @@
1
1
  {%- comment -%}"On this page" from kramdown auto ids: <h2 id="..."> and <h3 id="...">. Shown with 2+ headings;
2
- front matter toc: false hides it. Usage: {% include modootoday/toc.html html=html %}{%- endcomment -%}
2
+ front matter toc: false hides it. A heading whose first attribute is not its id (an example's result) is left out.
3
+ Usage: {% include modootoday/toc.html html=html %}{%- endcomment -%}
3
4
  {%- if mt_components contains "toc" and page.toc != false -%}
4
5
  {%- assign _parts = include.html | split: '<h' -%}
5
6
  {%- capture _items -%}{%- for _p in _parts offset: 1 -%}
@@ -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.6.0" -%}
2
+ {%- assign mt_version = "1.7.1" -%}
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  layout: doc
3
3
  ---
4
- {%- comment -%}md-components v1 — archive layout: page body, then the tag or category archive (front matter archive: tags | categories | years; default tags).{%- endcomment -%}
4
+ {%- comment -%}md-components v1 — archive layout: page body, then the tag or category archive (front matter archive: tags | categories | years; default tags), and a Subscribe link with feed:.{%- endcomment -%}
5
5
  {{ content }}
6
6
  {% if page.archive == "years" %}{% include modootoday/archive-years.html lang=page.archive_lang %}{% else %}{% include modootoday/archive.html by=page.archive lang=page.archive_lang %}{% endif %}
7
+ {%- include modootoday/blog/subscribe.html -%}
data/_layouts/author.html CHANGED
@@ -13,6 +13,7 @@ layout: default
13
13
  {%- if _au.bio %}<p>{{ _au.bio }}</p>{% endif -%}
14
14
  {%- if _au.url %}<p><a href="{{ _au.url }}" rel="me">{{ _au.url | remove: "https://" | remove: "http://" }}</a></p>{% endif %}</div>
15
15
  </header>
16
+ {%- include modootoday/blog/subscribe.html -%}
16
17
  {%- if content != "" %}<div class="mt-doc">{{ content }}</div>{% endif -%}
17
18
  {%- include modootoday/blog/select.html author=page.author lang=page.posts_lang -%}
18
19
  {% include modootoday/blog/list.html posts=mt_posts variant=page.variant %}
data/_layouts/blog.html CHANGED
@@ -14,6 +14,7 @@ layout: default
14
14
  {%- if content != "" %}
15
15
  <header class="mt-blog-intro mt-doc">{{ content }}</header>
16
16
  {%- endif -%}
17
+ {%- include modootoday/blog/subscribe.html -%}
17
18
  {%- if paginator.posts -%}{%- assign _bp = paginator.posts -%}{%- assign _bmore = false -%}
18
19
  {%- else -%}
19
20
  {%- include modootoday/blog/select.html lang=page.posts_lang category=page.category tag=page.tag -%}
@@ -8,10 +8,8 @@
8
8
  {%- comment -%}mt_home: this language's home (/<lang>/ when that page exists), else the site root; used by the brand link and footers.{%- endcomment -%}
9
9
  {%- assign mt_home = "/" -%}{%- assign _def_lang = site.lang | default: "en" -%}
10
10
  {%- if _lang != _def_lang -%}{%- assign _lh = "/" | append: _lang | append: "/" -%}{%- include modootoday/lookup/urls.html -%}{%- assign _lhk = "|" | append: _lh | append: "|" -%}{%- if mt_page_urls contains _lhk -%}{%- assign mt_home = _lh -%}{%- endif -%}{%- endif -%}
11
- {%- assign _rtl = "ar fa he ur yi ps sd ug dv ckb" | split: " " -%}
12
- {%- assign _base = _lang | split: "-" | first -%}
13
- {%- if _rtl contains _base %}{% assign _dir = "rtl" %}{% else %}{% assign _dir = nil %}{% endif -%}
14
- {%- assign _dir = page.direction | default: mt_t_direction | default: _dir -%}
11
+ {%- include modootoday/site/dir.html lang=_lang -%}
12
+ {%- assign _dir = page.direction | default: mt_dir -%}
15
13
  <html lang="{{ _lang }}"{% if _dir %} dir="{{ _dir }}"{% endif %}{% if mt_theme_start %} data-theme="{{ mt_theme_start }}"{% endif %}{% if mt_showcase %} data-mt-showcase="{{ mt_showcase_style }}"{% endif %} data-mt-copy="{{ mt_t_code_copy }}" data-mt-copied="{{ mt_t_code_copied }}" data-mt-code="{{ mt_t_code_label }}" data-mt-table="{{ mt_t_table_label }}" data-mt-region-named="{{ mt_t_region_named }}" data-mt-region-nth="{{ mt_t_region_nth }}" data-mt-diagram="{{ mt_t_diagram_label }}">
16
14
  <head>
17
15
  <meta charset="utf-8">
@@ -27,6 +25,8 @@
27
25
  {%- include modootoday/theme-color.html %}
28
26
  {%- include modootoday/head-meta.html %}
29
27
  {%- include modootoday/stylesheets.html %}
28
+ {%- comment -%}With cached sheets a slow page would paint a half-parsed header; Chromium holds the first frame until main starts.{%- endcomment %}
29
+ <link rel="expect" href="#mt-main" blocking="render">
30
30
  {%- include modootoday/tokens.html %}
31
31
  {%- include modootoday/doc/twin.html -%}
32
32
  {%- if mt_twin %}
@@ -39,15 +39,15 @@
39
39
  <link rel="describedby" type="text/plain" href="{{ _ll | relative_url }}">
40
40
  {%- endif %}
41
41
  {%- include head-custom.html %}
42
+ {%- comment -%}mt-body-sidebar: a layout with mt_sidebar (doc) on a site with a sidebar widens the shell. It sits on body, before
43
+ the header, so the header has its width in the first frame even when the HTML streams in slowly.{%- endcomment %}
42
44
  </head>
43
- <body class="mt-body"{% unless site.modootoday.external_links.icon == false %} data-mt-nw-icon{% endunless %}>
45
+ <body class="mt-body{% if layout.mt_sidebar and mt_sidebar %} mt-body-sidebar{% endif %}"{% unless site.modootoday.external_links.icon == false %} data-mt-nw-icon{% endunless %}>
44
46
  <a class="mt-skip" href="#{% if content contains 'id="mt-content"' %}mt-content{% else %}mt-main{% endif %}">{{ mt_t_skip }}</a>
45
47
  {%- if mt_showcase %}
46
48
  {% include modootoday/chrome/showcase.html %}
47
49
  {%- endif %}
48
- {%- assign _bn = site.modootoday.banner -%}{%- if mt_components contains "banner" and _bn.text %}
49
- <div class="mt-banner" role="region" aria-label="{{ mt_t_banner_label }}"><p>{{ _bn.text }}{% if _bn.url %} <a href="{% include modootoday/link.html url=_bn.url %}"{% include modootoday/links/attrs.html on=_bn.new_window target=_bn.target url=_bn.url %}>{{ _bn.link | default: _bn.url }}</a>{% endif %}</p></div>
50
- {%- endif %}
50
+ {%- include modootoday/chrome/banner.html -%}
51
51
  {%- assign _chrome = true -%}{%- if layout.mt_chrome == false or page.chrome == false -%}{%- assign _chrome = false -%}{%- endif -%}
52
52
  {%- if site.title and _chrome %}
53
53
  <header class="mt-header"><div class="mt-header-inner"><a class="mt-site-title{% if site.modootoday.logo %} mt-has-logo{% unless site.modootoday.header.compact_title == false %} mt-compact-title{% endunless %}{% endif %}" href="{{ mt_home | relative_url }}">{% include modootoday/brand/logo.html %}<span class="mt-site-name">{{ mt_site_title | replace: ".", ".<wbr>" }}</span></a>{% include modootoday/nav.html %}{% if mt_components contains "search" and mt_search_index %}<div class="mt-search" role="search" data-index="{{ '/search.json' | relative_url }}" data-lang="{{ site.lang | default: 'en' }}"{% if site.modootoday.search.match %} data-match="{{ site.modootoday.search.match }}"{% endif %}{% if site.modootoday.search.compact == true %} data-compact{% endif %}{% if site.modootoday.search.results %} data-results="{{ site.modootoday.search.results }}"{% endif %} hidden>{% include modootoday/brand/icon.html name="search" size=16 %}<input type="search" aria-keyshortcuts="/ Control+K Meta+K" aria-controls="mt-search-results" aria-label="{{ mt_t_search_label }}" placeholder="{{ mt_t_search_label }}"><ul class="mt-search-results" id="mt-search-results" aria-live="polite"></ul></div>{% endif %}{% if site.modootoday.language_switcher == "header" %}{% include modootoday/lang-switch.html style="menu" %}{% endif %}{% if mt_components contains "theme-toggle" and mt_theme_toggle %}<button class="mt-theme-toggle" type="button" aria-pressed="false" aria-label="{{ mt_t_theme_toggle }}" title="{{ mt_t_theme_toggle }}" hidden>{% include modootoday/brand/icon.html name="moon" %}{% include modootoday/brand/icon.html name="sun" %}</button>{% endif %}</div></header>
data/_layouts/doc.html CHANGED
@@ -1,5 +1,6 @@
1
1
  ---
2
2
  mt_sheets: [doc]
3
+ mt_sidebar: true
3
4
  layout: default
4
5
  ---
5
6
  {%- comment -%}md-components v1 — doc layout: alerts/badges, then optional sections.{%- endcomment -%}
data/_layouts/feed.html CHANGED
@@ -2,20 +2,29 @@
2
2
  ---
3
3
  layout: feed
4
4
  ---
5
- Front matter: feed_lang (default page.lang or site.lang; "all" mixes), limit (default 20), category / tag (filtered feed).
6
- Content is the post's excerpt unless feed_content: full. Authors: site/author.html.{%- endcomment -%}
5
+ Front matter: feed_lang (default page.lang or site.lang; "all" mixes), limit (default 20), category / tag / author (filtered feed).
6
+ Content is the post's excerpt unless feed_content: full. Authors: site/author.html.
7
+ feed_source: a changelog instead of posts: "data" (the generated _data/releases.yml) or the URL of a layout: changelog
8
+ page; one entry per release (docs-extra/feed-entries.html), linking to home: (default the source page).{%- endcomment -%}
7
9
  {%- assign _fl = page.feed_lang | default: page.lang | default: site.lang | default: "en" -%}
8
- {%- include modootoday/blog/select.html lang=_fl category=page.category tag=page.tag -%}
10
+ {%- include modootoday/blog/select.html lang=_fl category=page.category tag=page.tag author=page.author -%}
9
11
  {%- assign _flim = page.limit | default: 20 -%}
12
+ {%- if page.feed_source -%}
13
+ {%- assign _frel = nil -%}{%- assign _fhome = page.home -%}
14
+ {%- if page.feed_source == "data" -%}{%- assign _frel = site.data.releases -%}
15
+ {%- else -%}{%- include modootoday/lookup/page.html url=page.feed_source -%}{%- assign _frel = mt_lookup_page.releases -%}{%- assign _fhome = _fhome | default: page.feed_source -%}{%- endif -%}
16
+ {%- unless _frel -%}{%- assign _frel = "" | split: "" -%}{%- endunless -%}
17
+ {%- endif -%}
10
18
  <?xml version="1.0" encoding="utf-8"?>
11
19
  <feed xmlns="http://www.w3.org/2005/Atom"{% unless _fl == "all" %} xml:lang="{{ _fl }}"{% endunless %}>
12
20
  <title>{{ page.feed_title | default: site.title | xml_escape }}</title>
13
21
  {%- if site.description %}<subtitle>{{ site.description | xml_escape }}</subtitle>{% endif %}
14
22
  <link href="{{ page.url | absolute_url }}" rel="self" type="application/atom+xml"/>
15
- <link href="{{ page.home | default: '/' | absolute_url }}" rel="alternate" type="text/html"/>
23
+ <link href="{{ _fhome | default: page.home | default: '/' | absolute_url }}" rel="alternate" type="text/html"/>
16
24
  <id>{{ page.url | absolute_url | xml_escape }}</id>
17
- <updated>{% if mt_posts.size > 0 %}{{ mt_posts.first.last_modified_at | default: mt_posts.first.date | date_to_xmlschema }}{% else %}{{ site.time | date_to_xmlschema }}{% endif %}</updated>
25
+ <updated>{% if page.feed_source %}{% if _frel.size > 0 %}{{ _frel.first.date | date_to_xmlschema }}{% else %}{{ site.time | date_to_xmlschema }}{% endif %}{% elsif mt_posts.size > 0 %}{{ mt_posts.first.last_modified_at | default: mt_posts.first.date | date_to_xmlschema }}{% else %}{{ site.time | date_to_xmlschema }}{% endif %}</updated>
18
26
  <generator uri="https://github.com/modootoday/jekyll-theme-modootoday">jekyll-theme-modootoday</generator>
27
+ {%- if page.feed_source -%}{%- include modootoday/docs-extra/feed-entries.html releases=_frel home=_fhome limit=_flim -%}{%- assign mt_posts = "" | split: "" -%}{%- endif -%}
19
28
  {%- for _p in mt_posts limit: _flim %}
20
29
  <entry>
21
30
  <title type="html">{{ _p.title | strip_html | xml_escape }}</title>
@@ -1,4 +1,4 @@
1
- {%- comment -%}md-components v1 llms-full.txt: the source body of every page of this language under this directory, byte-for-byte (plus a reference page's packages: table as Markdown), separated by a blank line. Use from a stub: front matter `layout: llms-full` only.{%- endcomment -%}
1
+ {%- comment -%}md-components v1 llms-full.txt: the source body of every page of this language under this directory, byte-for-byte except that links naming a source file point at site URLs (plus a reference page's packages: table as Markdown), separated by a blank line. Use from a stub: front matter `layout: llms-full` only.{%- endcomment -%}
2
2
  {%- include modootoday/markdown/llms-pages.html -%}
3
3
  {%- for _p in _llms_pages -%}
4
4
  {%- assign _rel = _p.path | remove_first: _llms_dir -%}
@@ -0,0 +1,14 @@
1
+ ---
2
+ layout: minimal
3
+ mt_main: mt-shell-minimal mt-error
4
+ mt_noindex: true
5
+ ---
6
+ {%- comment -%}pages/offline: what the service worker shows for a page it has no copy of (modootoday.pwa; stubs offline.md and
7
+ offline.<lang>.md). Try again reloads the requested URL with no script; pwa/offline.js fills the list of cached pages. The
8
+ files it links are precached (pwa/offline-assets.html).{%- endcomment -%}
9
+ {%- include modootoday/i18n.html -%}{%- include modootoday/home-url.html -%}
10
+ <h1>{{ page.heading | default: mt_t_pwa_offline_title }}</h1>
11
+ <p>{{ mt_t_pwa_offline_text }}</p>
12
+ {{ content }}
13
+ <p class="mt-actions"><a href="">{{ mt_t_pwa_retry }}</a> <a href="{{ mt_home | relative_url }}">{{ mt_t_pages_home }}</a></p>
14
+ <section data-mt-offline aria-labelledby="mt-offline-pages" hidden><h2 id="mt-offline-pages">{{ mt_t_pwa_offline_pages }}</h2><ul></ul></section>