jekyll-theme-modootoday 1.5.0 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +103 -1
- data/README.ja.md +150 -0
- data/README.ko.md +20 -17
- data/README.md +19 -16
- data/RULES.md +8 -2
- data/_includes/modootoday/assets/build.html +6 -0
- data/_includes/modootoday/assets/registry.html +21 -7
- data/_includes/modootoday/assets/scripts.html +5 -0
- data/_includes/modootoday/assets/sheets.html +9 -3
- data/_includes/modootoday/assets/site-scripts.html +8 -3
- data/_includes/modootoday/blog/subscribe.html +5 -0
- data/_includes/modootoday/brand/icon.html +2 -1
- data/_includes/modootoday/chart/figure.html +4 -0
- data/_includes/modootoday/chart/table.html +14 -0
- data/_includes/modootoday/chrome/banner-text.html +16 -0
- data/_includes/modootoday/chrome/banner.html +5 -0
- data/_includes/modootoday/chrome/showcase.html +13 -0
- data/_includes/modootoday/config.html +9 -5
- data/_includes/modootoday/detail/cta.html +1 -1
- data/_includes/modootoday/detail/facts.html +1 -0
- data/_includes/modootoday/detail/jsonld.html +6 -1
- data/_includes/modootoday/detail/page.html +1 -0
- data/_includes/modootoday/detail/tickets.html +6 -0
- data/_includes/modootoday/docs-extra/feed-entries.html +24 -0
- data/_includes/modootoday/docs-extra/head.html +7 -1
- data/_includes/modootoday/head-meta.html +25 -14
- data/_includes/modootoday/i18n/ar.html +1 -1
- data/_includes/modootoday/i18n/de.html +1 -1
- data/_includes/modootoday/i18n/el.html +1 -1
- data/_includes/modootoday/i18n/es.html +1 -1
- data/_includes/modootoday/i18n/fa.html +1 -1
- data/_includes/modootoday/i18n/fr.html +1 -1
- data/_includes/modootoday/i18n/id.html +1 -1
- data/_includes/modootoday/i18n/it.html +1 -1
- data/_includes/modootoday/i18n/ja.html +1 -1
- data/_includes/modootoday/i18n/ko.html +1 -1
- data/_includes/modootoday/i18n/ml.html +1 -1
- data/_includes/modootoday/i18n/pl.html +1 -1
- data/_includes/modootoday/i18n/pt-BR.html +1 -1
- data/_includes/modootoday/i18n/ro.html +1 -1
- data/_includes/modootoday/i18n/ru.html +1 -1
- data/_includes/modootoday/i18n/th.html +1 -1
- data/_includes/modootoday/i18n/tr.html +1 -1
- data/_includes/modootoday/i18n/uk.html +1 -1
- data/_includes/modootoday/i18n/ur-Latn.html +1 -1
- data/_includes/modootoday/i18n/vi.html +1 -1
- data/_includes/modootoday/i18n/zh-CN.html +1 -1
- data/_includes/modootoday/i18n/zh-TW.html +1 -1
- data/_includes/modootoday/i18n.html +176 -136
- data/_includes/modootoday/jsonld/graph.html +1 -1
- data/_includes/modootoday/links/content.html +6 -2
- data/_includes/modootoday/markdown/anchors.html +26 -0
- data/_includes/modootoday/markdown/c/chart.html +24 -0
- data/_includes/modootoday/markdown/c/install.html +6 -0
- data/_includes/modootoday/markdown/c/widget.html +22 -0
- data/_includes/modootoday/markdown/components.html +4 -2
- data/_includes/modootoday/markdown/figures/diagrams.html +32 -0
- data/_includes/modootoday/markdown/figures/math.html +34 -0
- data/_includes/modootoday/markdown/figures.html +8 -0
- data/_includes/modootoday/markdown/inline/chart.html +30 -0
- data/_includes/modootoday/markdown/inline/widget.html +19 -0
- data/_includes/modootoday/markdown/inline.html +5 -1
- data/_includes/modootoday/markdown/sections.html +10 -4
- data/_includes/modootoday/meta/feed-url.html +13 -0
- data/_includes/modootoday/meta/feedback.html +14 -0
- data/_includes/modootoday/meta/feeds.html +14 -0
- data/_includes/modootoday/meta/github.html +15 -0
- data/_includes/modootoday/meta/og-image.html +15 -0
- data/_includes/modootoday/meta/releases-feed.html +5 -0
- data/_includes/modootoday/page-meta.html +22 -4
- data/_includes/modootoday/pwa/head.html +7 -0
- data/_includes/modootoday/pwa/manifest.json +54 -0
- data/_includes/modootoday/pwa/offline-assets.html +10 -0
- data/_includes/modootoday/pwa/precache.html +21 -0
- data/_includes/modootoday/pwa/sw.js +36 -0
- data/_includes/modootoday/render/chart.html +15 -0
- data/_includes/modootoday/render/math.html +21 -5
- data/_includes/modootoday/render/mermaid.html +4 -3
- data/_includes/modootoday/site/dir.html +5 -0
- data/_includes/modootoday/stylesheets.html +5 -1
- data/_includes/modootoday/t.html +1 -1
- data/_includes/modootoday/theme-color.html +1 -0
- data/_includes/modootoday/version.html +1 -1
- data/_layouts/archive.html +2 -1
- data/_layouts/author.html +1 -0
- data/_layouts/blog.html +1 -0
- data/_layouts/default.html +12 -9
- data/_layouts/doc.html +1 -0
- data/_layouts/feed.html +14 -5
- data/_layouts/pages/offline.html +14 -0
- data/_layouts/redirect.html +1 -2
- data/_sass/modootoday/blog/_cards.scss +2 -1
- data/_sass/modootoday/components/chrome/_showcase.scss +40 -0
- data/_sass/modootoday/components/content/_anchor.scss +9 -0
- data/_sass/modootoday/components/data/_chart.scss +25 -0
- data/_sass/modootoday/components/doc/_sidebar.scss +3 -1
- data/_sass/modootoday/components/doc/_toc.scss +4 -0
- data/_sass/modootoday/components/figure/_figure-svg.scss +2 -0
- data/_sass/modootoday/components/media/_diagram.scss +16 -0
- data/_sass/modootoday/components/media/_widget.scss +7 -0
- data/_sass/modootoday/components/section/showcase/_install.scss +14 -0
- data/_sass/modootoday/components/section/structure/_timeline.scss +7 -3
- data/_sass/modootoday/layout/_page-meta.scss +5 -1
- data/_sass/modootoday/print/_sheet.scss +17 -0
- data/_sass/modootoday/pwa/_toast.scss +16 -0
- data/_sass/modootoday.scss +1 -0
- data/assets/css/modootoday/chrome/print.scss +5 -0
- data/assets/css/modootoday/chrome/showcase.scss +8 -0
- data/assets/css/modootoday/chrome/toast.scss +8 -0
- data/assets/css/modootoday/content/anchor.scss +7 -0
- data/assets/css/modootoday/data/chart.scss +7 -0
- data/assets/css/modootoday/media/widget.scss +7 -0
- data/assets/css/modootoday/showcase/install.scss +7 -0
- data/assets/js/modootoday/chrome/showcase.js +15 -0
- data/assets/js/modootoday/chrome/theme-init.js +3 -2
- data/assets/js/modootoday/content/scroll-region.js +68 -11
- data/assets/js/modootoday/data/chart-table.js +16 -0
- data/assets/js/modootoday/data/chart.js +106 -0
- data/assets/js/modootoday/pwa/install.js +60 -0
- data/assets/js/modootoday/pwa/offline.js +33 -0
- data/assets/js/modootoday/pwa/register.js +79 -0
- data/assets/js/modootoday/pwa/update-toast.js +75 -0
- data/assets/js/modootoday/pwa/worker.js +150 -0
- data/assets/js/modootoday/structure/toc-spy.js +121 -0
- data/assets/modootoday/icon-192.png +0 -0
- data/assets/modootoday/icon-512.png +0 -0
- data/assets/modootoday/icon-maskable-512.png +0 -0
- data/i18n/ar.yml +33 -3
- data/i18n/de.yml +33 -3
- data/i18n/el.yml +33 -3
- data/i18n/en.yml +33 -3
- data/i18n/es.yml +33 -3
- data/i18n/fa.yml +33 -3
- data/i18n/fr.yml +33 -3
- data/i18n/glossary.yml +21 -3
- data/i18n/id.yml +33 -3
- data/i18n/it.yml +33 -3
- data/i18n/ja.yml +33 -3
- data/i18n/ko.yml +33 -3
- data/i18n/ml.yml +33 -3
- data/i18n/pl.yml +33 -3
- data/i18n/pt-BR.yml +33 -3
- data/i18n/ro.yml +33 -3
- data/i18n/ru.yml +33 -3
- data/i18n/th.yml +33 -3
- data/i18n/tr.yml +33 -3
- data/i18n/uk.yml +33 -3
- data/i18n/ur-Latn.yml +33 -3
- data/i18n/vi.yml +33 -3
- data/i18n/zh-CN.yml +33 -3
- data/i18n/zh-TW.yml +33 -3
- data/lib/modootoday/check/build/build_output.rb +13 -4
- data/lib/modootoday/check/build/feeds.rb +63 -0
- data/lib/modootoday/check/build/links.rb +74 -0
- data/lib/modootoday/check/build/pwa/manifest.rb +61 -0
- data/lib/modootoday/check/build/pwa/precache.rb +38 -0
- data/lib/modootoday/check/build/pwa/worker.rb +55 -0
- data/lib/modootoday/check/build/pwa.rb +55 -0
- data/lib/modootoday/check/build/showcase.rb +27 -0
- data/lib/modootoday/check/build/structured_data/nested.rb +29 -0
- data/lib/modootoday/check/build/structured_data.rb +6 -3
- data/lib/modootoday/check/build/{aliases.rb → stubs/aliases.rb} +1 -1
- data/lib/modootoday/check/build/{records.rb → stubs/records.rb} +1 -1
- data/lib/modootoday/check/build/{twins.rb → stubs/twins.rb} +1 -1
- data/lib/modootoday/check/build/third_party.rb +1 -1
- data/lib/modootoday/check/cli.rb +9 -3
- data/lib/modootoday/check/config/keys/appearance/brand.rb +28 -0
- data/lib/modootoday/check/config/keys/appearance/chrome.rb +11 -1
- data/lib/modootoday/check/config/keys/appearance/showcase.rb +57 -0
- data/lib/modootoday/check/config/keys/appearance/switches.rb +11 -1
- data/lib/modootoday/check/config/keys/figures/chart.rb +16 -0
- data/lib/modootoday/check/config/keys/figures/diagrams.rb +31 -0
- data/lib/modootoday/check/config/keys/figures/renderers.rb +10 -0
- data/lib/modootoday/check/config/keys/pages/blog.rb +11 -0
- data/lib/modootoday/check/config/keys/pages/content.rb +11 -0
- data/lib/modootoday/check/config/keys/pages/edit_url.rb +17 -2
- data/lib/modootoday/check/config/keys/pages/feedback.rb +24 -0
- data/lib/modootoday/check/config/keys/pages/languages.rb +2 -0
- data/lib/modootoday/check/config/keys/serving/delivery.rb +8 -1
- data/lib/modootoday/check/config/keys/serving/pwa.rb +118 -0
- data/lib/modootoday/check/config/keys.rb +9 -1
- data/lib/modootoday/check/config/renderers.rb +36 -12
- data/lib/modootoday/check/config/site_config.rb +2 -1
- data/lib/modootoday/check/config/validate.rb +4 -1
- data/lib/modootoday/check/layouts/detail.rb +24 -6
- data/lib/modootoday/check/layouts/directory.rb +1 -1
- data/lib/modootoday/check/page/a11y/new_window.rb +4 -2
- data/lib/modootoday/check/page/chart.rb +91 -0
- data/lib/modootoday/check/page/component_rules.rb +5 -1
- data/lib/modootoday/check/page/figures/diagrams.rb +72 -0
- data/lib/modootoday/check/page/figures/freshness.rb +55 -0
- data/lib/modootoday/check/page/figures/math_static.rb +88 -0
- data/lib/modootoday/check/page/math_notation.rb +1 -1
- data/lib/modootoday/check/page/pages.rb +22 -0
- data/lib/modootoday/check/page/widget.rb +66 -0
- data/lib/modootoday/check.rb +7 -3
- data/lib/modootoday/figures.rb +88 -0
- data/lib/modootoday/markdown.rb +3 -0
- data/lib/modootoday/stubs/cli.rb +5 -4
- data/lib/modootoday/stubs/pwa.rb +57 -0
- data/lib/modootoday/stubs.rb +3 -2
- metadata +88 -5
data/README.md
CHANGED
|
@@ -6,20 +6,20 @@ A Jekyll theme that keeps page bodies in plain GitHub Markdown and styles them w
|
|
|
6
6
|
[](https://rubygems.org/gems/jekyll-theme-modootoday)
|
|
7
7
|
[](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.**
|
|
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
19
|
- **Readable by agents.** Every page can have a byte-identical Markdown twin, plus `llms.txt` and `llms-full.txt`.
|
|
20
20
|
- **Accessible.** Keyboard shortcuts, visible focus, safe areas on phones, 44 px touch targets, high contrast and reduced motion are built in.
|
|
21
21
|
- **Checked.** `modootoday-check` validates the sources and the built site.
|
|
22
|
-
- **Optional extras.** Search, a light/dark toggle, Mermaid diagrams and KaTeX math (off by default, loaded only on pages that use them) and schema.org JSON-LD.
|
|
22
|
+
- **Optional extras.** Search, a light/dark toggle, Mermaid diagrams and KaTeX math (off by default, loaded only on pages that use them), static diagrams and math from SVG files and MathML you commit, and schema.org JSON-LD.
|
|
23
23
|
|
|
24
24
|
## Install
|
|
25
25
|
|
|
@@ -27,7 +27,7 @@ As a gem (`theme:`):
|
|
|
27
27
|
|
|
28
28
|
```ruby
|
|
29
29
|
# Gemfile
|
|
30
|
-
gem "jekyll-theme-modootoday", "~> 1.
|
|
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.
|
|
43
|
-
plugins:
|
|
44
|
-
- jekyll-remote-theme
|
|
42
|
+
remote_theme: modootoday/jekyll-theme-modootoday@v1.7.0
|
|
43
|
+
plugins: [jekyll-remote-theme]
|
|
45
44
|
```
|
|
46
45
|
|
|
47
|
-
Pin a tag or a commit.
|
|
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.
|
|
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,17 +66,18 @@ 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
|
|
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), `modootoday.search` keys and collections, `search.json` over 1.5 MB (warning), unconverted markers in the build, schema.org JSON-LD in the build (valid JSON, vocabulary, required properties per type, absolute URLs, ISO 8601 dates, one graph per page, agreement with Open Graph, a `DefinedTerm` page's `term_set` glossary), `modootoday.schema.faq`, `modootoday.records` (a page per record and a record per page, as `modootoday-stubs --records --check` judges) |
|
|
78
|
+
| `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) |
|
|
80
79
|
| `--twins` | every page has a byte-identical Markdown twin, 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. Warnings, failures with `--strict`; needs the nokogiri gem |
|
|
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
83
|
| `--github-pages[=VERSION]` | `Gemfile.lock` pins `github-pages` VERSION (default 232) |
|
|
@@ -86,6 +86,8 @@ Walkthrough: [Write your first page](https://modootoday.github.io/jekyll-theme-m
|
|
|
86
86
|
| `--i18n` | `_data/i18n/<lang>.yml` against the theme registry (`i18n/en.yml` in the gem): unknown keys, `%{name}` placeholder mismatches, and pages marked `translation: pending` |
|
|
87
87
|
| `--i18n-pages` | warn about default-language pages with no translation in a `modootoday.full_languages` language (the page with the same `ref:`, else `<name>.<lang>.md` beside it or the same path under `<lang>/`) and about translations without `source_rev` or whose source changed since it; with `--strict` they fail. A translation beside its source whose `permalink` is not the source's URL under `/<lang>` is an error |
|
|
88
88
|
| `--i18n-init=LANG,...` | copy the theme's catalogs (`i18n/<lang>.yml`, 23 languages) into `SRC/_data/i18n/` as a starting point for overrides (optional; the theme already uses them), and list keys an existing catalog lacks |
|
|
89
|
+
| `--diagrams` | instead of checking, print the static diagrams whose SVG is missing or stale as JSON (`page`, `name`, `line`, `fence`, `digest`, `files`, `reason`) and exit 1 when there is any; SITE may be omitted. A pre-commit hook or a render script reads it |
|
|
90
|
+
| `--math` | with `modootoday.math.mode: static`, instead of checking, print the `_data/math` files whose page has math blocks without an entry or with a stale one as JSON (`key`, `file`, `page`, `blocks` with `line`, `tex` and `digest`, `reason`) and exit 1 when there is any; SITE may be omitted. `script/figures/math.mjs` reads it |
|
|
89
91
|
| `--gh` | also render each page with `gh api markdown` (network, `gh` login) |
|
|
90
92
|
| `--help, -h` | print usage and options (`--help=markdown` prints the README table) |
|
|
91
93
|
| `--version` | print the rules version |
|
|
@@ -100,6 +102,7 @@ Walkthrough: [Write your first page](https://modootoday.github.io/jekyll-theme-m
|
|
|
100
102
|
| `--twins` | a stub `<name>.md.txt` per page (`layout: twin`) for its twin at `/<name>/index.md` |
|
|
101
103
|
| `--aliases` | the aliases `modootoday.aliases` turns on: `md` a stub `<name>.flat.md.txt` (`layout: twin`) at `/<name>.md`, `html` a stub `<name>.html.md.txt` (`layout: redirect`) at `/<name>.html` |
|
|
102
104
|
| `--records[=SET,...]` | a page `<dir>/<key>.md` per record of each set in `modootoday.records` (or only the named sets): front matter only, with the title, description, permalink and `record:` the layout reads |
|
|
105
|
+
| `--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 |
|
|
103
106
|
| `--write` | write the planned stubs; files whose content is already right are not touched |
|
|
104
107
|
| `--check` | write nothing; exit 1 when a stub is missing, out of date or orphaned |
|
|
105
108
|
| `--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) |
|
|
@@ -115,13 +118,13 @@ Walkthrough: [Write your first page](https://modootoday.github.io/jekyll-theme-m
|
|
|
115
118
|
- `llms.txt` and `llms-full.txt` exist at `/` and under each `/<lang>/`.
|
|
116
119
|
- Jekyll 4: `plugins: [jekyll-theme-modootoday]` creates them; the classic GitHub Pages build uses one-file stubs, which `modootoday-stubs SRC --twins --write` writes.
|
|
117
120
|
- Optional URL aliases (`modootoday.aliases`): `/guide.md` (the twin again) and `/guide.html` (a redirect to `/guide/`), from `modootoday-stubs SRC --aliases --write`.
|
|
118
|
-
- Details: [
|
|
121
|
+
- 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).
|
|
119
122
|
|
|
120
123
|
## Guides
|
|
121
124
|
|
|
122
125
|
- [Documentation site](https://modootoday.github.io/jekyll-theme-modootoday/) (built with this theme from [`docs/`](docs/))
|
|
123
|
-
- [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/) · [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)
|
|
124
|
-
- Supported stacks: GitHub Pages
|
|
126
|
+
- [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))
|
|
127
|
+
- 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).
|
|
125
128
|
- [Security policy](SECURITY.md) · [Code of conduct](CODE_OF_CONDUCT.md)
|
|
126
129
|
|
|
127
130
|
## Exit codes
|
|
@@ -137,7 +140,7 @@ Walkthrough: [Write your first page](https://modootoday.github.io/jekyll-theme-m
|
|
|
137
140
|
|
|
138
141
|
Issues and pull requests are welcome. English is the canonical language; translations follow it. See [CONTRIBUTING.md](CONTRIBUTING.md).
|
|
139
142
|
|
|
140
|
-
|
|
143
|
+
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.
|
|
141
144
|
|
|
142
145
|
## License
|
|
143
146
|
|
data/RULES.md
CHANGED
|
@@ -26,7 +26,7 @@ Every content page starts with front matter; an empty block (`---` then `---`) i
|
|
|
26
26
|
| Card grid | under `##`, list items `- **Title** — text` or `- **Title**: text` (the separator after the title is not shown) | CSS only | list |
|
|
27
27
|
| CTA buttons | every link-only paragraph in `section.mt-hero` and in `c: cta` sections; the first link is primary. Separator text such as `·` between links is a text node, so the paragraph still counts as link-only | CSS `p:has(> a):not(:has(> :not(a)))` | links |
|
|
28
28
|
| Install tabs | in a `c: tabs` section, repeated `### name` + fenced code block (info string = one language word) | `data-tabs` + i18n `tabs.label`; `assets/js/modootoday/structure/tabs.js` builds WAI-ARIA tabs (arrows, Home, End) | all blocks in order |
|
|
29
|
-
| Diagrams, math | ```` ```mermaid ```` / ```` ```math ````, a `$$` block on its own lines; inline `$…$` only with `modootoday.math.inline: true` (otherwise a checker warning) | off by default. `modootoday.mermaid` / `modootoday.math` load a version-pinned renderer with SRI `integrity` (or a self-hosted path) plus `assets/js/modootoday-{mermaid,math}.js`, only on pages with a block; front matter `mermaid: false` / `math: false` skips a page. A CDN adds its origin to `script-src` (math also `style-src`, `font-src`) and receives visitors' IP addresses; Mermaid needs `style-src 'unsafe-inline'`. Any other third-party script or stylesheet, or one without matching `integrity` and `crossorigin="anonymous"`, is a checker error (docs: Math and diagrams) | code / GitHub mermaid, math |
|
|
29
|
+
| Diagrams, math | ```` ```mermaid ```` / ```` ```math ````, a `$$` block on its own lines; inline `$…$` only with `modootoday.math.inline: true` (otherwise a checker warning) | off by default. Front matter `diagrams: [{name, alt, caption, width, height}]` turns the n-th ```` ```mermaid ```` fence into `figure.mt-figure.mt-figure-svg.mt-diagram` showing the committed `<modootoday.diagrams.dir><name>.svg` (and `.dark.svg`, swapped by colour scheme) with the fence in `details.mt-diagram-source` (`modootoday.diagrams.source: none` drops it); count, `alt` and files are checked. `modootoday.math.mode: static` replaces the n-th ```` ```math ```` fence or `$$` block with the `html` of the n-th entry of `_data/math/<key>.yml` in `figure.mt-figure.mt-math > div.mt-figure-scroll` (MathML, no script); count and digests are checked and inline `$…$` is a checker error. `modootoday.mermaid` / `modootoday.math` load a version-pinned renderer with SRI `integrity` (or a self-hosted path) plus `assets/js/modootoday-{mermaid,math}.js`, only on pages with a block; front matter `mermaid: false` / `math: false` skips a page. A CDN adds its origin to `script-src` (math also `style-src`, `font-src`) and receives visitors' IP addresses; Mermaid needs `style-src 'unsafe-inline'`. Any other third-party script or stylesheet, or one without matching `integrity` and `crossorigin="anonymous"`, is a checker error (docs: Math and diagrams) | code / GitHub mermaid, math |
|
|
30
30
|
| Tables | GFM tables | CSS horizontal scroll | table |
|
|
31
31
|
| Decoration | front matter or layout | read by layouts, never in bodies | none |
|
|
32
32
|
|
|
@@ -49,6 +49,9 @@ 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 |
|
|
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 |
|
|
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 |
|
|
52
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 | — |
|
|
53
56
|
|
|
54
57
|
## 3. Localisation
|
|
@@ -81,10 +84,13 @@ The bans are about **portability**: the same source must look the same on github
|
|
|
81
84
|
|
|
82
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.
|
|
83
86
|
|
|
84
|
-
## 5. Checker (`modootoday-check SRC SITE [
|
|
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:
|
|
85
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`.
|
|
86
90
|
|
|
87
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
|
+
|
|
88
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).
|
|
89
95
|
|
|
90
96
|
| Mode | How | Twin URL | Use when | Limits |
|
|
@@ -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,23 +7,27 @@
|
|
|
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|
|
|
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|
|
|
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|1536
|
|
18
19
|
search|css|/assets/css/modootoday/chrome/search.css||search|1024
|
|
19
20
|
loading|css|/assets/css/modootoday/content/loading.css|class="mt-spinner^class="mt-skeleton^class="mt-topbar|loading|1024
|
|
20
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
|
|
21
23
|
bleed|css|/assets/css/modootoday/structure/bleed.css||bleed|512
|
|
22
24
|
terminal|css|/assets/css/modootoday/chrome/terminal.css||terminal|384
|
|
23
25
|
visual|css|/assets/css/modootoday/media/visual.css|class="mt-visual-poster^data-mt-script="|visual|256
|
|
24
26
|
filter|css|/assets/css/modootoday/data/filter.css|<div class="mt-filter"|filter|512
|
|
25
27
|
table|css|/assets/css/modootoday/data/table.css|<table|/base/table table|1280
|
|
26
28
|
table-stack|css|/assets/css/modootoday/data/table-stack.css|<table|table-stack|640
|
|
29
|
+
chart|css|/assets/css/modootoday/data/chart.css|class="mt-chart|data/chart|768
|
|
30
|
+
widget|css|/assets/css/modootoday/media/widget.css|class="mt-widget|media/widget|256
|
|
27
31
|
cta|section|/assets/css/modootoday/showcase/cta.css|cta||256
|
|
28
32
|
card|section|/assets/css/modootoday/showcase/card.css|features||640
|
|
29
33
|
linkcards|section|/assets/css/modootoday/showcase/linkcards.css|linkcards||640
|
|
@@ -31,6 +35,7 @@ quote|section|/assets/css/modootoday/showcase/quote.css|quote||384
|
|
|
31
35
|
gallery|section|/assets/css/modootoday/showcase/gallery.css|gallery||640
|
|
32
36
|
pricing|section|/assets/css/modootoday/showcase/pricing.css|pricing||768
|
|
33
37
|
subscribe|section|/assets/css/modootoday/showcase/subscribe.css|subscribe||512
|
|
38
|
+
install|section|/assets/css/modootoday/showcase/install.css|install||512
|
|
34
39
|
tabs|section|/assets/css/modootoday/structure/tabs.css|tabs||640
|
|
35
40
|
accordion|section|/assets/css/modootoday/structure/accordion.css|accordion||640
|
|
36
41
|
steps|section|/assets/css/modootoday/structure/steps.css|steps||512
|
|
@@ -42,14 +47,20 @@ params|section|/assets/css/modootoday/structure/params.css|params||384
|
|
|
42
47
|
split|section|/assets/css/modootoday/structure/split.css|split||512
|
|
43
48
|
tabs|module|/assets/js/modootoday/structure/tabs.js|||1024
|
|
44
49
|
menu|module|/assets/js/modootoday/chrome/menu.js|||768
|
|
45
|
-
scroll-region|module|/assets/js/modootoday/content/scroll-region.js|<pre^<table||
|
|
50
|
+
scroll-region|module|/assets/js/modootoday/content/scroll-region.js|<pre^<table^mt-figure-scroll||1664
|
|
46
51
|
table-stack|module|/assets/js/modootoday/data/table-stack.js|<table||1280
|
|
47
52
|
code-copy|module|/assets/js/modootoday/content/code-copy.js|<pre||1280
|
|
48
53
|
theme-toggle|module|/assets/js/modootoday/chrome/theme-toggle.js|||768
|
|
54
|
+
showcase|module|/assets/js/modootoday/chrome/showcase.js|||384
|
|
49
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
|
|
50
57
|
share|module|/assets/js/modootoday/blog/share.js|||640
|
|
51
58
|
search-keys|module|/assets/js/modootoday/chrome/search-keys.js|||1024
|
|
52
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
|
|
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
|
|
53
64
|
{%- endcapture -%}
|
|
54
65
|
{%- capture _mta_fixed -%}
|
|
55
66
|
core|sheet|/assets/css/modootoday.css|||4608
|
|
@@ -57,18 +68,23 @@ blog|sheet|/assets/css/modootoday-blog.css|||2304
|
|
|
57
68
|
detail|sheet|/assets/css/modootoday-detail.css|||1024
|
|
58
69
|
directory|sheet|/assets/css/modootoday-directory.css|||1920
|
|
59
70
|
docs-extra|sheet|/assets/css/modootoday-docs-extra.css|||1792
|
|
71
|
+
print|sheet|/assets/css/modootoday/chrome/print.css|||768
|
|
60
72
|
hero|sheet|/assets/css/modootoday-hero.css|||1280
|
|
61
73
|
marketing|sheet|/assets/css/modootoday-marketing.css|||1664
|
|
62
74
|
pages|sheet|/assets/css/modootoday-pages.css|||1408
|
|
63
75
|
resume|sheet|/assets/css/modootoday-resume.css|||768
|
|
76
|
+
toast|sheet|/assets/css/modootoday/chrome/toast.css|||640
|
|
64
77
|
theme-init|script|/assets/js/modootoday/chrome/theme-init.js|||256
|
|
65
78
|
mermaid|script|/assets/js/modootoday-mermaid.js|||1152
|
|
66
79
|
math|script|/assets/js/modootoday-math.js|||768
|
|
80
|
+
worker|script|/assets/js/modootoday/pwa/worker.js|||2304
|
|
67
81
|
config|import|/assets/js/modootoday/dom/config.js|||640
|
|
68
82
|
normalize|import|/assets/js/modootoday/text/normalize.js|||512
|
|
69
83
|
search|import|/assets/js/modootoday/chrome/search.js|||1792|/assets/js/modootoday/text/normalize.js
|
|
70
84
|
current|import|/assets/js/modootoday/theme/current.js|||640
|
|
71
85
|
chips|import|/assets/js/modootoday/data/filter-chips.js|||640
|
|
86
|
+
chart-table|import|/assets/js/modootoday/data/chart-table.js|||512
|
|
87
|
+
update-toast|import|/assets/js/modootoday/pwa/update-toast.js|||1280
|
|
72
88
|
{%- endcapture -%}
|
|
73
89
|
{%- assign mt_asset_rows = _mta_rows | newline_to_br | strip_newlines | split: "<br />" -%}
|
|
74
90
|
{%- assign _mta_cs = "" -%}{%- assign _mta_ss = "" -%}
|
|
@@ -83,7 +99,5 @@ chips|import|/assets/js/modootoday/data/filter-chips.js|||640
|
|
|
83
99
|
{%- include modootoday/version.html -%}
|
|
84
100
|
{%- assign _mta_av = site.modootoday.asset_version -%}{%- assign mt_asset_v = mt_version -%}
|
|
85
101
|
{%- if _mta_av == false -%}{%- assign mt_asset_v = "" -%}
|
|
86
|
-
{%- elsif _mta_av == "build" -%}{%-
|
|
87
|
-
{%- if _mta_rev == "" -%}{%- assign _mta_rev = site.time | date: "%s" -%}{%- endif -%}
|
|
88
|
-
{%- 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 -%}
|
|
89
103
|
{%- endif -%}
|
|
@@ -14,10 +14,15 @@
|
|
|
14
14
|
{%- if mt_components contains "code-copy" and _mta_hit contains "|code-copy|" -%}{%- assign _mta_on = _mta_on | append: "code-copy|" -%}
|
|
15
15
|
{%- elsif mt_components contains "page-actions" and mt_twin -%}{%- assign _mta_on = _mta_on | append: "code-copy|" -%}{%- endif -%}
|
|
16
16
|
{%- if mt_components contains "theme-toggle" and mt_theme_toggle -%}{%- assign _mta_on = _mta_on | append: "theme-toggle|" -%}{%- endif -%}
|
|
17
|
+
{%- if mt_showcase -%}{%- assign _mta_on = _mta_on | append: "showcase|" -%}{%- endif -%}
|
|
17
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 -%}
|
|
18
20
|
{%- if mt_blog_css and site.modootoday.blog.share != false -%}{%- assign _mta_on = _mta_on | append: "share|" -%}{%- endif -%}
|
|
19
21
|
{%- if mt_components contains "search" and mt_search_index -%}{%- assign _mta_on = _mta_on | append: "search-keys|" -%}{%- endif -%}
|
|
20
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 -%}
|
|
24
|
+
{%- comment -%}The chart library tag comes before the module tags: deferred scripts run in document order.{%- endcomment -%}
|
|
25
|
+
{%- if _mta_hit contains "|chart|" -%}{%- include modootoday/render/chart.html -%}{%- if mt_chart_on -%}{%- assign _mta_on = _mta_on | append: "chart|" -%}{%- endif -%}{%- endif -%}
|
|
21
26
|
{%- assign _mta_done = "|" -%}{%- assign _mta_pre = "|" -%}
|
|
22
27
|
{%- for _mta_r in mt_asset_rows -%}{%- assign _mta_c = _mta_r | split: "|" -%}{%- assign _mta_k = "|" | append: _mta_c[0] | append: "|" -%}
|
|
23
28
|
{%- if _mta_c[1] == "js" or _mta_c[1] == "module" -%}{%- if _mta_on contains _mta_k -%}{%- unless _mta_done contains _mta_k -%}{%- assign _mta_done = _mta_done | append: _mta_c[0] | append: "|" -%}
|
|
@@ -3,12 +3,18 @@
|
|
|
3
3
|
is linked when mt_page_c or the layout chain's mt_sheets names it. Parts the base layout draws after the head are named here.{%- endcomment -%}
|
|
4
4
|
{%- if include.kind == "component" -%}
|
|
5
5
|
{%- if site.modootoday.loading -%}{%- assign mt_page_c = mt_page_c | append: "loading|" -%}{%- endif -%}
|
|
6
|
-
{%- if
|
|
6
|
+
{%- if page.diagrams -%}{%- assign mt_page_c = mt_page_c | append: "figure|" -%}
|
|
7
|
+
{%- elsif site.modootoday.math.mode == "static" and site.modootoday.math.enabled != false and page.math != false -%}{%- if content contains "language-math" or content contains "\[" -%}{%- assign mt_page_c = mt_page_c | append: "figure|" -%}{%- endif -%}{%- endif -%}
|
|
8
|
+
{%- if mt_components contains "banner" -%}{%- 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
|
+
{%- if mt_showcase -%}{%- assign mt_page_c = mt_page_c | append: "showcase|" -%}{%- endif -%}
|
|
7
10
|
{%- assign _mta_fk = "footer-" | append: _lang -%}{%- assign _mta_fd = site.data.nav[_mta_fk] | default: site.data.nav.footer -%}
|
|
8
11
|
{%- if _mta_fd.columns and mt_components contains "footer" -%}{%- assign mt_page_c = mt_page_c | append: "footer|" -%}{%- endif -%}
|
|
9
12
|
{%- unless layout.mt_chrome == false or page.chrome == false -%}
|
|
10
|
-
{%-
|
|
11
|
-
{%-
|
|
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|" -%}
|
|
12
18
|
{%- elsif mt_nav and mt_components contains "pagination" and page.pagination != false -%}{%- assign _mta_nj = mt_nav | jsonify -%}
|
|
13
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 -%}
|
|
14
20
|
{%- endif -%}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
{%- comment -%}The site's module scripts named on this page by script: on hero: or a section item,
|
|
2
|
-
(name: {src, css, preload}; site paths only). Once per name: the css
|
|
3
|
-
so the URL matches the module's import), then <script type="module">,
|
|
1
|
+
{%- comment -%}The site's module scripts named on this page by script: on hero: or a section item, or whose element: is in the
|
|
2
|
+
rendered body (a widget), from modootoday.scripts (name: {src, css, preload, element}; site paths only). Once per name: the css
|
|
3
|
+
sheet, modulepreload for each preload path (no ?v= query, so the URL matches the module's import), then <script type="module">,
|
|
4
|
+
which runs deferred under script-src 'self'.{%- endcomment -%}
|
|
4
5
|
{%- assign _mtsn = "|" -%}{%- if page.hero.script -%}{%- assign _mtsn = _mtsn | append: page.hero.script | append: "|" -%}{%- endif -%}
|
|
5
6
|
{%- for _mtsi in page.sections -%}{%- if _mtsi.script -%}{%- assign _mtsn = _mtsn | append: _mtsi.script | append: "|" -%}{%- endif -%}{%- endfor -%}
|
|
7
|
+
{%- for _mtsi in site.modootoday.scripts -%}{%- assign _mtsl = _mtsi[1].element | append: "" -%}{%- if _mtsl contains "-" -%}
|
|
8
|
+
{%- assign _mtst = "<" | append: _mtsl | append: " " -%}{%- assign _mtsu = "<" | append: _mtsl | append: ">" -%}
|
|
9
|
+
{%- if content contains _mtst or content contains _mtsu -%}{%- assign _mtsn = _mtsn | append: _mtsi[0] | append: "|" -%}{%- endif -%}
|
|
10
|
+
{%- endif -%}{%- endfor -%}
|
|
6
11
|
{%- if _mtsn != "|" -%}{%- assign _mtsn = _mtsn | split: "|" | uniq -%}
|
|
7
12
|
{%- for _mtsk in _mtsn -%}{%- assign _mtse = site.modootoday.scripts[_mtsk] -%}{%- assign _mtsp = _mtse.src | append: "" -%}
|
|
8
13
|
{%- assign _mtsp1 = _mtsp | slice: 0, 1 -%}{%- assign _mtsp2 = _mtsp | slice: 0, 2 -%}
|
|
@@ -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,4 @@
|
|
|
1
|
+
{%- comment -%}One chart figure (markdown/inline/chart.html, markdown/c/chart.html): include.table is the rendered table, the
|
|
2
|
+
chart's only content until a script draws div.mt-chart-canvas; include.type, include.opts (space-separated) and
|
|
3
|
+
include.caption (an emphasis-only paragraph's text). Needs modootoday/i18n.html (chart.data names the folded table).{%- endcomment -%}
|
|
4
|
+
<figure class="mt-chart" data-type="{{ include.type }}"{% if include.opts != "" %} data-opts="{{ include.opts }}"{% endif %}><div class="mt-chart-canvas" hidden></div><div class="mt-chart-data" data-label="{{ mt_t_chart_data }}">{{ include.table }}</div>{% if include.caption != "" %}<figcaption>{{ include.caption }}</figcaption>{% endif %}</figure>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{%- comment -%}A chart data file (site.data.charts[<name>], include.data) as the table that is the chart's fallback:
|
|
2
|
+
{label, labels: [...], series: [{name, values: [...]}]}. Rows are the labels (row headers), columns the series; label
|
|
3
|
+
names the first column. Prints the table as kramdown does, so links/content.html wraps it in div.mt-table.{%- endcomment -%}
|
|
4
|
+
{%- assign _mct = include.data -%}
|
|
5
|
+
<table>
|
|
6
|
+
<thead>
|
|
7
|
+
<tr>{% if _mct.label %}<th scope="col">{{ _mct.label | escape }}</th>{% else %}<td></td>{% endif %}{% for _mcs in _mct.series %}<th scope="col">{{ _mcs.name | escape }}</th>{% endfor %}</tr>
|
|
8
|
+
</thead>
|
|
9
|
+
<tbody>
|
|
10
|
+
{%- for _mcl in _mct.labels -%}{%- assign _mci = forloop.index0 %}
|
|
11
|
+
<tr><th scope="row">{{ _mcl | escape }}</th>{% for _mcs in _mct.series %}<td>{{ _mcs.values[_mci] | escape }}</td>{% endfor %}</tr>
|
|
12
|
+
{%- endfor %}
|
|
13
|
+
</tbody>
|
|
14
|
+
</table>
|
|
@@ -0,0 +1,16 @@
|
|
|
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. Sets mt_bn_on, mt_bn_text, mt_bn_url and mt_bn_link; the text needs the i18n strings.{%- endcomment -%}
|
|
5
|
+
{%- assign _bn = site.modootoday.banner -%}
|
|
6
|
+
{%- assign mt_bn_on = false -%}{%- assign mt_bn_text = "" -%}{%- assign mt_bn_url = "" -%}{%- assign mt_bn_link = "" -%}
|
|
7
|
+
{%- if _bn.text -%}
|
|
8
|
+
{%- 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 -%}
|
|
9
|
+
{%- elsif _bn.release -%}
|
|
10
|
+
{%- if _bn.release == "latest" -%}{%- assign _bn_v = site.github.latest_release.tag_name | default: "" -%}{%- assign _bn_u = site.github.latest_release.html_url | default: "" -%}
|
|
11
|
+
{%- else -%}{%- assign _bn_v = _bn.release.version | default: "" -%}{%- assign _bn_u = _bn.release.url | default: "" -%}{%- endif -%}
|
|
12
|
+
{%- if _bn_v != "" -%}
|
|
13
|
+
{%- assign mt_bn_on = true -%}{%- assign mt_bn_text = mt_t_banner_release | replace: "[version]", _bn_v -%}{%- assign mt_bn_url = _bn_u -%}
|
|
14
|
+
{%- if _bn_u != "" -%}{%- assign mt_bn_link = mt_t_banner_release_link -%}{%- endif -%}
|
|
15
|
+
{%- endif -%}
|
|
16
|
+
{%- 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 %}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{%- comment -%}Showcase of a starter demo build (modootoday.showcase; needs config.html and i18n.html): a named region right after the skip link
|
|
2
|
+
with links from config only, opened in a new window. <html data-mt-showcase> holds the style; theme-init.js sets it to off
|
|
3
|
+
before paint once the dismiss button (chrome/showcase.js) has stored the visit's flag. Below 40rem only the theme name stays.{%- endcomment -%}
|
|
4
|
+
{%- assign _sc = mt_showcase -%}{%- assign _sct = nil -%}
|
|
5
|
+
{%- if _sc.starter -%}{%- assign _sck = "showcase.starters." | append: _sc.starter -%}{%- capture _sct -%}{%- include modootoday/t.html key=_sck -%}{%- endcapture -%}{%- if _sct == _sck -%}{%- assign _sct = nil -%}{%- endif -%}{%- endif -%}
|
|
6
|
+
{%- capture _scnw %} target="_blank" rel="noopener noreferrer" data-mt-new-window{% endcapture -%}
|
|
7
|
+
{%- capture _scsr %}<span class="mt-sr-only">, {{ mt_t_new_window_hint }}</span>{% endcapture -%}
|
|
8
|
+
{%- capture _scx -%}<button class="mt-showcase-dismiss" type="button" aria-label="{{ mt_t_showcase_dismiss }}"><svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true" focusable="false"><path d="M6 6l12 12M18 6 6 18"/></svg></button>{%- endcapture -%}
|
|
9
|
+
{%- if mt_showcase_style == "pill" -%}
|
|
10
|
+
<div class="mt-showcase-region mt-showcase-pill" role="region" aria-label="{{ mt_t_showcase_region }}"><p class="mt-showcase-label"><b>{{ mt_t_showcase_theme }}</b>{% if _sct %}<span class="mt-showcase-more"> · {{ _sct }}</span>{% endif %}</p><a class="mt-showcase-solid" href="{{ _sc.docs_url | escape }}"{{ _scnw }}>{{ mt_t_showcase_docs_short }}{{ _scsr }}</a>{{ _scx }}</div>
|
|
11
|
+
{%- else -%}
|
|
12
|
+
<div class="mt-showcase-region mt-showcase-bar" role="region" aria-label="{{ mt_t_showcase_region }}"><span class="mt-showcase-mark mt-showcase-more" aria-hidden="true"></span><p class="mt-showcase-label"><b>{{ mt_t_showcase_theme }}</b><span class="mt-showcase-more">{% if _sct %} · {{ _sct }}{% endif %} · {{ mt_t_showcase_demo }}</span></p><a href="{{ _sc.docs_url | escape }}"{{ _scnw }}><span class="mt-showcase-more">{{ mt_t_showcase_docs }}</span><span class="mt-showcase-less">{{ mt_t_showcase_docs_short }}</span>{{ _scsr }}</a>{% if _sc.use_url %}<a class="mt-showcase-solid mt-showcase-more" href="{{ _sc.use_url | escape }}"{{ _scnw }}>{{ mt_t_showcase_use }}{{ _scsr }}</a>{% endif %}{{ _scx }}</div>
|
|
13
|
+
{%- endif -%}
|
|
@@ -5,9 +5,11 @@ Jekyll 3.10 / GitHub Pages, so every default lives here (Liquid). Sets mt_* vari
|
|
|
5
5
|
auto*: toggle shown; auto follows the system, auto-dark/auto-light start in that scheme
|
|
6
6
|
site.modootoday.css_layers true | false (default false)
|
|
7
7
|
site.modootoday.code_theme theme | github: code block colours (default theme; github = the GitHub light and dark palettes)
|
|
8
|
-
site.modootoday.components list of component names (default: all); lists, bleed, terminal, visual, filter, table
|
|
9
|
-
are always added: their CSS only reaches pages that turn them on (modootoday.lists /
|
|
10
|
-
chrome: terminal, script: / poster:, filter: / filter_text
|
|
8
|
+
site.modootoday.components list of component names (default: all); lists, bleed, terminal, visual, filter, table, table-stack
|
|
9
|
+
and showcase are always added: their CSS only reaches pages that turn them on (modootoday.lists /
|
|
10
|
+
hero.checks, bleed:, chrome: terminal, script: / poster:, filter: / filter_text:, modootoday.showcase)
|
|
11
|
+
site.modootoday.showcase {enabled, style: bar | pill, starter, docs_url, use_url}: a demo build's showcase (chrome/showcase.html);
|
|
12
|
+
sets mt_showcase (the map, or false) and mt_showcase_style
|
|
11
13
|
site.modootoday.css split | bundle: split (default) links the core sheet plus only the sheets a page uses; bundle links one file with everything
|
|
12
14
|
site.modootoday.nav _data/nav/<name>.yml or _data/nav.yml (default main); _data/nav/<name>-<lang>.yml wins for that page.lang;
|
|
13
15
|
then _data/navigation.yml main, header_pages, titled pages; false: no titled-page list (site/nav.html)
|
|
@@ -15,16 +17,18 @@ Jekyll 3.10 / GitHub Pages, so every default lives here (Liquid). Sets mt_* vari
|
|
|
15
17
|
site.modootoday.sidebar auto | true | false: doc-page sidebar from the nav (default auto: on when the nav has a group)
|
|
16
18
|
site.modootoday.badges false disables status badges (default true)
|
|
17
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)
|
|
18
21
|
{%- endcomment -%}
|
|
19
22
|
{%- assign mt = site.modootoday -%}
|
|
20
|
-
{%- assign mt_all_components = "callout,badge,hero,cta,card,tabs,code-copy,nav,sidebar,page-actions,pagination,theme-toggle,breadcrumb,toc,accordion,steps,figure,timeline,kbd,search,code,footnotes,progress,embed,banner,filetree,details,faq,params,linkcards,quote,gallery,pricing,subscribe,split,loading,figure-svg,lists,reveal,bleed,terminal,visual,filter,table,table-stack,footer" | split: "," -%}
|
|
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: "," -%}
|
|
21
24
|
{%- comment -%}Sass partials by context (components/<group>/_<name>.scss). Core: always in assets/css/modootoday.css.
|
|
22
25
|
Section sheets: assets/css/modootoday/<group>/<name>.css, linked when a page's sections: use c (section rows of assets/registry.html).
|
|
23
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 -%}
|
|
24
27
|
{%- assign mt_core_partials = "core/chrome/nav,core/chrome/theme-toggle" | split: "," -%}
|
|
25
28
|
{%- include modootoday/assets/registry.html -%}
|
|
26
29
|
{%- assign mt_components = mt_all_components -%}
|
|
27
|
-
{%- if mt.components -%}{%- assign _mt_optin = "lists,bleed,terminal,visual,filter,table,table-stack" | split: "," -%}{%- assign mt_components = mt.components | concat: _mt_optin | uniq -%}{%- endif -%}
|
|
30
|
+
{%- if mt.components -%}{%- assign _mt_optin = "lists,bleed,terminal,visual,filter,table,table-stack,showcase" | split: "," -%}{%- assign mt_components = mt.components | concat: _mt_optin | uniq -%}{%- endif -%}
|
|
31
|
+
{%- assign mt_showcase = false -%}{%- assign mt_showcase_style = "bar" -%}{%- if mt.showcase.enabled == true -%}{%- assign mt_showcase = mt.showcase -%}{%- if mt.showcase.style == "pill" -%}{%- assign mt_showcase_style = "pill" -%}{%- endif -%}{%- endif -%}
|
|
28
32
|
{%- assign mt_color_scheme = "auto" -%}
|
|
29
33
|
{%- assign _mt_cs = "light dark auto-dark auto-light" | split: " " -%}
|
|
30
34
|
{%- if _mt_cs contains mt.color_scheme -%}{%- assign mt_color_scheme = mt.color_scheme -%}{%- endif -%}
|
|
@@ -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
|
|
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
|
-
{%-
|
|
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 -%}
|