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
data/README.md CHANGED
@@ -6,17 +6,17 @@ A Jekyll theme that keeps page bodies in plain GitHub Markdown and styles them w
6
6
  [![Gem Version](https://img.shields.io/gem/v/jekyll-theme-modootoday)](https://rubygems.org/gems/jekyll-theme-modootoday)
7
7
  [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
8
8
 
9
- [Documentation](https://modootoday.github.io/jekyll-theme-modootoday/) · [한국어](README.ko.md)
9
+ [Documentation](https://modootoday.github.io/jekyll-theme-modootoday/) · [한국어](README.ko.md) · [日本語](README.ja.md)
10
10
 
11
11
  ## Why
12
12
 
13
13
  - **Only standard Markdown in your pages.** GFM plus GitHub alerts; the same file reads well on github.com.
14
14
  - **Works on GitHub Pages.** Layouts and includes are Liquid only, so `remote_theme` works on the classic build; Jekyll 4 works too.
15
15
  - **Components without markup.** Alerts, status badges, card grids, tabs, buttons, accordion, steps, timeline and more come from plain Markdown patterns.
16
- - **Page families.** About 40 layouts beyond docs: home, blog and news, directory (team, jobs, events, sponsors, portfolio), detail pages, marketing (pricing, feature, contact, links), documents (legal, resume) and docs extras (reference, changelog, roadmap, glossary, course, book).
16
+ - **Page families.** Layouts beyond docs ([the full list](https://modootoday.github.io/jekyll-theme-modootoday/reference/api/#layouts)): home, blog and news, directory (team, jobs, events, sponsors, portfolio), detail pages, marketing (pricing, feature, contact, links), documents (legal, resume) and docs extras (reference, changelog, roadmap, glossary, course, book).
17
17
  - **Sections that look designed.** `sections:` items take options such as `c: split` with a `visual:` include or code, full-width `bleed:` bands, `reveal:` fade-ins and four-column cards; a split hero works the same way.
18
18
  - **23 languages, LTR and RTL.** Theme labels ship localized for 23 languages, with a language menu, `hreflang` and right-to-left layouts.
19
- - **Readable by agents.** Every page can have a byte-identical Markdown twin, plus `llms.txt` and `llms-full.txt`.
19
+ - **Readable by agents.** Every page can have a Markdown twin of its source text, plus `llms.txt` and `llms-full.txt`.
20
20
  - **Accessible.** Keyboard shortcuts, visible focus, safe areas on phones, 44 px touch targets, high contrast and reduced motion are built in.
21
21
  - **Checked.** `modootoday-check` validates the sources and the built site.
22
22
  - **Optional extras.** Search, a light/dark toggle, Mermaid diagrams and KaTeX math (off by default, loaded only on pages that use them), static diagrams and math from SVG files and MathML you commit, and schema.org JSON-LD.
@@ -27,7 +27,7 @@ As a gem (`theme:`):
27
27
 
28
28
  ```ruby
29
29
  # Gemfile
30
- gem "jekyll-theme-modootoday", "~> 1.6"
30
+ gem "jekyll-theme-modootoday", "~> 1.7"
31
31
  ```
32
32
 
33
33
  ```yaml
@@ -39,18 +39,17 @@ On GitHub Pages without a Gemfile (`remote_theme:`):
39
39
 
40
40
  ```yaml
41
41
  # _config.yml
42
- remote_theme: modootoday/jekyll-theme-modootoday@v1.6.0
43
- plugins:
44
- - jekyll-remote-theme
42
+ remote_theme: modootoday/jekyll-theme-modootoday@v1.7.1
43
+ plugins: [jekyll-remote-theme]
45
44
  ```
46
45
 
47
- Pin a tag or a commit. More options: [Install guide](https://modootoday.github.io/jekyll-theme-modootoday/guides/install/).
46
+ Pin a tag or a commit. The [Install guide](https://modootoday.github.io/jekyll-theme-modootoday/guides/install/) has the minimal configuration, the checker and the starter sites.
48
47
 
49
48
  ## Quick start
50
49
 
51
50
  ```sh
52
51
  mkdir my-docs && cd my-docs
53
- printf 'source "https://rubygems.org"\ngem "jekyll", "~> 4.4"\ngem "jekyll-theme-modootoday", "~> 1.6"\n' > Gemfile
52
+ printf 'source "https://rubygems.org"\ngem "jekyll", "~> 4.4"\ngem "jekyll-theme-modootoday", "~> 1.7"\n' > Gemfile
54
53
  printf 'theme: jekyll-theme-modootoday\nmarkdown: kramdown\nkramdown: {input: GFM}\nsass: {style: compressed, silence_deprecations: [import, global-builtin]}\n' > _config.yml
55
54
  printf -- '---\nlayout: doc\ntitle: Home\n---\n# Hello\n\n> [!TIP]\n> Plain Markdown, styled.\n' > index.md
56
55
  bundle install && bundle exec jekyll build
@@ -67,19 +66,21 @@ Walkthrough: [Write your first page](https://modootoday.github.io/jekyll-theme-m
67
66
  - **Settings and tokens.** One `modootoday:` block in `_config.yml`, CSS custom properties `--mt-*` that a site sets from one Sass hook (`_sass/modootoday/_site.scss`, no inline style), one Sass partial per component. See [Configuration](https://modootoday.github.io/jekyll-theme-modootoday/guides/configuration/) and [Customize](https://modootoday.github.io/jekyll-theme-modootoday/guides/customize/).
68
67
  - **Blog and news.** `blog`, `news`, `news-article`, `author` and `feed` layouts: paginated card lists (list, grid, magazine), bylines from `_data/authors.yml`, series, related posts, share, JSON-LD, per-language Atom feeds; Liquid only, styles and script in an optional bundle. See [Blog and news](https://modootoday.github.io/jekyll-theme-modootoday/layouts/blog-news/).
69
68
  - **Pages from data.** `modootoday.records` gives every record of a `_data` file its own page on classic Pages: `modootoday-stubs --records` writes one front-matter-only page per record, a directory page with `records:` lists them, and `modootoday-check --byte-exact=api` proves a folder is published byte for byte. See [Generated pages](https://modootoday.github.io/jekyll-theme-modootoday/recipes/generated-pages/).
70
- - **Twins: three ways** — stub files (default, classic Pages), the `jekyll-theme-modootoday` plugin (Jekyll 4 / Actions), or `modootoday.twins: source` with front-matter-less pages (classic Pages, no stubs). See [RULES.md §5a](RULES.md#5a-markdown-twins).
69
+ - **Twins.** Every page can have a Markdown twin for agents, published in one of three ways; see [AI agents](#ai-agents) below.
71
70
 
72
71
  ## Commands
73
72
 
74
- `modootoday-check SRC SITE [options]` (run after `jekyll build`):
73
+ Both commands are also listed on the [Command line](https://modootoday.github.io/jekyll-theme-modootoday/reference/cli/) page. `modootoday-check SRC SITE [options]` (run after `jekyll build`):
75
74
 
76
75
  <!-- commands:begin (generated by script/readme-commands; do not edit) -->
77
76
  | Option | Checks |
78
77
  |---|---|
79
- | `SRC SITE` | always: front matter, forbidden syntax, alerts, fence info strings, `status:`/`tag:`/`kbd:` values (`since:` is rejected), `sections:` count, `_data/i18n/<lang>.yml` keys against the default language and translated pages against default-language pages, `_data/components.yml` (keys, slot contract counts per section, `parts` against `api.md` and the built HTML), Sass/CSS rules, the token hook `_sass/modootoday/_site.scss` (only the three override maps, known token names), `site_css`, `preload` and `scripts` files present in the build, `script:` and `poster:` on hero and section items (a registered script, a sized poster that exists), `filter:` on section items and pages (a list or table to filter, a `facet` column the table has), `chart:` lines and `c: chart` sections (a type and options, a table or a `_data/charts` file, number cells), `widget:` lines, `widget_props` and `c: widget` sections (an element a `modootoday.scripts` entry defines, plain prop values, a lead paragraph), `diagrams:` (an entry per Mermaid fence, `alt`, the SVG files, an SVG drawn from another fence), static math (an entry per math block in `_data/math`, entries rendered from other TeX, no inline math),`modootoday.search` keys and collections, `modootoday.showcase` (also in `_config.demo.yml`) and, while it is enabled, the robots `noindex` on every built page (warning), `search.json` over 1.5 MB (warning), unconverted markers in the build, schema.org JSON-LD in the build (valid JSON, vocabulary, required properties per type, absolute URLs, ISO 8601 dates, one graph per page, agreement with Open Graph, a `DefinedTerm` page's `term_set` glossary), `modootoday.schema.faq`, `modootoday.records` (a page per record and a record per page, as `modootoday-stubs --records --check` judges) |
80
- | `--twins` | every page has a byte-identical Markdown twin, per-language `llms.txt` and `llms-full.txt` |
78
+ | `SRC SITE` | always: front matter, forbidden syntax, alerts, fence info strings, `status:`/`tag:`/`kbd:` values (`since:` is rejected), `sections:` count, `feed:` (false, or a site path to an Atom feed page in the build), `_data/i18n/<lang>.yml` keys against the default language and translated pages against default-language pages, `_data/components.yml` (keys, slot contract counts per section, `parts` against `api.md` and the built HTML), Sass/CSS rules, the token hook `_sass/modootoday/_site.scss` (only the three override maps, known token names), `site_css`, `preload` and `scripts` files present in the build, `script:` and `poster:` on hero and section items (a registered script, a sized poster that exists), `filter:` on section items and pages (a list or table to filter, a `facet` column the table has), `chart:` lines and `c: chart` sections (a type and options, a table or a `_data/charts` file, number cells), `widget:` lines, `widget_props` and `c: widget` sections (an element a `modootoday.scripts` entry defines, plain prop values, a lead paragraph), `diagrams:` (an entry per Mermaid fence, `alt`, the SVG files, an SVG drawn from another fence), static math (an entry per math block in `_data/math`, entries rendered from other TeX, no inline math),`modootoday.search` keys and collections, `modootoday.showcase` (also in `_config.demo.yml`) and, while it is enabled, the robots `noindex` on every built page (warning), `search.json` over 1.5 MB (warning), unconverted markers in the build, schema.org JSON-LD in the build (valid JSON, vocabulary, required properties per type, absolute URLs, ISO 8601 dates, one graph per page, agreement with Open Graph, a `DefinedTerm` page's `term_set` glossary), `modootoday.schema.faq`, `modootoday.records` (a page per record and a record per page, as `modootoday-stubs --records --check` judges), `modootoday.pwa` (its keys and icons, the stub `modootoday-stubs --pwa` writes, the built manifest's fields, icon files and their PNG sizes, the manifest link on every page), `modootoday.banner.release: latest` with no release banner on the built home page (warning) |
79
+ | `--twins` | every page has a Markdown twin of its source text (links aimed at the site), per-language `llms.txt` and `llms-full.txt` |
80
+ | `--links` | same-site links in the built HTML (`a`, `link`, `img`, `script`, `source srcset`) point at files that exist and `#` fragments match an `id` or `a[name]` on the target page; external URLs are not fetched; a relative link to a `.md` file that is not in the build names the jekyll-relative-links plugin. Warnings, failures with `--strict`; needs the nokogiri gem, and fails the run without it |
81
81
  | `--aliases` | the URL aliases `modootoday.aliases` declares: `/<page>.md` byte-identical to the twin (`md`), `/<page>.html` redirecting to the page with the page URL as canonical (`html`); two pages with one alias, or an alias over another source file, fail |
82
82
  | `--byte-exact=DIR,...` | files under these source folders (an API, downloads) are in the build with the same sha256; a folder under `_` or `.` or excluded, a file with front matter, or one Jekyll converts (Markdown, Sass) fails |
83
+ | `--config=FILE,...` | read the site settings from these files instead of `SRC/_config.yml`, merged in order with later keys winning, as `jekyll build --config` does; a missing file fails |
83
84
  | `--github-pages[=VERSION]` | `Gemfile.lock` pins `github-pages` VERSION (default 232) |
84
85
  | `--schema-recommended` | also warn about schema.org properties Google Search recommends (author, image, dates, ...) that a JSON-LD node lacks |
85
86
  | `--strict` | warnings fail the run |
@@ -102,6 +103,7 @@ Walkthrough: [Write your first page](https://modootoday.github.io/jekyll-theme-m
102
103
  | `--twins` | a stub `<name>.md.txt` per page (`layout: twin`) for its twin at `/<name>/index.md` |
103
104
  | `--aliases` | the aliases `modootoday.aliases` turns on: `md` a stub `<name>.flat.md.txt` (`layout: twin`) at `/<name>.md`, `html` a stub `<name>.html.md.txt` (`layout: redirect`) at `/<name>.html` |
104
105
  | `--records[=SET,...]` | a page `<dir>/<key>.md` per record of each set in `modootoday.records` (or only the named sets): front matter only, with the title, description, permalink and `record:` the layout reads |
106
+ | `--pwa` | the files `modootoday.pwa` needs (with `enabled: true` or `kill`): `manifest.webmanifest`, the service worker `sw.js` and the offline pages `offline.md` and `offline.<lang>.md` for each `full_languages` entry; never pruned, and a site file already at one of those paths is never overwritten |
105
107
  | `--write` | write the planned stubs; files whose content is already right are not touched |
106
108
  | `--check` | write nothing; exit 1 when a stub is missing, out of date or orphaned |
107
109
  | `--no-prune` | keep orphan stubs (by default a twin stub whose page is gone, an alias stub no page wants, or a record page whose record is gone, is deleted) |
@@ -113,17 +115,17 @@ Walkthrough: [Write your first page](https://modootoday.github.io/jekyll-theme-m
113
115
 
114
116
  ## AI agents
115
117
 
116
- - Each page `guide.md` has a twin at `/guide/index.md` with the same bytes as its body, linked with `rel="alternate" type="text/markdown"`.
118
+ - Each page `guide.md` has a twin at `/guide/index.md` with the text of its body (links that name a source file point at the site), linked with `rel="alternate" type="text/markdown"`.
117
119
  - `llms.txt` and `llms-full.txt` exist at `/` and under each `/<lang>/`.
118
120
  - Jekyll 4: `plugins: [jekyll-theme-modootoday]` creates them; the classic GitHub Pages build uses one-file stubs, which `modootoday-stubs SRC --twins --write` writes.
119
121
  - Optional URL aliases (`modootoday.aliases`): `/guide.md` (the twin again) and `/guide.html` (a redirect to `/guide/`), from `modootoday-stubs SRC --aliases --write`.
120
- - Details: [Agents guide](https://modootoday.github.io/jekyll-theme-modootoday/guides/agents/) and this repository's own [llms.txt](https://modootoday.github.io/jekyll-theme-modootoday/llms.txt).
122
+ - Details, including source mode (front-matter-less pages, no stubs): the [AI agents guide](https://modootoday.github.io/jekyll-theme-modootoday/guides/agents/), the contract in [RULES.md §5a](RULES.md#5a-markdown-twins), and this repository's own [llms.txt](https://modootoday.github.io/jekyll-theme-modootoday/llms.txt).
121
123
 
122
124
  ## Guides
123
125
 
124
126
  - [Documentation site](https://modootoday.github.io/jekyll-theme-modootoday/) (built with this theme from [`docs/`](docs/))
125
- - [Install](https://modootoday.github.io/jekyll-theme-modootoday/guides/install/) · [First page](https://modootoday.github.io/jekyll-theme-modootoday/guides/first-page/) · [Components](https://modootoday.github.io/jekyll-theme-modootoday/components/) · [Configuration](https://modootoday.github.io/jekyll-theme-modootoday/guides/configuration/) · [Customize](https://modootoday.github.io/jekyll-theme-modootoday/guides/customize/) · [Layouts](https://modootoday.github.io/jekyll-theme-modootoday/layouts/) · [Blog and news](https://modootoday.github.io/jekyll-theme-modootoday/layouts/blog-news/) · [Recipes](https://modootoday.github.io/jekyll-theme-modootoday/recipes/) · [Math and diagrams](https://modootoday.github.io/jekyll-theme-modootoday/recipes/math-diagrams/) · [Charts](https://modootoday.github.io/jekyll-theme-modootoday/recipes/charts/) · [Widgets](https://modootoday.github.io/jekyll-theme-modootoday/recipes/widgets/) · [Generated pages](https://modootoday.github.io/jekyll-theme-modootoday/recipes/generated-pages/) · [Translation rules](https://modootoday.github.io/jekyll-theme-modootoday/guides/translation/) · [Structured data](https://modootoday.github.io/jekyll-theme-modootoday/guides/structured-data/) · [Public API](https://modootoday.github.io/jekyll-theme-modootoday/reference/api/) · [Migrate and upgrade](https://modootoday.github.io/jekyll-theme-modootoday/guides/upgrade/) · [CSP](https://modootoday.github.io/jekyll-theme-modootoday/recipes/csp/) · [Accessibility](https://modootoday.github.io/jekyll-theme-modootoday/guides/accessibility/) · [Performance](https://modootoday.github.io/jekyll-theme-modootoday/guides/performance/) · [Roadmap](https://modootoday.github.io/jekyll-theme-modootoday/reference/roadmap/) · [Changelog](CHANGELOG.md)
126
- - Supported stacks: GitHub Pages (`github-pages` 232, Jekyll 3.10, Ruby 3.3.4) and Jekyll 4.4 on Ruby 3.3 to 3.4 (Ruby 4.0 also runs in CI), all tested in CI; Jekyll 3.9 is the tested floor.
127
+ - [Install](https://modootoday.github.io/jekyll-theme-modootoday/guides/install/) · [First page](https://modootoday.github.io/jekyll-theme-modootoday/guides/first-page/) · [Components](https://modootoday.github.io/jekyll-theme-modootoday/components/) · [Configuration](https://modootoday.github.io/jekyll-theme-modootoday/guides/configuration/) · [Customize](https://modootoday.github.io/jekyll-theme-modootoday/guides/customize/) · [Layouts](https://modootoday.github.io/jekyll-theme-modootoday/layouts/) · [Blog and news](https://modootoday.github.io/jekyll-theme-modootoday/layouts/blog-news/) · [Recipes](https://modootoday.github.io/jekyll-theme-modootoday/recipes/) · [Math and diagrams](https://modootoday.github.io/jekyll-theme-modootoday/recipes/figures/math-diagrams/) · [Charts](https://modootoday.github.io/jekyll-theme-modootoday/recipes/figures/charts/) · [Widgets](https://modootoday.github.io/jekyll-theme-modootoday/recipes/figures/widgets/) · [Generated pages](https://modootoday.github.io/jekyll-theme-modootoday/recipes/generated-pages/) · [Search](https://modootoday.github.io/jekyll-theme-modootoday/recipes/search/) · [Brand tokens](https://modootoday.github.io/jekyll-theme-modootoday/recipes/brand-tokens/) · [AI agents](https://modootoday.github.io/jekyll-theme-modootoday/guides/agents/) · [Translation rules](https://modootoday.github.io/jekyll-theme-modootoday/guides/translation/) · [Structured data](https://modootoday.github.io/jekyll-theme-modootoday/guides/structured-data/) · [Public API](https://modootoday.github.io/jekyll-theme-modootoday/reference/api/) · [Command line](https://modootoday.github.io/jekyll-theme-modootoday/reference/cli/) · [Migrate and upgrade](https://modootoday.github.io/jekyll-theme-modootoday/guides/upgrade/) · [CSP](https://modootoday.github.io/jekyll-theme-modootoday/recipes/csp/) · [Accessibility](https://modootoday.github.io/jekyll-theme-modootoday/guides/accessibility/) · [Performance](https://modootoday.github.io/jekyll-theme-modootoday/guides/performance/) · [Roadmap](https://modootoday.github.io/jekyll-theme-modootoday/reference/roadmap/) · [Changelog](https://modootoday.github.io/jekyll-theme-modootoday/reference/changelog/) ([CHANGELOG.md](CHANGELOG.md))
128
+ - Supported stacks: classic GitHub Pages and Jekyll 4, with the versions listed in [Install > Requirements](https://modootoday.github.io/jekyll-theme-modootoday/guides/install/#requirements).
127
129
  - [Security policy](SECURITY.md) · [Code of conduct](CODE_OF_CONDUCT.md)
128
130
 
129
131
  ## Exit codes
@@ -139,7 +141,7 @@ Walkthrough: [Write your first page](https://modootoday.github.io/jekyll-theme-m
139
141
 
140
142
  Issues and pull requests are welcome. English is the canonical language; translations follow it. See [CONTRIBUTING.md](CONTRIBUTING.md).
141
143
 
142
- [`example/`](example/) holds three starter sites, `docs`, `blog` and `landing`, listed in `example/starters.yml`. `bundle exec rake starters:render` writes each one for GitHub Pages (`remote_theme`) and Jekyll 4, with its `Gemfile`, `README.md`, a Pages workflow that runs `modootoday-check`, and its stubs.
144
+ The three starter sites, `docs`, `blog` and `landing`, are template repositories with live demos, listed in `example/starters.yml` and held in [`example/`](example/) as git submodules (clone with `--recurse-submodules`). `bundle exec rake starters:render` writes each one for GitHub Pages (`remote_theme`) and Jekyll 4, with its `Gemfile`, `README.md`, a Pages workflow that runs `modootoday-check`, and its stubs.
143
145
 
144
146
  ## License
145
147
 
data/RULES.md CHANGED
@@ -49,6 +49,7 @@ Every content page starts with front matter; an empty block (`---` then `---`) i
49
49
  | Embed | a paragraph holding only `` `embed:https://… Title` `` | `div.mt-embed` > lazy `iframe[title]` (16:9 reserved) | non-https is a checker error |
50
50
  | Loading / skeleton | `` `loading:spinner` ``, `` `loading:bar` ``, `` `skeleton:text` `` / `card` / `image` / `avatar` / `row` | `span.mt-spinner`, `span.mt-topbar`, `span.mt-skeleton` with `role=status`, `aria-busy` and i18n `loading.label`; optional `loading` sheet; reduced motion, forced colors and RTL | unknown variants are checker errors |
51
51
  | File tree / Details / FAQ / Params / Link cards / Quote / Gallery / Pricing / Subscribe / Split | `c: filetree` (nested list), `c: details` and `c: faq` (`###` per item), `c: params` (table), `c: linkcards` (link-first list), `c: quote` (quote ending in `— name`), `c: gallery` (tight image list), `c: pricing` (`###` per plan, param `recommended`), `c: subscribe` (text; form posts to `modootoday.subscribe.action`), `c: split` (text beside its `visual:`, params `side`, `ratio`; the only section with inner wrappers) | per-component markup listed in docs api.md; each has its own sheet | gallery images need alt; `recommended` must be in range; subscribe action must be https; split needs `visual:` |
52
+ | Install | a `c: install` section (text first) | the section text, `button.mt-install[hidden]` (i18n `pwa.install`) and `p.mt-install-hint` (i18n `pwa.install_hint`); with `modootoday.pwa.enabled: true`, `pwa/install.js` shows the button only while the browser offers installing and prompts only on a click; the section hides in the installed app; optional `install` sheet | a section without a lead paragraph is a checker error; the section on a site without `pwa.enabled: true` is a warning |
52
53
  | Chart | with `modootoday.chart.enabled`, a paragraph holding only `` `chart:<type>` `` (`bar`, `line`, `area`, `pie`, `doughnut`; options `stacked`, `horizontal`) right before a GFM table; or a `c: chart` section (params `type`, `stacked`, `horizontal`, `data: <name>` for `_data/charts/<name>.yml`) | `figure.mt-chart[data-type][data-opts]` > `div.mt-chart-canvas[hidden]` + `div.mt-chart-data` (the table, which stays the fallback) + `figcaption` from an emphasis-only paragraph after the table (with `data:`, the one ending the section); optional `chart` sheet | unknown types and options, a `chart:` line without a table, a section with both or neither of a table and `data:`, a missing or misshapen data file are checker errors; non-number cells warn; a leftover `chart:` paragraph in the build is an error |
53
54
  | Widget | a `c: widget` section (params `widget`: the `element` of a `modootoday.scripts` entry, `props`: a map of plain values), or a paragraph holding only `` `widget:<element>` `` (props from front matter `widget_props.<element>`) | `<element class="mt-widget" data-props="{json}">` > `div.mt-widget-fallback` holding the section text after the h2 (the inline form: the i18n `widget.fallback` sentence); the fallback shows until the element is defined (`:defined`); optional `widget` sheet; the entry's module and sheet load only on pages that contain the element | an element no `modootoday.scripts` entry names, props that are not plain values and a section without a lead paragraph are checker errors; a `widget:` line for an unregistered element stays a code span |
54
55
  | Component registry | optional `_data/components.yml`: `name: {params: {key: {allowed: [...], required: bool}}, i18n: [keys...]}` | when present the checker validates `c`, params and i18n keys | — |
@@ -83,10 +84,13 @@ The bans are about **portability**: the same source must look the same on github
83
84
 
84
85
  Allowed and portable: footnotes `[^1]` (markup differs slightly), task lists, strikethrough, GFM tables, `<url>` autolinks, hard breaks. Note: `> [! NOTE]` (space inside) is not an alert; the checker warns, `--strict` makes it an error.
85
86
 
86
- ## 5. Checker (`modootoday-check SRC SITE [--twins] [--github-pages[=VER]] [--strict] [--gh]`)
87
+ ## 5. Checker (`modootoday-check SRC SITE [options]`)
88
+ Every option is listed on the docs site's [Command line](https://modootoday.github.io/jekyll-theme-modootoday/reference/cli/) page. The checks:
87
89
  1. front matter present 2. forbidden syntax, alert form, fence info strings 3. `status:` vocabulary 4. `sections:` count = top-level `## ` count, nested/setext/indented `##` 5. `_data/components.yml` if present 6. no `[!TYPE]` (any case, outside `<pre>`/`<code>`) / `<code>status:` in built HTML 7. `--github-pages`: `Gemfile.lock` pins github-pages VER (default 232, or `$MODOOTODAY_GITHUB_PAGES`) 8. `--twins`: rules below 8a. Sass sources (`_sass/`, `assets/**/*.scss`) and built CSS: no `@use`/`@forward`/`@supports selector()`, no `--x: $var` literals, every `var(--mt-*)` defined; the token hook `_sass/modootoday/_site.scss` holds only `$mt-overrides-base`, `$mt-overrides` and `$mt-overrides-dark` maps of theme token names 8b. `_config.yml` `modootoday:`: `twins` is `true`, `false` or `source`, known `color_scheme`/`components`, boolean `css_layers`/`badges`, `tokens`/`tokens_dark` values are plain CSS values (no `; { } < >`, valid hex), unknown token names warn; `site_css` (site paths to `.css` files) and `preload` (`{href, as, type}`, `as` one of font, image, style, script, fetch) in settings and front matter, each file present in the build; `scripts` (name: `{src, css, preload, element}`, site paths only, `element` a custom element name), each file present in the build 9. `--gh` (optional, network + `gh` auth): render with `gh api markdown`.
88
90
 
89
91
  ## 5a. Markdown twins
92
+ This section is the contract; the [AI agents](https://modootoday.github.io/jekyll-theme-modootoday/guides/agents/) guide shows how to set each way up.
93
+
90
94
  Three ways to publish a page's raw Markdown next to its HTML. Pick one per site (stubs may be mixed with the others for single pages).
91
95
 
92
96
  | Mode | How | Twin URL | Use when | Limits |
@@ -121,11 +125,11 @@ Stub and generator details:
121
125
  The stub may instead sit at the same relative path under `generated/` when it also sets `path:` to its place beside the page (`path: guides/install.md.txt` in `generated/guides/install.md.txt`); `twin_of` then resolves from that path. This theme's docs site keeps its stubs there, and `--twins` looks in both places.
122
126
  Both produce the same page; a stub wins over the generator. `twin: false` opts a page out, and error pages (`layout: error`) have none.
123
127
  - Output: `index.md` → `/index.md`, others → `/<dir>/<name>/index.md`; other languages under `/<lang>/`. A translation beside its source sets that URL as its `permalink` (`permalink: /ko/guides/install/` in `guides/install.ko.md`), and its twin follows it (`/ko/guides/install/index.md`).
124
- - Twin body is **byte-identical** to the source minus front matter (no added headers; put extra information in `llms.txt`).
125
- - `llms.txt` and `llms-full.txt` exist at `/` and at `/<lang>/` for each language with pages. `llms.txt` follows llmstxt.org: `# Title`, a `>` summary, then `## Section` lists of `- [Name](url): note`. `llms-full.txt` is a common convention, not part of llmstxt.org. Layouts `llms` and `llms-full` generate both from a front-matter-only stub (or the generator adds them); `llms-full.txt` is every page body of that language, byte-identical, separated by a blank line.
128
+ - Twin body is **byte-identical** to the source minus front matter (no added headers; put extra information in `llms.txt`), except for link targets: a relative link that names a source file (`[Upgrade](upgrade.md#x)`, a reference definition, an image) points at the site URL of its target's twin, or of the page, post or file when it has no twin (absolute with `url:`, else root-relative), so it resolves from any URL the twin is served at. Links in code, URL links (`../upgrade/`) and links to no source file stay as written. A source-mode raw copy is the file itself and keeps its links.
129
+ - `llms.txt` and `llms-full.txt` exist at `/` and at `/<lang>/` for each language with pages. `llms.txt` follows llmstxt.org: `# Title`, a `>` summary, then `## Section` lists of `- [Name](url): note`. `llms-full.txt` is a common convention, not part of llmstxt.org. Layouts `llms` and `llms-full` generate both from a front-matter-only stub (or the generator adds them); `llms-full.txt` is every page body of that language, byte-identical with the twins' link targets, separated by a blank line.
126
130
  - The `default` layout adds `<link rel="alternate" type="text/markdown" href=".../index.md">` when the twin exists and `<link rel="describedby" type="text/plain">` to the nearest `/<lang>/llms.txt` or `/llms.txt`.
127
131
  - With `--twins` and `modootoday.twins: source`: a front-matter-less page needs a rendered page (`<name>.html` or `<name>/index.html`) and a byte-identical raw copy at its source path.
128
- - With `--twins`: a missing or non-identical twin is an error (`README.md`, `twin: false` and `layout: error` excepted), a stub must use `layout: twin` with an empty body, `llms.txt` must start with `# `, and `llms-full.txt` must contain every page body of its language.
132
+ - With `--twins`: a missing or non-identical twin (link targets aside) is an error (`README.md`, `twin: false` and `layout: error` excepted), so is a rewritten link that reaches no file in the build, a stub must use `layout: twin` with an empty body, `llms.txt` must start with `# `, and `llms-full.txt` must contain every page body of its language.
129
133
  - With `--aliases`: every declared alias exists, a flat alias is byte-identical to the twin, and an HTML alias's refresh target and canonical are the page URL.
130
134
  - `modootoday-stubs SRC --twins --write` writes the missing stubs and deletes stubs whose page is gone; without `--write` it only lists them, and `--check` exits 1 when anything would change.
131
135
  - Twins and the checker assume directory URLs (`permalink: pretty` or `/<name>/`); with `.html` permalinks the generator writes `/<name>.md` but the checker still expects `/<name>/index.md`.
@@ -0,0 +1,6 @@
1
+ {%- comment -%}Sets mt_build_v: the theme version and the commit the site is built from (site.github.build_revision), else the
2
+ build time, so it changes on every deploy. Read by assets/registry.html (asset_version: build) and pwa/sw.js.{%- endcomment -%}
3
+ {%- include modootoday/version.html -%}
4
+ {%- assign _mtb_rev = site.github.build_revision | slice: 0, 7 -%}
5
+ {%- if _mtb_rev == "" -%}{%- assign _mtb_rev = site.time | date: "%s" -%}{%- endif -%}
6
+ {%- assign mt_build_v = mt_version | append: "-" | append: _mtb_rev -%}
@@ -7,18 +7,19 @@
7
7
  page-actions,...", read by assets/imports.html) and mt_section_sheets.{%- endcomment -%}
8
8
  {%- capture _mta_rows -%}
9
9
  code|component|/assets/css/modootoday/content/code.css|<pre^<code^<kbd|/base/code core/inline/code-copy core/inline/code|1408
10
- doc-nav|component|/assets/css/modootoday/chrome/doc-nav.css|class="mt-breadcrumb^class="mt-pagination|/layout/page-meta core/chrome/breadcrumb core/chrome/pagination|896
10
+ doc-nav|component|/assets/css/modootoday/chrome/doc-nav.css|class="mt-breadcrumb^class="mt-pagination|/layout/page-meta core/chrome/breadcrumb core/chrome/pagination|1024
11
11
  inline|component|/assets/css/modootoday/content/inline.css|mt-callout^mt-badge^mt-kbd|core/inline/callout core/inline/badge core/inline/kbd|768
12
12
  hero|component|/assets/css/modootoday/marketing/hero.css|class="mt-hero^class="mt-section^mt-actions^mt-has-decor|core/inline/hero core/inline/cta|768
13
13
  extras|component|/assets/css/modootoday/content/extras.css|mt-reveal^role="doc-noteref"^class="footnotes"^reversefootnote^mt-progress|core/inline/reveal core/inline/footnotes core/inline/progress|640
14
- figure|component|/assets/css/modootoday/media/figure.css|class="mt-figure^mt-illustration^class="mt-embed|core/inline/figure core/inline/embed figure-svg media/diagram|896
14
+ figure|component|/assets/css/modootoday/media/figure.css|class="mt-figure^mt-illustration^class="mt-embed|core/inline/figure core/inline/embed figure-svg media/diagram|1024
15
15
  banner|component|/assets/css/modootoday/chrome/banner.css||core/chrome/banner|384
16
16
  footer|component|/assets/css/modootoday/chrome/footer.css||footer|384
17
17
  showcase|component|/assets/css/modootoday/chrome/showcase.css||chrome/showcase|1024
18
- doc|css|/assets/css/modootoday/docs/doc.css||sidebar toc page-actions|1280
18
+ doc|css|/assets/css/modootoday/docs/doc.css||sidebar toc page-actions|1536
19
19
  search|css|/assets/css/modootoday/chrome/search.css||search|1024
20
20
  loading|css|/assets/css/modootoday/content/loading.css|class="mt-spinner^class="mt-skeleton^class="mt-topbar|loading|1024
21
21
  lists|css|/assets/css/modootoday/content/lists.css|class="mt-hero mt-hero-checks^class="mt-chips"^class="mt-item-title"|lists|640
22
+ anchor|css|/assets/css/modootoday/content/anchor.css|class="mt-anchor|content/anchor|384
22
23
  bleed|css|/assets/css/modootoday/structure/bleed.css||bleed|512
23
24
  terminal|css|/assets/css/modootoday/chrome/terminal.css||terminal|384
24
25
  visual|css|/assets/css/modootoday/media/visual.css|class="mt-visual-poster^data-mt-script="|visual|256
@@ -34,6 +35,7 @@ quote|section|/assets/css/modootoday/showcase/quote.css|quote||384
34
35
  gallery|section|/assets/css/modootoday/showcase/gallery.css|gallery||640
35
36
  pricing|section|/assets/css/modootoday/showcase/pricing.css|pricing||768
36
37
  subscribe|section|/assets/css/modootoday/showcase/subscribe.css|subscribe||512
38
+ install|section|/assets/css/modootoday/showcase/install.css|install||512
37
39
  tabs|section|/assets/css/modootoday/structure/tabs.css|tabs||640
38
40
  accordion|section|/assets/css/modootoday/structure/accordion.css|accordion||640
39
41
  steps|section|/assets/css/modootoday/structure/steps.css|steps||512
@@ -51,10 +53,14 @@ code-copy|module|/assets/js/modootoday/content/code-copy.js|<pre||1280
51
53
  theme-toggle|module|/assets/js/modootoday/chrome/theme-toggle.js|||768
52
54
  showcase|module|/assets/js/modootoday/chrome/showcase.js|||384
53
55
  accordion|module|/assets/js/modootoday/structure/accordion.js|||640
56
+ toc-spy|module|/assets/js/modootoday/structure/toc-spy.js|class="mt-toc||1792
54
57
  share|module|/assets/js/modootoday/blog/share.js|||640
55
58
  search-keys|module|/assets/js/modootoday/chrome/search-keys.js|||1024
56
59
  filter|module|/assets/js/modootoday/data/filter.js|<div class="mt-filter"||1152|/assets/js/modootoday/text/normalize.js /assets/js/modootoday/dom/config.js /assets/js/modootoday/data/filter-chips.js
57
60
  chart|module|/assets/js/modootoday/data/chart.js|class="mt-chart||2176|/assets/js/modootoday/data/chart-table.js /assets/js/modootoday/theme/current.js
61
+ pwa|module|/assets/js/modootoday/pwa/register.js|||1408
62
+ offline|module|/assets/js/modootoday/pwa/offline.js|<section data-mt-offline||768
63
+ install|module|/assets/js/modootoday/pwa/install.js|class="mt-install||1024
58
64
  {%- endcapture -%}
59
65
  {%- capture _mta_fixed -%}
60
66
  core|sheet|/assets/css/modootoday.css|||4608
@@ -62,19 +68,23 @@ blog|sheet|/assets/css/modootoday-blog.css|||2304
62
68
  detail|sheet|/assets/css/modootoday-detail.css|||1024
63
69
  directory|sheet|/assets/css/modootoday-directory.css|||1920
64
70
  docs-extra|sheet|/assets/css/modootoday-docs-extra.css|||1792
71
+ print|sheet|/assets/css/modootoday/chrome/print.css|||768
65
72
  hero|sheet|/assets/css/modootoday-hero.css|||1280
66
73
  marketing|sheet|/assets/css/modootoday-marketing.css|||1664
67
74
  pages|sheet|/assets/css/modootoday-pages.css|||1408
68
75
  resume|sheet|/assets/css/modootoday-resume.css|||768
76
+ toast|sheet|/assets/css/modootoday/chrome/toast.css|||640
69
77
  theme-init|script|/assets/js/modootoday/chrome/theme-init.js|||256
70
78
  mermaid|script|/assets/js/modootoday-mermaid.js|||1152
71
79
  math|script|/assets/js/modootoday-math.js|||768
80
+ worker|script|/assets/js/modootoday/pwa/worker.js|||2304
72
81
  config|import|/assets/js/modootoday/dom/config.js|||640
73
82
  normalize|import|/assets/js/modootoday/text/normalize.js|||512
74
83
  search|import|/assets/js/modootoday/chrome/search.js|||1792|/assets/js/modootoday/text/normalize.js
75
84
  current|import|/assets/js/modootoday/theme/current.js|||640
76
85
  chips|import|/assets/js/modootoday/data/filter-chips.js|||640
77
86
  chart-table|import|/assets/js/modootoday/data/chart-table.js|||512
87
+ update-toast|import|/assets/js/modootoday/pwa/update-toast.js|||1280
78
88
  {%- endcapture -%}
79
89
  {%- assign mt_asset_rows = _mta_rows | newline_to_br | strip_newlines | split: "<br />" -%}
80
90
  {%- assign _mta_cs = "" -%}{%- assign _mta_ss = "" -%}
@@ -89,7 +99,5 @@ chart-table|import|/assets/js/modootoday/data/chart-table.js|||512
89
99
  {%- include modootoday/version.html -%}
90
100
  {%- assign _mta_av = site.modootoday.asset_version -%}{%- assign mt_asset_v = mt_version -%}
91
101
  {%- if _mta_av == false -%}{%- assign mt_asset_v = "" -%}
92
- {%- elsif _mta_av == "build" -%}{%- assign _mta_rev = site.github.build_revision | slice: 0, 7 -%}
93
- {%- if _mta_rev == "" -%}{%- assign _mta_rev = site.time | date: "%s" -%}{%- endif -%}
94
- {%- assign mt_asset_v = mt_version | append: "-" | append: _mta_rev -%}
102
+ {%- elsif _mta_av == "build" -%}{%- include modootoday/assets/build.html -%}{%- assign mt_asset_v = mt_build_v -%}
95
103
  {%- endif -%}
@@ -16,9 +16,11 @@
16
16
  {%- if mt_components contains "theme-toggle" and mt_theme_toggle -%}{%- assign _mta_on = _mta_on | append: "theme-toggle|" -%}{%- endif -%}
17
17
  {%- if mt_showcase -%}{%- assign _mta_on = _mta_on | append: "showcase|" -%}{%- endif -%}
18
18
  {%- if mt_components contains "accordion" and mt_page_c contains "|accordion|" -%}{%- assign _mta_on = _mta_on | append: "accordion|" -%}{%- endif -%}
19
+ {%- if mt_components contains "toc" and _mta_hit contains "|toc-spy|" -%}{%- assign _mta_on = _mta_on | append: "toc-spy|" -%}{%- endif -%}
19
20
  {%- if mt_blog_css and site.modootoday.blog.share != false -%}{%- assign _mta_on = _mta_on | append: "share|" -%}{%- endif -%}
20
21
  {%- if mt_components contains "search" and mt_search_index -%}{%- assign _mta_on = _mta_on | append: "search-keys|" -%}{%- endif -%}
21
22
  {%- if mt_components contains "filter" and _mta_hit contains "|filter|" -%}{%- assign _mta_on = _mta_on | append: "filter|" -%}{%- endif -%}
23
+ {%- if site.modootoday.pwa.enabled == true -%}{%- assign _mta_on = _mta_on | append: "pwa|" -%}{%- if _mta_hit contains "|offline|" -%}{%- assign _mta_on = _mta_on | append: "offline|" -%}{%- endif -%}{%- if mt_components contains "install" and _mta_hit contains "|install|" -%}{%- assign _mta_on = _mta_on | append: "install|" -%}{%- endif -%}{%- endif -%}
22
24
  {%- comment -%}The chart library tag comes before the module tags: deferred scripts run in document order.{%- endcomment -%}
23
25
  {%- if _mta_hit contains "|chart|" -%}{%- include modootoday/render/chart.html -%}{%- if mt_chart_on -%}{%- assign _mta_on = _mta_on | append: "chart|" -%}{%- endif -%}{%- endif -%}
24
26
  {%- assign _mta_done = "|" -%}{%- assign _mta_pre = "|" -%}
@@ -5,13 +5,16 @@
5
5
  {%- if site.modootoday.loading -%}{%- assign mt_page_c = mt_page_c | append: "loading|" -%}{%- endif -%}
6
6
  {%- if page.diagrams -%}{%- assign mt_page_c = mt_page_c | append: "figure|" -%}
7
7
  {%- elsif site.modootoday.math.mode == "static" and site.modootoday.math.enabled != false and page.math != false -%}{%- if content contains "language-math" or content contains "\[" -%}{%- assign mt_page_c = mt_page_c | append: "figure|" -%}{%- endif -%}{%- endif -%}
8
- {%- if mt_components contains "banner" -%}{%- if site.modootoday.banner.text or site.modootoday.back_to_top -%}{%- assign mt_page_c = mt_page_c | append: "banner|" -%}{%- endif -%}{%- endif -%}
8
+ {%- if mt_components contains "banner" -%}{%- include modootoday/chrome/banner-text.html -%}{%- if mt_bn_on or site.modootoday.back_to_top -%}{%- assign mt_page_c = mt_page_c | append: "banner|" -%}{%- endif -%}{%- endif -%}
9
9
  {%- if mt_showcase -%}{%- assign mt_page_c = mt_page_c | append: "showcase|" -%}{%- endif -%}
10
10
  {%- assign _mta_fk = "footer-" | append: _lang -%}{%- assign _mta_fd = site.data.nav[_mta_fk] | default: site.data.nav.footer -%}
11
11
  {%- if _mta_fd.columns and mt_components contains "footer" -%}{%- assign mt_page_c = mt_page_c | append: "footer|" -%}{%- endif -%}
12
12
  {%- unless layout.mt_chrome == false or page.chrome == false -%}
13
- {%- if page.last_modified_at -%}{%- assign mt_page_c = mt_page_c | append: "doc-nav|" -%}
14
- {%- elsif site.modootoday.edit_url and page.edit != false and page.path -%}{%- assign mt_page_c = mt_page_c | append: "doc-nav|" -%}
13
+ {%- include modootoday/meta/github.html -%}{%- assign _mta_ep = site.modootoday.edit_url -%}{%- if _mta_ep == "auto" -%}{%- assign _mta_ep = mt_gh_edit -%}{%- endif -%}
14
+ {%- assign _mta_built = false -%}{%- if site.modootoday.build_link == true and mt_gh_repo != "" and mt_gh_rev != "" -%}{%- assign _mta_built = true -%}{%- endif -%}
15
+ {%- include modootoday/meta/feedback.html -%}
16
+ {%- if page.last_modified_at or _mta_built or mt_fb_on -%}{%- assign mt_page_c = mt_page_c | append: "doc-nav|" -%}
17
+ {%- elsif _mta_ep and _mta_ep != "" and page.edit != false and page.path -%}{%- assign mt_page_c = mt_page_c | append: "doc-nav|" -%}
15
18
  {%- elsif mt_nav and mt_components contains "pagination" and page.pagination != false -%}{%- assign _mta_nj = mt_nav | jsonify -%}
16
19
  {%- assign _mta_nu = '"url":"' | append: page.url | append: '"' -%}{%- if _mta_nj contains _mta_nu -%}{%- assign mt_page_c = mt_page_c | append: "doc-nav|" -%}{%- endif -%}
17
20
  {%- endif -%}
@@ -0,0 +1,5 @@
1
+ {%- comment -%}A visible Subscribe link to the page's Atom feed (meta/feed-url.html), on blog, author and archive pages.{%- endcomment -%}
2
+ {%- include modootoday/meta/feed-url.html -%}
3
+ {%- if mt_feed_url != "" %}
4
+ <p class="mt-feed-subscribe"><a href="{{ mt_feed_url | relative_url }}" type="application/atom+xml">{% include modootoday/brand/icon.html name="rss" size=14 %} {{ mt_t_blog_subscribe }}</a></p>
5
+ {%- endif -%}
@@ -3,7 +3,7 @@
3
3
  {% include modootoday/brand/icon.html name="rss" label="Feed" %} labelled: role="img" + aria-label
4
4
  size (default 18) sets width/height; colour is currentColor (stroke icons; "brand" is filled).
5
5
  Names: globe sun moon search menu copy check external prev next chevron-right chevron-down
6
- note tip important warning caution info danger edit rss tag folder brand
6
+ note tip important warning caution info danger edit link rss tag folder brand
7
7
  prev, next, chevron-right and external mirror in right-to-left pages (class mt-icon-flip).
8
8
  Shadow this file to change or add icons.
9
9
  {%- endcomment -%}
@@ -28,6 +28,7 @@
28
28
  {%- when "warning" -%}<path d="M12 3 2 20h20ZM12 9v5M12 17h.01"/>
29
29
  {%- when "caution", "danger" -%}<path d="M8 3h8l5 5v8l-5 5H8l-5-5V8ZM12 7.5v5M12 16h.01"/>
30
30
  {%- when "edit" -%}<path d="M4 20h4L19 9l-4-4L4 16ZM13.5 6.5l4 4"/>
31
+ {%- when "link" -%}<path d="M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1"/>
31
32
  {%- when "rss" -%}<path d="M5 11a8 8 0 0 1 8 8M5 5a14 14 0 0 1 14 14"/><circle cx="6" cy="18" r="1"/>
32
33
  {%- when "tag" -%}<path d="M3 12V4a1 1 0 0 1 1-1h8l9 9-9 9Z"/><circle cx="7.5" cy="7.5" r="1.5"/>
33
34
  {%- when "folder" -%}<path d="M3 6a1 1 0 0 1 1-1h5l2 2h9a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1Z"/>
@@ -0,0 +1,19 @@
1
+ {%- comment -%}Resolves the site banner (modootoday.banner) for chrome/banner.html and the banner sheet. text: (with optional url:,
2
+ link:) is shown as written. Without text:, release: latest takes the repository's latest release from site.github at
3
+ build time (GitHub leaves prereleases out) and release: {version, url} takes it from the map; either fills "[version] is
4
+ out." and a "What's new" link, a leading v of a tag such as v1.2.0 dropped. Sets mt_bn_on, mt_bn_text, mt_bn_url and
5
+ mt_bn_link; the text needs the i18n strings.{%- endcomment -%}
6
+ {%- assign _bn = site.modootoday.banner -%}
7
+ {%- assign mt_bn_on = false -%}{%- assign mt_bn_text = "" -%}{%- assign mt_bn_url = "" -%}{%- assign mt_bn_link = "" -%}
8
+ {%- if _bn.text -%}
9
+ {%- assign mt_bn_on = true -%}{%- assign mt_bn_text = _bn.text -%}{%- assign mt_bn_url = _bn.url | default: "" -%}{%- assign mt_bn_link = _bn.link | default: mt_bn_url -%}
10
+ {%- elsif _bn.release -%}
11
+ {%- if _bn.release == "latest" -%}{%- assign _bn_v = site.github.latest_release.tag_name | default: "" -%}{%- assign _bn_u = site.github.latest_release.html_url | default: "" -%}
12
+ {%- else -%}{%- assign _bn_v = _bn.release.version | default: "" -%}{%- assign _bn_u = _bn.release.url | default: "" -%}{%- endif -%}
13
+ {%- assign _bn_v = _bn_v | append: "" -%}{%- assign _bn_h = _bn_v | slice: 0 | downcase -%}{%- assign _bn_d = _bn_v | slice: 1 -%}
14
+ {%- if _bn_h == "v" and _bn_d != "" -%}{%- if "0123456789" contains _bn_d -%}{%- assign _bn_v = _bn_v | slice: 1, 999 -%}{%- endif -%}{%- endif -%}
15
+ {%- if _bn_v != "" -%}
16
+ {%- assign mt_bn_on = true -%}{%- assign mt_bn_text = mt_t_banner_release | replace: "[version]", _bn_v -%}{%- assign mt_bn_url = _bn_u -%}
17
+ {%- if _bn_u != "" -%}{%- assign mt_bn_link = mt_t_banner_release_link -%}{%- endif -%}
18
+ {%- endif -%}
19
+ {%- endif -%}
@@ -0,0 +1,5 @@
1
+ {%- comment -%}Site banner region (modootoday.banner, resolved by chrome/banner-text.html), when the banner component is on.{%- endcomment -%}
2
+ {%- include modootoday/chrome/banner-text.html -%}
3
+ {%- if mt_components contains "banner" and mt_bn_on %}
4
+ <div class="mt-banner" role="region" aria-label="{{ mt_t_banner_label }}"><p>{{ mt_bn_text }}{% if mt_bn_url != "" %} <a href="{% include modootoday/link.html url=mt_bn_url %}"{% include modootoday/links/attrs.html on=site.modootoday.banner.new_window target=site.modootoday.banner.target url=mt_bn_url %}>{{ mt_bn_link }}</a>{% endif %}</p></div>
5
+ {%- endif %}
@@ -17,9 +17,10 @@ Jekyll 3.10 / GitHub Pages, so every default lives here (Liquid). Sets mt_* vari
17
17
  site.modootoday.sidebar auto | true | false: doc-page sidebar from the nav (default auto: on when the nav has a group)
18
18
  site.modootoday.badges false disables status badges (default true)
19
19
  site.modootoday.lists {link_chips: true, titled_items: true}: optional list markup (markdown/lists.html, lists sheet)
20
+ site.modootoday.heading_anchors true: a link at the end of each h2 and h3 of a doc or post (markdown/anchors.html, anchor sheet)
20
21
  {%- endcomment -%}
21
22
  {%- assign mt = site.modootoday -%}
22
- {%- assign mt_all_components = "callout,badge,hero,cta,card,tabs,code-copy,nav,sidebar,page-actions,pagination,theme-toggle,breadcrumb,toc,accordion,steps,figure,timeline,kbd,search,code,footnotes,progress,embed,banner,filetree,details,faq,params,linkcards,quote,gallery,pricing,subscribe,split,loading,figure-svg,diagram,lists,reveal,bleed,terminal,visual,filter,table,table-stack,footer,chart,widget,showcase" | split: "," -%}
23
+ {%- assign mt_all_components = "callout,badge,hero,cta,card,tabs,code-copy,nav,sidebar,page-actions,pagination,theme-toggle,breadcrumb,toc,accordion,steps,figure,timeline,kbd,search,code,footnotes,progress,embed,banner,filetree,details,faq,params,linkcards,quote,gallery,pricing,subscribe,split,loading,figure-svg,diagram,lists,reveal,bleed,terminal,visual,filter,table,table-stack,footer,chart,widget,showcase,install,anchor" | split: "," -%}
23
24
  {%- comment -%}Sass partials by context (components/<group>/_<name>.scss). Core: always in assets/css/modootoday.css.
24
25
  Section sheets: assets/css/modootoday/<group>/<name>.css, linked when a page's sections: use c (section rows of assets/registry.html).
25
26
  Context sheets: assets/css/modootoday/<name>.css, linked by layout front matter mt_sheets (doc; blog layouts also get assets/css/modootoday-blog.css).{%- endcomment -%}
@@ -2,7 +2,7 @@
2
2
  {%- capture _a -%}
3
3
  {%- if include.kind == "job" and page.apply %}<a class="mt-detail-btn" href="{{ page.apply | relative_url }}">{{ mt_t_layouts_apply }}<span class="mt-sr-only">: {{ page.title | escape }}</span></a>{% endif -%}
4
4
  {%- if include.kind == "event" -%}
5
- {%- if page.tickets %}<a class="mt-detail-btn" href="{{ page.tickets | relative_url }}">{{ mt_t_layouts_tickets }}<span class="mt-sr-only">: {{ page.title | escape }}</span></a>{% endif -%}
5
+ {%- if mt_tickets_url %}<a class="mt-detail-btn" href="{{ mt_tickets_url | relative_url }}">{{ mt_t_layouts_tickets }}<span class="mt-sr-only">: {{ page.title | escape }}</span></a>{% endif -%}
6
6
  {%- if page.starts %}{% include modootoday/directory/ics.html title=page.title start=page.starts end=page.ends location=page.venue url=page.url %}{% endif -%}
7
7
  {%- endif -%}
8
8
  {%- if page.cta.url %}<a class="mt-detail-btn" href="{{ page.cta.url | relative_url }}">{{ page.cta.label }}</a>{% endif -%}
@@ -20,6 +20,7 @@ Dates use the language's post date format; times print when the value has one.{%
20
20
  {%- if page.ends %}<div><dt>{{ mt_t_layouts_ends }}</dt><dd><time datetime="{{ page.ends | date_to_xmlschema }}">{{ page.ends | date: _df }} {{ page.ends | date: "%H:%M" }}</time></dd></div>{% endif -%}
21
21
  {%- if page.venue %}<div><dt>{{ mt_t_layouts_venue }}</dt><dd>{{ page.venue }}{% if page.address %}<br>{{ page.address }}{% endif %}</dd></div>{% endif -%}
22
22
  {%- if page.online %}<div><dt>{{ mt_t_layouts_online }}</dt><dd><a href="{{ page.online }}">{{ page.online | remove: "https://" }}</a></dd></div>{% endif -%}
23
+ {%- if mt_tickets_price != nil %}<div><dt>{{ mt_t_layouts_price }}</dt><dd>{% if mt_tickets_price == 0 %}{{ mt_t_layouts_free }}{% else %}{{ mt_tickets_price }} {{ mt_tickets_currency }}{% endif %}</dd></div>{% endif -%}
23
24
  {%- when "episode" -%}
24
25
  {%- if page.date %}<div><dt>{{ mt_t_layouts_posted }}</dt><dd><time datetime="{{ page.date | date: '%Y-%m-%d' }}">{{ page.date | date: _df }}</time></dd></div>{% endif -%}
25
26
  {%- if page.duration %}<div><dt>{{ mt_t_layouts_duration }}</dt><dd>{{ mt_t_layouts_minutes | replace: "[n]", page.duration }}</dd></div>{% endif -%}
@@ -23,7 +23,12 @@ CreativeWork (project): keywords.{%- endcomment -%}
23
23
  {%- elsif page.venue %},"location":{"@type":"Place","name":{{ page.venue | jsonify }},"address":{{ page.address | default: page.venue | jsonify }}}
24
24
  {%- elsif page.online %},"location":{"@type":"VirtualLocation","url":"{% include modootoday/link.html url=page.online absolute=true %}"}{% endif -%}
25
25
  {%- endunless -%}
26
- {%- if page.tickets and _sc.offers == nil %},"offers":{"@type":"Offer","url":{{ page.tickets | absolute_url | jsonify }}}{% endif -%}
26
+ {%- include modootoday/detail/tickets.html -%}
27
+ {%- if mt_tickets_url and _sc.offers == nil -%}
28
+ ,"offers":{"@type":"Offer","url":{{ mt_tickets_url | absolute_url | jsonify }}
29
+ {%- if mt_tickets_price != nil %},"price":{{ mt_tickets_price | jsonify }}{% endif -%}
30
+ {%- if mt_tickets_currency %},"priceCurrency":{{ mt_tickets_currency | jsonify }}{% endif -%}
31
+ }{% endif -%}
27
32
  {%- when "PodcastEpisode" -%}
28
33
  {%- if page.episode and _sc.episodeNumber == nil %},"episodeNumber":{{ page.episode | jsonify }}{% endif -%}
29
34
  {%- if page.season and _sc.partOfSeason == nil %},"partOfSeason":{"@type":"PodcastSeason","seasonNumber":{{ page.season | jsonify }}}{% endif -%}
@@ -16,6 +16,7 @@ per include.kind), the body, then one call to action. A record page (record: set
16
16
  {%- endif %}
17
17
  </header>
18
18
  {%- include modootoday/detail/cover.html %}
19
+ {%- if _k == "event" %}{% include modootoday/detail/tickets.html %}{% endif %}
19
20
  {%- include modootoday/detail/facts.html kind=_k %}
20
21
  {%- if page.record %}{% include modootoday/records/lookup.html %}{% include modootoday/records/facts.html %}{% endif %}
21
22
  {%- if _k == "episode" and page.audio %}
@@ -0,0 +1,6 @@
1
+ {%- comment -%}The one reader of the event's tickets: a URL, or a map of url, price and currency. Sets mt_tickets_url,
2
+ mt_tickets_price and mt_tickets_currency (nil when not given) for detail/cta, facts and jsonld. On a string, .url is nil.{%- endcomment -%}
3
+ {%- assign mt_tickets_url = page.tickets.url -%}
4
+ {%- assign mt_tickets_price = page.tickets.price -%}
5
+ {%- assign mt_tickets_currency = page.tickets.currency -%}
6
+ {%- unless mt_tickets_url -%}{%- assign mt_tickets_url = page.tickets -%}{%- endunless -%}
@@ -0,0 +1,24 @@
1
+ {%- comment -%}Atom entries for a changelog (layout: feed with feed_source:), one per release, newest first. include.releases is the
2
+ changelog layout's releases: ({version, date, url, added, changed, fixed, removed, security}) or the generated
3
+ _data/releases.yml ({version, date, url, sections: [{name, items}]}); include.home is the page an entry links to when the
4
+ release has no url; include.limit caps the count. Ids are tag URIs of the host, the release date and the version, so a
5
+ reader never sees an entry twice.{%- endcomment -%}
6
+ {%- assign _fe_host = site.url | default: "localhost" | remove: "https://" | remove: "http://" | split: "/" | first -%}
7
+ {%- assign _fe_cats = "added changed fixed removed security" | split: " " -%}
8
+ {%- for r in include.releases limit: include.limit -%}
9
+ {%- assign _fe_day = r.date | date: "%Y-%m-%d" -%}
10
+ {%- assign _fe_anchor = r.version | prepend: "v" | slugify -%}
11
+ {%- capture _fe_link -%}{%- if r.url -%}{{ r.url }}{%- else -%}{{ include.home | absolute_url }}#{{ _fe_anchor }}{%- endif -%}{%- endcapture -%}
12
+ {%- capture _fe_html -%}
13
+ {%- if r.sections -%}{%- for s in r.sections -%}<h3>{{ s.name }}</h3><ul>{%- for i in s.items -%}<li>{{ i | markdownify | remove: "<p>" | remove: "</p>" | strip }}</li>{%- endfor -%}</ul>{%- endfor -%}
14
+ {%- else -%}{%- for c in _fe_cats -%}{%- if r[c] -%}{%- assign _fe_l = "layouts." | append: c -%}{%- capture _fe_cl -%}{%- include modootoday/t.html key=_fe_l -%}{%- endcapture -%}<h3>{{ _fe_cl | strip }}</h3><ul>{%- for i in r[c] -%}<li>{{ i | markdownify | remove: "<p>" | remove: "</p>" | strip }}</li>{%- endfor -%}</ul>{%- endif -%}{%- endfor -%}
15
+ {%- endif -%}
16
+ {%- endcapture %}
17
+ <entry>
18
+ <title>{{ r.version | xml_escape }}</title>
19
+ <link href="{{ _fe_link | strip | xml_escape }}" rel="alternate" type="text/html"/>
20
+ <id>tag:{{ _fe_host }},{{ _fe_day }}:{{ site.baseurl }}/{{ r.version | xml_escape }}</id>
21
+ <updated>{{ r.date | date_to_xmlschema }}</updated>
22
+ <content type="html">{{ _fe_html | xml_escape }}</content>
23
+ </entry>
24
+ {%- endfor -%}
@@ -1,7 +1,13 @@
1
1
  {%- include modootoday/i18n.html -%}
2
- {%- comment -%}Docs-extra page header: kicker (include.kicker), title (h1, id mt-dx-title), description as the lead.{%- endcomment -%}
2
+ {%- comment -%}Docs-extra page header: kicker (include.kicker), title (h1, id mt-dx-title), description as the lead, then the
3
+ page's feed (feed:) and GitHub's releases feed (releases_feed:) as links.{%- endcomment -%}
3
4
  <header class="mt-dx-head">
4
5
  {%- if include.kicker %}<p class="mt-dx-kicker">{{ include.kicker }}</p>{% endif %}
5
6
  <h1 id="mt-dx-title">{{ page.title }}</h1>
6
7
  {%- if page.description %}<p class="mt-dx-lead">{{ page.description }}</p>{% endif %}
7
8
  </header>
9
+ {%- include modootoday/blog/subscribe.html -%}
10
+ {%- include modootoday/meta/releases-feed.html -%}
11
+ {%- if mt_releases_feed != "" %}
12
+ <p class="mt-feed-subscribe"><a href="{{ mt_releases_feed }}" type="application/atom+xml">{% include modootoday/brand/icon.html name="rss" size=14 %} {{ mt_t_layouts_releases_feed }}</a></p>
13
+ {%- endif -%}
@@ -4,9 +4,11 @@ SEO and theme-init head tags (needs modootoday/config.html first). Liquid only,
4
4
  site.modootoday.hreflang true keeps the hreflang alternates when seo is false (default: follows seo)
5
5
  site.modootoday.languages list of language codes for hreflang, e.g. [en, ko]; site.lang is unprefixed, others live under /<lang>/
6
6
  (a page with front matter ref: links the pages sharing that ref instead, whatever their paths)
7
- site.modootoday.feed true adds the Atom link to /feed.xml, or /<lang>/feed.xml when that page exists (jekyll-feed or layout: feed)
7
+ site.modootoday.feed true adds the Atom link to /feed.xml, or /<lang>/feed.xml when that page exists (jekyll-feed or layout: feed);
8
+ front matter feed: adds the page's own feed (modootoday/meta/feeds.html)
8
9
  site.modootoday.csp strict loads the pre-paint script (theme, showcase dismissal) from a file instead of inline
9
10
  site.modootoday.favicon brand links the theme's modootoday mark (SVG, 32px PNG, apple-touch); a path links your own icon
11
+ site.modootoday.pwa enabled: true links the web app manifest (modootoday/pwa/head.html)
10
12
  site.modootoday.schema false drops the schema.org JSON-LD (modootoday/jsonld/graph.html)
11
13
  {%- endcomment -%}
12
14
  {%- assign _fav = site.modootoday.favicon -%}
@@ -17,6 +19,7 @@ SEO and theme-init head tags (needs modootoday/config.html first). Liquid only,
17
19
  {%- elsif _fav %}
18
20
  <link rel="icon" href="{{ _fav | relative_url }}">
19
21
  {%- endif -%}
22
+ {%- include modootoday/pwa/head.html -%}
20
23
  {%- assign _mt_tt = false -%}{%- if mt_components contains "theme-toggle" and mt_theme_toggle -%}{%- assign _mt_tt = true -%}{%- endif -%}
21
24
  {%- if _mt_tt or mt_showcase -%}
22
25
  {%- if site.modootoday.csp == "strict" -%}{%- include modootoday/assets/url.html path="/assets/js/modootoday/chrome/theme-init.js" %}
@@ -79,17 +82,22 @@ SEO and theme-init head tags (needs modootoday/config.html first). Liquid only,
79
82
  <meta property="og:url" content="{{ _mt_url }}">
80
83
  {%- endif -%}
81
84
  <meta property="og:locale" content="{{ page.lang | default: site.lang | default: 'en' | replace: '-', '_' }}">
82
- {%- assign _mt_img = page.image.path | default: page.image | default: site.modootoday.og_image -%}
83
- {%- if _mt_img %}
84
- <meta property="og:image" content="{{ _mt_img | absolute_url }}">
85
+ {%- include modootoday/meta/og-image.html -%}
86
+ {%- if mt_og_img != "" %}
87
+ <meta property="og:image" content="{{ mt_og_img | absolute_url }}">
88
+ {%- if mt_og_w != "" and mt_og_h != "" %}
89
+ <meta property="og:image:width" content="{{ mt_og_w }}">
90
+ <meta property="og:image:height" content="{{ mt_og_h }}">
91
+ {%- endif -%}{%- if mt_og_alt != "" %}
92
+ <meta property="og:image:alt" content="{{ mt_og_alt | strip_html | escape }}">
93
+ {%- endif %}
85
94
  <meta name="twitter:card" content="summary_large_image">
95
+ {%- if mt_og_alt != "" %}
96
+ <meta name="twitter:image:alt" content="{{ mt_og_alt | strip_html | escape }}">
97
+ {%- endif -%}
86
98
  {%- else %}
87
99
  <meta name="twitter:card" content="summary">
88
100
  {%- endif -%}
89
101
  {%- endunless -%}
90
- {%- if site.modootoday.feed == true -%}
91
- {%- assign _mt_feed = "/feed.xml" -%}{%- assign _mt_fd = site.lang | default: "en" -%}{%- assign _mt_fl = page.lang | default: _mt_fd -%}
92
- {%- 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_feed = _mt_lf -%}{%- endif -%}{%- endif %}
93
- <link rel="alternate" type="application/atom+xml" title="{{ site.title | escape }}" href="{{ _mt_feed | relative_url }}">
94
- {%- endif -%}
102
+ {%- include modootoday/meta/feeds.html -%}
95
103
  {%- include modootoday/jsonld/graph.html -%}
@@ -1,2 +1,2 @@
1
1
  {%- comment -%}Generated by script/i18n-build from i18n/ar.yml; do not edit.{%- endcomment -%}
2
- {%- capture _tc -%}انتقل إلى المحتوىيفتح في نافذة جديدةافتح في نافذة جديدةملاحظةنصيحةمهمتحذيرتنبيهمتاحجزئيمخطط لهمكتملغير مكتملالخياراتفي هذه الصفحةالوضع الداكنالمستنداتإجراءات الصفحةنسخ الصفحةنسخ للذكاء الاصطناعيعرض بصيغة Markdownالمصدرمسار التنقلالقائمة الرئيسيةالعودة إلى الأعلىالقائمةالصفحاتالسابقالتالينسختم النسخشيفرةملفجدولمخططمصدر المخططالصيغة [n]بحثتصفيةالمعروض: [n]تعديل هذه الصفحةآخر تحديثاللغات%Y-%m-%dعن الكاتبمقالات ذات صلةمشاركةلم تُترجم هذه الصفحة بعد، لذا تُعرض باللغة الإنجليزية.السنواتالوسومالتصنيفاتمنشوراتلا توجد منشورات بعد.مميزاقرأ المزيدقراءة في [n] دقيقةبقلمآخر تحديثتدوينات أحدثتدوينات أقدمتدوينات ذات صلةسلسلةالجزء [n] من [total]نسخ الرابطتم نسخ الرابطالخلاصةالأحدثعاجلمباشرتصحيحالمصادرالمزيد في [section]الكتّاببنية الملفاتإغلاقمحتوى مضمّنموصى بهإعلانالعودة إلى موضع الإحالةالتقدّمالبريد الإلكترونياشتركمطلوببيانات المخططيحتاج هذا المحتوى التفاعلي إلى JavaScript.[label]، [name][name] [n]جارٍ التحميل…الصفحة غير موجودةالصفحة التي طلبتها غير موجودة أو نُقلت.تمت إزالة الصفحةأُزيلت هذه الصفحة عمدًا ولن تعود.حدث خطأ ماتعذّر على الخادم عرض هذه الصفحة. يُرجى المحاولة بعد قليل.الانتقال إلى الصفحة الرئيسيةنُقلت هذه الصفحة.المتابعة إلى الصفحة الجديدةاكتب حرفين على الأقل للبحث.الكلتصفية حسبالدورالعميلالسنةالأدواتالروابطالموقعنوع التوظيفالراتبتاريخ النشرآخر موعد للتقديمقدّم الآنيبدأينتهيالمكانعبر الإنترنتالبرنامجاحصل على التذاكرأضف إلى التقويمالحلقة [n]الموسم [n]المدةاستمعالنص المكتوبشهريسنويفترة الفوترةالأكثر شيوعًاتنزيلالإصدارالألوانالملفاتإرسالالاسمالبريد الإلكترونيالرسالةالتواصلأُضيفتغيّرأُصلحأُزيلالأمانالآنالتاليلاحقًاانتقل إلى الحرفالدروس[n] دقيقةالوحدة [n]الفصل [n]ساري المفعول منالخبرةالتعليمالمهاراتحتى الآنجارٍ التحميل…المحتوياتعرض القالبقالب modoo.todayعرض حيالتوثيقالتوثيقاستخدم هذا النموذجإخفاء خلال هذه الزيارةنموذج التوثيقنموذج المدونةنموذج الصفحة المقصودة{%- endcapture -%}{%- assign _tx = _tc | split: "" -%}
2
+ {%- capture _tc -%}انتقل إلى المحتوىيفتح في نافذة جديدةافتح في نافذة جديدةملاحظةنصيحةمهمتحذيرتنبيهمتاحجزئيمخطط لهمكتملغير مكتملالخياراتفي هذه الصفحةرابط إلى القسم: [name]الوضع الداكنالمستنداتإجراءات الصفحةنسخ الصفحةنسخ للذكاء الاصطناعيعرض بصيغة Markdownالمصدرمسار التنقلالقائمة الرئيسيةالعودة إلى الأعلىالقائمةالصفحاتالسابقالتالينسختم النسخشيفرةملفجدولمخططمصدر المخططالصيغة [n]بحثتصفيةالمعروض: [n]تعديل هذه الصفحةآخر تحديثمبني من [commit]الإبلاغ عن مشكلةهل كانت هذه الصفحة مفيدة؟نعملاناقشاللغات%Y-%m-%dعن الكاتبمقالات ذات صلةمشاركةلم تُترجم هذه الصفحة بعد، لذا تُعرض باللغة الإنجليزية.السنواتالوسومالتصنيفاتمنشوراتلا توجد منشورات بعد.مميزاقرأ المزيدقراءة في [n] دقيقةبقلمآخر تحديثتدوينات أحدثتدوينات أقدمتدوينات ذات صلةسلسلةالجزء [n] من [total]نسخ الرابطتم نسخ الرابطالخلاصةاشترك (Atom)الأحدثعاجلمباشرتصحيحالمصادرالمزيد في [section]الكتّاببنية الملفاتإغلاقمحتوى مضمّنموصى بهإعلانصدر [version].ما الجديدالعودة إلى موضع الإحالةالتقدّمالبريد الإلكترونياشتركمطلوببيانات المخططيحتاج هذا المحتوى التفاعلي إلى JavaScript.[label]، [name][name] [n]جارٍ التحميل…الصفحة غير موجودةالصفحة التي طلبتها غير موجودة أو نُقلت.تمت إزالة الصفحةأُزيلت هذه الصفحة عمدًا ولن تعود.حدث خطأ ماتعذّر على الخادم عرض هذه الصفحة. يُرجى المحاولة بعد قليل.الانتقال إلى الصفحة الرئيسيةنُقلت هذه الصفحة.المتابعة إلى الصفحة الجديدةاكتب حرفين على الأقل للبحث.الكلتصفية حسبالدورالعميلالسنةالأدواتالروابطالموقعنوع التوظيفالراتبتاريخ النشرآخر موعد للتقديمقدّم الآنيبدأينتهيالمكانعبر الإنترنتالبرنامجاحصل على التذاكرالسعرمجانيإصدارات GitHub (Atom)أضف إلى التقويمالحلقة [n]الموسم [n]المدةاستمعالنص المكتوبشهريسنويفترة الفوترةالأكثر شيوعًاتنزيلالإصدارالألوانالملفاتإرسالالاسمالبريد الإلكترونيالرسالةالتواصلأُضيفتغيّرأُصلحأُزيلالأمانالآنالتاليلاحقًاانتقل إلى الحرفالدروس[n] دقيقةالوحدة [n]الفصل [n]ساري المفعول منالخبرةالتعليمالمهاراتحتى الآنجارٍ التحميل…المحتوياتعرض القالبقالب modoo.todayعرض حيالتوثيقالتوثيقاستخدم هذا النموذجإخفاء خلال هذه الزيارةنموذج التوثيقنموذج المدونةنموذج الصفحة المقصودةأنت غير متصل بالإنترنتهذه الصفحة غير محفوظة على هذا الجهاز. تحقّق من اتصالك ثم حاول مرة أخرى.صفحات يمكنك قراءتها دون اتصالإعادة المحاولةيتوفر إصدار جديد من هذا الموقع.إعادة التحميللاحقًاأنت غير متصل بالإنترنت. ما زال بإمكانك فتح الصفحات التي زرتها.إغلاقتثبيتيمكنك أيضًا تثبيت هذا الموقع من قائمة المتصفح أو من قائمة المشاركة.{%- endcapture -%}{%- assign _tx = _tc | split: "" -%}
@@ -1,2 +1,2 @@
1
1
  {%- comment -%}Generated by script/i18n-build from i18n/de.yml; do not edit.{%- endcomment -%}
2
- {%- capture _tc -%}Zum Inhalt springenöffnet in einem neuen FensterIn neuem Fenster öffnenHinweisTippWichtigWarnungVorsichtVerfügbarTeilweiseGeplantErledigtOffenOptionenAuf dieser SeiteDunkelmodusDokumentationSeitenaktionenSeite kopierenFür KI kopierenAls Markdown anzeigenQuelleBrotkrümelnavigationHauptmenüNach obenMenüSeitenZurückWeiterKopierenKopiertCodeDateiTabelleDiagrammDiagrammquelleFormel [n]SucheFiltern[n] angezeigtDiese Seite bearbeitenZuletzt aktualisiertSprachen%d.%m.%YÜber den AutorÄhnliche BeiträgeTeilenDiese Seite ist noch nicht übersetzt und wird daher auf Englisch angezeigt.JahreSchlagwörterKategorienBeiträgeNoch keine Beiträge.EmpfohlenWeiterlesen[n] Min. LesezeitVonAktualisiertNeuere BeiträgeÄltere BeiträgeÄhnliche BeiträgeSerieTeil [n] von [total]Link kopierenLink kopiertFeedNeuesteEilmeldungLiveKorrekturQuellenMehr aus [section]AutorenDateistrukturSchließenEingebetteter InhaltEmpfohlenAnkündigungZurück zum VerweisFortschrittE-Mail-AdresseAbonnierenErforderlichDiagrammdatenDieser interaktive Inhalt benötigt JavaScript.[label], [name][name] [n]Wird geladen …Seite nicht gefundenDie angeforderte Seite existiert nicht oder wurde verschoben.Seite entferntDiese Seite wurde bewusst entfernt und kommt nicht zurück.Etwas ist schiefgelaufenDer Server konnte diese Seite nicht anzeigen. Bitte versuchen Sie es gleich noch einmal.Zur StartseiteDiese Seite ist umgezogen.Weiter zur neuen SeiteGeben Sie mindestens zwei Zeichen ein, um zu suchen.AlleFiltern nachRolleKundeJahrWerkzeugeLinksOrtAnstellungsartGehaltVeröffentlichtBewerbung bisBewerbenBeginnEndeVeranstaltungsortOnlineProgrammTicketsZum Kalender hinzufügenFolge [n]Staffel [n]DauerAnhörenTranskriptMonatlichJährlichAbrechnungszeitraumAm beliebtestenHerunterladenVersionFarbenDateienSendenNameE-MailNachrichtKontaktHinzugefügtGeändertBehobenEntferntSicherheitJetztAls NächstesSpäterZum Buchstaben springenLektionen[n] Min.Modul [n]Kapitel [n]Gültig abBerufserfahrungAusbildungKenntnisseHeuteWird geladen…InhaltTheme-Vorschaumodoo.today ThemeLive-DemoDokumentationDokuDiesen Starter verwendenFür diesen Besuch ausblendenDoku-StarterBlog-StarterLandingpage-Starter{%- endcapture -%}{%- assign _tx = _tc | split: "" -%}
2
+ {%- capture _tc -%}Zum Inhalt springenöffnet in einem neuen FensterIn neuem Fenster öffnenHinweisTippWichtigWarnungVorsichtVerfügbarTeilweiseGeplantErledigtOffenOptionenAuf dieser SeiteLink zum Abschnitt: [name]DunkelmodusDokumentationSeitenaktionenSeite kopierenFür KI kopierenAls Markdown anzeigenQuelleBrotkrümelnavigationHauptmenüNach obenMenüSeitenZurückWeiterKopierenKopiertCodeDateiTabelleDiagrammDiagrammquelleFormel [n]SucheFiltern[n] angezeigtDiese Seite bearbeitenZuletzt aktualisiertGebaut aus [commit]Problem meldenWar diese Seite hilfreich?JaNeinDiskutierenSprachen%d.%m.%YÜber den AutorÄhnliche BeiträgeTeilenDiese Seite ist noch nicht übersetzt und wird daher auf Englisch angezeigt.JahreSchlagwörterKategorienBeiträgeNoch keine Beiträge.EmpfohlenWeiterlesen[n] Min. LesezeitVonAktualisiertNeuere BeiträgeÄltere BeiträgeÄhnliche BeiträgeSerieTeil [n] von [total]Link kopierenLink kopiertFeedAbonnieren (Atom)NeuesteEilmeldungLiveKorrekturQuellenMehr aus [section]AutorenDateistrukturSchließenEingebetteter InhaltEmpfohlenAnkündigung[version] ist erschienen.Was ist neuZurück zum VerweisFortschrittE-Mail-AdresseAbonnierenErforderlichDiagrammdatenDieser interaktive Inhalt benötigt JavaScript.[label], [name][name] [n]Wird geladen …Seite nicht gefundenDie angeforderte Seite existiert nicht oder wurde verschoben.Seite entferntDiese Seite wurde bewusst entfernt und kommt nicht zurück.Etwas ist schiefgelaufenDer Server konnte diese Seite nicht anzeigen. Bitte versuchen Sie es gleich noch einmal.Zur StartseiteDiese Seite ist umgezogen.Weiter zur neuen SeiteGeben Sie mindestens zwei Zeichen ein, um zu suchen.AlleFiltern nachRolleKundeJahrWerkzeugeLinksOrtAnstellungsartGehaltVeröffentlichtBewerbung bisBewerbenBeginnEndeVeranstaltungsortOnlineProgrammTicketsPreisKostenlosGitHub-Releases (Atom)Zum Kalender hinzufügenFolge [n]Staffel [n]DauerAnhörenTranskriptMonatlichJährlichAbrechnungszeitraumAm beliebtestenHerunterladenVersionFarbenDateienSendenNameE-MailNachrichtKontaktHinzugefügtGeändertBehobenEntferntSicherheitJetztAls NächstesSpäterZum Buchstaben springenLektionen[n] Min.Modul [n]Kapitel [n]Gültig abBerufserfahrungAusbildungKenntnisseHeuteWird geladen…InhaltTheme-Vorschaumodoo.today ThemeLive-DemoDokumentationDokuDiesen Starter verwendenFür diesen Besuch ausblendenDoku-StarterBlog-StarterLandingpage-StarterSie sind offlineDiese Seite ist auf diesem Gerät nicht gespeichert. Prüfen Sie Ihre Verbindung und versuchen Sie es erneut.Offline lesbare SeitenErneut versuchenEine neue Version dieser Website ist verfügbar.Neu ladenSpäterSie sind offline. Bereits besuchte Seiten lassen sich weiterhin öffnen.SchließenInstallierenSie können diese Website auch über das Menü oder das Teilen-Menü Ihres Browsers installieren.{%- endcapture -%}{%- assign _tx = _tc | split: "" -%}