jekyll-theme-modootoday 1.5.0 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (116) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +39 -1
  3. data/README.ko.md +8 -6
  4. data/README.md +8 -6
  5. data/RULES.md +3 -1
  6. data/_includes/modootoday/assets/registry.html +8 -2
  7. data/_includes/modootoday/assets/scripts.html +3 -0
  8. data/_includes/modootoday/assets/sheets.html +3 -0
  9. data/_includes/modootoday/assets/site-scripts.html +8 -3
  10. data/_includes/modootoday/chart/figure.html +4 -0
  11. data/_includes/modootoday/chart/table.html +14 -0
  12. data/_includes/modootoday/chrome/showcase.html +13 -0
  13. data/_includes/modootoday/config.html +8 -5
  14. data/_includes/modootoday/head-meta.html +8 -5
  15. data/_includes/modootoday/i18n/ar.html +1 -1
  16. data/_includes/modootoday/i18n/de.html +1 -1
  17. data/_includes/modootoday/i18n/el.html +1 -1
  18. data/_includes/modootoday/i18n/es.html +1 -1
  19. data/_includes/modootoday/i18n/fa.html +1 -1
  20. data/_includes/modootoday/i18n/fr.html +1 -1
  21. data/_includes/modootoday/i18n/id.html +1 -1
  22. data/_includes/modootoday/i18n/it.html +1 -1
  23. data/_includes/modootoday/i18n/ja.html +1 -1
  24. data/_includes/modootoday/i18n/ko.html +1 -1
  25. data/_includes/modootoday/i18n/ml.html +1 -1
  26. data/_includes/modootoday/i18n/pl.html +1 -1
  27. data/_includes/modootoday/i18n/pt-BR.html +1 -1
  28. data/_includes/modootoday/i18n/ro.html +1 -1
  29. data/_includes/modootoday/i18n/ru.html +1 -1
  30. data/_includes/modootoday/i18n/th.html +1 -1
  31. data/_includes/modootoday/i18n/tr.html +1 -1
  32. data/_includes/modootoday/i18n/uk.html +1 -1
  33. data/_includes/modootoday/i18n/ur-Latn.html +1 -1
  34. data/_includes/modootoday/i18n/vi.html +1 -1
  35. data/_includes/modootoday/i18n/zh-CN.html +1 -1
  36. data/_includes/modootoday/i18n/zh-TW.html +1 -1
  37. data/_includes/modootoday/i18n.html +132 -116
  38. data/_includes/modootoday/links/content.html +6 -2
  39. data/_includes/modootoday/markdown/c/chart.html +24 -0
  40. data/_includes/modootoday/markdown/c/widget.html +22 -0
  41. data/_includes/modootoday/markdown/components.html +4 -2
  42. data/_includes/modootoday/markdown/figures/diagrams.html +31 -0
  43. data/_includes/modootoday/markdown/figures/math.html +34 -0
  44. data/_includes/modootoday/markdown/figures.html +8 -0
  45. data/_includes/modootoday/markdown/inline/chart.html +30 -0
  46. data/_includes/modootoday/markdown/inline/widget.html +19 -0
  47. data/_includes/modootoday/markdown/inline.html +5 -1
  48. data/_includes/modootoday/markdown/sections.html +2 -2
  49. data/_includes/modootoday/render/chart.html +15 -0
  50. data/_includes/modootoday/render/math.html +21 -5
  51. data/_includes/modootoday/render/mermaid.html +4 -3
  52. data/_includes/modootoday/t.html +1 -1
  53. data/_includes/modootoday/version.html +1 -1
  54. data/_layouts/default.html +5 -2
  55. data/_sass/modootoday/blog/_cards.scss +2 -1
  56. data/_sass/modootoday/components/chrome/_showcase.scss +40 -0
  57. data/_sass/modootoday/components/data/_chart.scss +25 -0
  58. data/_sass/modootoday/components/figure/_figure-svg.scss +2 -0
  59. data/_sass/modootoday/components/media/_diagram.scss +14 -0
  60. data/_sass/modootoday/components/media/_widget.scss +7 -0
  61. data/_sass/modootoday/components/section/structure/_timeline.scss +7 -3
  62. data/assets/css/modootoday/chrome/showcase.scss +8 -0
  63. data/assets/css/modootoday/data/chart.scss +7 -0
  64. data/assets/css/modootoday/media/widget.scss +7 -0
  65. data/assets/js/modootoday/chrome/showcase.js +15 -0
  66. data/assets/js/modootoday/chrome/theme-init.js +3 -2
  67. data/assets/js/modootoday/content/scroll-region.js +68 -11
  68. data/assets/js/modootoday/data/chart-table.js +16 -0
  69. data/assets/js/modootoday/data/chart.js +106 -0
  70. data/i18n/ar.yml +14 -1
  71. data/i18n/de.yml +14 -1
  72. data/i18n/el.yml +14 -1
  73. data/i18n/en.yml +14 -1
  74. data/i18n/es.yml +14 -1
  75. data/i18n/fa.yml +14 -1
  76. data/i18n/fr.yml +14 -1
  77. data/i18n/id.yml +14 -1
  78. data/i18n/it.yml +14 -1
  79. data/i18n/ja.yml +14 -1
  80. data/i18n/ko.yml +14 -1
  81. data/i18n/ml.yml +14 -1
  82. data/i18n/pl.yml +14 -1
  83. data/i18n/pt-BR.yml +14 -1
  84. data/i18n/ro.yml +14 -1
  85. data/i18n/ru.yml +14 -1
  86. data/i18n/th.yml +14 -1
  87. data/i18n/tr.yml +14 -1
  88. data/i18n/uk.yml +14 -1
  89. data/i18n/ur-Latn.yml +14 -1
  90. data/i18n/vi.yml +14 -1
  91. data/i18n/zh-CN.yml +14 -1
  92. data/i18n/zh-TW.yml +14 -1
  93. data/lib/modootoday/check/build/build_output.rb +13 -4
  94. data/lib/modootoday/check/build/showcase.rb +27 -0
  95. data/lib/modootoday/check/build/structured_data/nested.rb +29 -0
  96. data/lib/modootoday/check/build/structured_data.rb +6 -3
  97. data/lib/modootoday/check/build/third_party.rb +1 -1
  98. data/lib/modootoday/check/cli.rb +8 -3
  99. data/lib/modootoday/check/config/keys/appearance/showcase.rb +57 -0
  100. data/lib/modootoday/check/config/keys/figures/chart.rb +16 -0
  101. data/lib/modootoday/check/config/keys/figures/diagrams.rb +31 -0
  102. data/lib/modootoday/check/config/keys/serving/delivery.rb +8 -1
  103. data/lib/modootoday/check/config/keys.rb +4 -1
  104. data/lib/modootoday/check/config/renderers.rb +36 -12
  105. data/lib/modootoday/check/config/site_config.rb +1 -1
  106. data/lib/modootoday/check/page/a11y/new_window.rb +3 -2
  107. data/lib/modootoday/check/page/chart.rb +91 -0
  108. data/lib/modootoday/check/page/figures/diagrams.rb +64 -0
  109. data/lib/modootoday/check/page/figures/freshness.rb +55 -0
  110. data/lib/modootoday/check/page/figures/math_static.rb +88 -0
  111. data/lib/modootoday/check/page/math_notation.rb +1 -1
  112. data/lib/modootoday/check/page/pages.rb +22 -0
  113. data/lib/modootoday/check/page/widget.rb +66 -0
  114. data/lib/modootoday/check.rb +1 -0
  115. data/lib/modootoday/figures.rb +88 -0
  116. metadata +34 -2
@@ -5,7 +5,7 @@
5
5
  {%- assign _tl = include.lang | default: page.lang | default: site.lang | default: "en" -%}
6
6
  {%- unless mt_t_lang == _tl -%}
7
7
  {%- assign mt_t_lang = _tl -%}
8
- {%- capture _tc -%}Skip to contentopens in a new windowOpen in new windowNoteTipImportantWarningCautionAvailablePartialPlannedDoneOpenOptionsOn this pageDark modeDocsPage actionsCopy pageCopy for AIView as MarkdownSourceBreadcrumbMainBack to topMenuPagesPreviousNextCopyCopiedCodeFileTableDiagramSearchFilter[n] shownEdit this pageLast updatedLanguages%Y-%m-%dAbout the authorRelated postsShareThis page is not translated yet, so it is shown in English.YearsTagsCategoriespostsNo posts yet.FeaturedRead more[n] min readByUpdatedNewer postsOlder postsRelated postsSeriesPart [n] of [total]Copy linkLink copiedFeedLatestBreakingLiveCorrectionSourcesMore in [section]AuthorsFile treeCloseEmbedded contentRecommendedAnnouncementBack to referenceProgressEmail addressSubscribeRequiredLoading…Page not foundThe page you asked for does not exist or has moved.Page removedThis page was removed on purpose and will not come back.Something went wrongThe server could not show this page. Please try again in a moment.Go to the home pageThis page has moved.Continue to the new pageType at least two letters to search.AllFilter byRoleClientYearToolsLinksLocationEmployment typeSalaryPostedApply byApplyStartsEndsVenueOnlineAgendaGet ticketsAdd to calendarEpisode [n]Season [n]DurationListenTranscriptMonthlyYearlyBilling periodMost popularDownloadVersionColorsAssetsSendNameEmailMessageContactAddedChangedFixedRemovedSecurityNowNextLaterJump to letterLessons[n] minModule [n]Chapter [n]EffectiveExperienceEducationSkillsPresentLoading…Contents{%- endcapture -%}{%- assign _te = _tc | split: "" -%}
8
+ {%- capture _tc -%}Skip to contentopens in a new windowOpen in new windowNoteTipImportantWarningCautionAvailablePartialPlannedDoneOpenOptionsOn this pageDark modeDocsPage actionsCopy pageCopy for AIView as MarkdownSourceBreadcrumbMainBack to topMenuPagesPreviousNextCopyCopiedCodeFileTableDiagramDiagram sourceFormula [n]SearchFilter[n] shownEdit this pageLast updatedLanguages%Y-%m-%dAbout the authorRelated postsShareThis page is not translated yet, so it is shown in English.YearsTagsCategoriespostsNo posts yet.FeaturedRead more[n] min readByUpdatedNewer postsOlder postsRelated postsSeriesPart [n] of [total]Copy linkLink copiedFeedLatestBreakingLiveCorrectionSourcesMore in [section]AuthorsFile treeCloseEmbedded contentRecommendedAnnouncementBack to referenceProgressEmail addressSubscribeRequiredChart dataThis interactive content needs JavaScript.[label], [name][name] [n]Loading…Page not foundThe page you asked for does not exist or has moved.Page removedThis page was removed on purpose and will not come back.Something went wrongThe server could not show this page. Please try again in a moment.Go to the home pageThis page has moved.Continue to the new pageType at least two letters to search.AllFilter byRoleClientYearToolsLinksLocationEmployment typeSalaryPostedApply byApplyStartsEndsVenueOnlineAgendaGet ticketsAdd to calendarEpisode [n]Season [n]DurationListenTranscriptMonthlyYearlyBilling periodMost popularDownloadVersionColorsAssetsSendNameEmailMessageContactAddedChangedFixedRemovedSecurityNowNextLaterJump to letterLessons[n] minModule [n]Chapter [n]EffectiveExperienceEducationSkillsPresentLoading…ContentsTheme showcasemodoo.today themelive demoDocumentationDocsUse this starterHide for this visitDocs starterBlog starterLanding starter{%- endcapture -%}{%- assign _te = _tc | split: "" -%}
9
9
  {%- assign _tx = nil -%}{%- assign _tdir = nil -%}{%- assign _tf = nil -%}
10
10
  {%- assign _tb = _tl | split: "-" | first -%}
11
11
  {%- assign _tk = " " | append: _tl | append: " " -%}{%- assign _tbk = " " | append: _tb | append: " " -%}
@@ -48,120 +48,136 @@
48
48
  {%- assign mt_t_code_file = _ts.code.file | default: _tx[32] | default: _te[32] -%}
49
49
  {%- assign mt_t_table_label = _ts.table.label | default: _tx[33] | default: _te[33] -%}
50
50
  {%- assign mt_t_diagram_label = _ts.diagram.label | default: _tx[34] | default: _te[34] -%}
51
- {%- assign mt_t_search_label = _ts.search.label | default: _tx[35] | default: _te[35] -%}
52
- {%- assign mt_t_filter_label = _ts.filter.label | default: _tx[36] | default: _te[36] -%}
53
- {%- assign mt_t_filter_count = _ts.filter.count | default: _tx[37] | default: _te[37] -%}
54
- {%- assign mt_t_page_edit = _ts.page.edit | default: _tx[38] | default: _te[38] -%}
55
- {%- assign mt_t_page_updated = _ts.page.updated | default: _tx[39] | default: _te[39] -%}
56
- {%- assign mt_t_languages_label = _ts.languages.label | default: _tx[40] | default: _te[40] -%}
57
- {%- assign mt_t_post_date_format = _ts.post.date_format | default: _tx[41] | default: _te[41] -%}
58
- {%- assign mt_t_post_author = _ts.post.author | default: _tx[42] | default: _te[42] -%}
59
- {%- assign mt_t_post_related = _ts.post.related | default: _tx[43] | default: _te[43] -%}
60
- {%- assign mt_t_post_share = _ts.post.share | default: _tx[44] | default: _te[44] -%}
61
- {%- assign mt_t_fallback_notice = _ts.fallback.notice | default: _tx[45] | default: _te[45] -%}
62
- {%- assign mt_t_archive_years = _ts.archive.years | default: _tx[46] | default: _te[46] -%}
63
- {%- assign mt_t_archive_tags = _ts.archive.tags | default: _tx[47] | default: _te[47] -%}
64
- {%- assign mt_t_archive_categories = _ts.archive.categories | default: _tx[48] | default: _te[48] -%}
65
- {%- assign mt_t_archive_posts = _ts.archive.posts | default: _tx[49] | default: _te[49] -%}
66
- {%- assign mt_t_archive_empty = _ts.archive.empty | default: _tx[50] | default: _te[50] -%}
67
- {%- assign mt_t_blog_featured = _ts.blog.featured | default: _tx[51] | default: _te[51] -%}
68
- {%- assign mt_t_blog_read_more = _ts.blog.read_more | default: _tx[52] | default: _te[52] -%}
69
- {%- assign mt_t_blog_reading_time = _ts.blog.reading_time | default: _tx[53] | default: _te[53] -%}
70
- {%- assign mt_t_blog_by = _ts.blog.by | default: _tx[54] | default: _te[54] -%}
71
- {%- assign mt_t_blog_updated = _ts.blog.updated | default: _tx[55] | default: _te[55] -%}
72
- {%- assign mt_t_blog_newer = _ts.blog.newer | default: _tx[56] | default: _te[56] -%}
73
- {%- assign mt_t_blog_older = _ts.blog.older | default: _tx[57] | default: _te[57] -%}
74
- {%- assign mt_t_blog_related = _ts.blog.related | default: _tx[58] | default: _te[58] -%}
75
- {%- assign mt_t_blog_series = _ts.blog.series | default: _tx[59] | default: _te[59] -%}
76
- {%- assign mt_t_blog_series_part = _ts.blog.series_part | default: _tx[60] | default: _te[60] -%}
77
- {%- assign mt_t_blog_share = _ts.blog.share | default: _tx[61] | default: _te[61] -%}
78
- {%- assign mt_t_blog_copied = _ts.blog.copied | default: _tx[62] | default: _te[62] -%}
79
- {%- assign mt_t_blog_feed = _ts.blog.feed | default: _tx[63] | default: _te[63] -%}
80
- {%- assign mt_t_blog_latest = _ts.blog.latest | default: _tx[64] | default: _te[64] -%}
81
- {%- assign mt_t_blog_breaking = _ts.blog.breaking | default: _tx[65] | default: _te[65] -%}
82
- {%- assign mt_t_blog_live = _ts.blog.live | default: _tx[66] | default: _te[66] -%}
83
- {%- assign mt_t_blog_correction = _ts.blog.correction | default: _tx[67] | default: _te[67] -%}
84
- {%- assign mt_t_blog_sources = _ts.blog.sources | default: _tx[68] | default: _te[68] -%}
85
- {%- assign mt_t_blog_more = _ts.blog.more | default: _tx[69] | default: _te[69] -%}
86
- {%- assign mt_t_blog_authors = _ts.blog.authors | default: _tx[70] | default: _te[70] -%}
87
- {%- assign mt_t_filetree_label = _ts.filetree.label | default: _tx[71] | default: _te[71] -%}
88
- {%- assign mt_t_gallery_close = _ts.gallery.close | default: _tx[72] | default: _te[72] -%}
89
- {%- assign mt_t_embed_title = _ts.embed.title | default: _tx[73] | default: _te[73] -%}
90
- {%- assign mt_t_pricing_recommended = _ts.pricing.recommended | default: _tx[74] | default: _te[74] -%}
91
- {%- assign mt_t_banner_label = _ts.banner.label | default: _tx[75] | default: _te[75] -%}
92
- {%- assign mt_t_footnote_back = _ts.footnote.back | default: _tx[76] | default: _te[76] -%}
93
- {%- assign mt_t_progress_label = _ts.progress.label | default: _tx[77] | default: _te[77] -%}
94
- {%- assign mt_t_subscribe_email = _ts.subscribe.email | default: _tx[78] | default: _te[78] -%}
95
- {%- assign mt_t_subscribe_submit = _ts.subscribe.submit | default: _tx[79] | default: _te[79] -%}
96
- {%- assign mt_t_params_required = _ts.params.required | default: _tx[80] | default: _te[80] -%}
97
- {%- assign mt_t_loading_label = _ts.loading.label | default: _tx[81] | default: _te[81] -%}
98
- {%- assign mt_t_pages_not_found = _ts.pages.not_found | default: _tx[82] | default: _te[82] -%}
99
- {%- assign mt_t_pages_not_found_text = _ts.pages.not_found_text | default: _tx[83] | default: _te[83] -%}
100
- {%- assign mt_t_pages_gone = _ts.pages.gone | default: _tx[84] | default: _te[84] -%}
101
- {%- assign mt_t_pages_gone_text = _ts.pages.gone_text | default: _tx[85] | default: _te[85] -%}
102
- {%- assign mt_t_pages_error = _ts.pages.error | default: _tx[86] | default: _te[86] -%}
103
- {%- assign mt_t_pages_error_text = _ts.pages.error_text | default: _tx[87] | default: _te[87] -%}
104
- {%- assign mt_t_pages_home = _ts.pages.home | default: _tx[88] | default: _te[88] -%}
105
- {%- assign mt_t_pages_moved = _ts.pages.moved | default: _tx[89] | default: _te[89] -%}
106
- {%- assign mt_t_pages_moved_link = _ts.pages.moved_link | default: _tx[90] | default: _te[90] -%}
107
- {%- assign mt_t_pages_search_hint = _ts.pages.search_hint | default: _tx[91] | default: _te[91] -%}
108
- {%- assign mt_t_layouts_all = _ts.layouts.all | default: _tx[92] | default: _te[92] -%}
109
- {%- assign mt_t_layouts_filter = _ts.layouts.filter | default: _tx[93] | default: _te[93] -%}
110
- {%- assign mt_t_layouts_role = _ts.layouts.role | default: _tx[94] | default: _te[94] -%}
111
- {%- assign mt_t_layouts_client = _ts.layouts.client | default: _tx[95] | default: _te[95] -%}
112
- {%- assign mt_t_layouts_year = _ts.layouts.year | default: _tx[96] | default: _te[96] -%}
113
- {%- assign mt_t_layouts_stack = _ts.layouts.stack | default: _tx[97] | default: _te[97] -%}
114
- {%- assign mt_t_layouts_links = _ts.layouts.links | default: _tx[98] | default: _te[98] -%}
115
- {%- assign mt_t_layouts_location = _ts.layouts.location | default: _tx[99] | default: _te[99] -%}
116
- {%- assign mt_t_layouts_employment = _ts.layouts.employment | default: _tx[100] | default: _te[100] -%}
117
- {%- assign mt_t_layouts_salary = _ts.layouts.salary | default: _tx[101] | default: _te[101] -%}
118
- {%- assign mt_t_layouts_posted = _ts.layouts.posted | default: _tx[102] | default: _te[102] -%}
119
- {%- assign mt_t_layouts_deadline = _ts.layouts.deadline | default: _tx[103] | default: _te[103] -%}
120
- {%- assign mt_t_layouts_apply = _ts.layouts.apply | default: _tx[104] | default: _te[104] -%}
121
- {%- assign mt_t_layouts_starts = _ts.layouts.starts | default: _tx[105] | default: _te[105] -%}
122
- {%- assign mt_t_layouts_ends = _ts.layouts.ends | default: _tx[106] | default: _te[106] -%}
123
- {%- assign mt_t_layouts_venue = _ts.layouts.venue | default: _tx[107] | default: _te[107] -%}
124
- {%- assign mt_t_layouts_online = _ts.layouts.online | default: _tx[108] | default: _te[108] -%}
125
- {%- assign mt_t_layouts_agenda = _ts.layouts.agenda | default: _tx[109] | default: _te[109] -%}
126
- {%- assign mt_t_layouts_tickets = _ts.layouts.tickets | default: _tx[110] | default: _te[110] -%}
127
- {%- assign mt_t_layouts_calendar = _ts.layouts.calendar | default: _tx[111] | default: _te[111] -%}
128
- {%- assign mt_t_layouts_episode = _ts.layouts.episode | default: _tx[112] | default: _te[112] -%}
129
- {%- assign mt_t_layouts_season = _ts.layouts.season | default: _tx[113] | default: _te[113] -%}
130
- {%- assign mt_t_layouts_duration = _ts.layouts.duration | default: _tx[114] | default: _te[114] -%}
131
- {%- assign mt_t_layouts_listen = _ts.layouts.listen | default: _tx[115] | default: _te[115] -%}
132
- {%- assign mt_t_layouts_transcript = _ts.layouts.transcript | default: _tx[116] | default: _te[116] -%}
133
- {%- assign mt_t_layouts_monthly = _ts.layouts.monthly | default: _tx[117] | default: _te[117] -%}
134
- {%- assign mt_t_layouts_yearly = _ts.layouts.yearly | default: _tx[118] | default: _te[118] -%}
135
- {%- assign mt_t_layouts_billing = _ts.layouts.billing | default: _tx[119] | default: _te[119] -%}
136
- {%- assign mt_t_layouts_popular = _ts.layouts.popular | default: _tx[120] | default: _te[120] -%}
137
- {%- assign mt_t_layouts_download = _ts.layouts.download | default: _tx[121] | default: _te[121] -%}
138
- {%- assign mt_t_layouts_version = _ts.layouts.version | default: _tx[122] | default: _te[122] -%}
139
- {%- assign mt_t_layouts_colors = _ts.layouts.colors | default: _tx[123] | default: _te[123] -%}
140
- {%- assign mt_t_layouts_assets = _ts.layouts.assets | default: _tx[124] | default: _te[124] -%}
141
- {%- assign mt_t_layouts_send = _ts.layouts.send | default: _tx[125] | default: _te[125] -%}
142
- {%- assign mt_t_layouts_name = _ts.layouts.name | default: _tx[126] | default: _te[126] -%}
143
- {%- assign mt_t_layouts_email = _ts.layouts.email | default: _tx[127] | default: _te[127] -%}
144
- {%- assign mt_t_layouts_message = _ts.layouts.message | default: _tx[128] | default: _te[128] -%}
145
- {%- assign mt_t_layouts_contact = _ts.layouts.contact | default: _tx[129] | default: _te[129] -%}
146
- {%- assign mt_t_layouts_added = _ts.layouts.added | default: _tx[130] | default: _te[130] -%}
147
- {%- assign mt_t_layouts_changed = _ts.layouts.changed | default: _tx[131] | default: _te[131] -%}
148
- {%- assign mt_t_layouts_fixed = _ts.layouts.fixed | default: _tx[132] | default: _te[132] -%}
149
- {%- assign mt_t_layouts_removed = _ts.layouts.removed | default: _tx[133] | default: _te[133] -%}
150
- {%- assign mt_t_layouts_security = _ts.layouts.security | default: _tx[134] | default: _te[134] -%}
151
- {%- assign mt_t_layouts_now = _ts.layouts.now | default: _tx[135] | default: _te[135] -%}
152
- {%- assign mt_t_layouts_next = _ts.layouts.next | default: _tx[136] | default: _te[136] -%}
153
- {%- assign mt_t_layouts_later = _ts.layouts.later | default: _tx[137] | default: _te[137] -%}
154
- {%- assign mt_t_layouts_letters = _ts.layouts.letters | default: _tx[138] | default: _te[138] -%}
155
- {%- assign mt_t_layouts_lessons = _ts.layouts.lessons | default: _tx[139] | default: _te[139] -%}
156
- {%- assign mt_t_layouts_minutes = _ts.layouts.minutes | default: _tx[140] | default: _te[140] -%}
157
- {%- assign mt_t_layouts_module = _ts.layouts.module | default: _tx[141] | default: _te[141] -%}
158
- {%- assign mt_t_layouts_chapter = _ts.layouts.chapter | default: _tx[142] | default: _te[142] -%}
159
- {%- assign mt_t_layouts_effective = _ts.layouts.effective | default: _tx[143] | default: _te[143] -%}
160
- {%- assign mt_t_layouts_experience = _ts.layouts.experience | default: _tx[144] | default: _te[144] -%}
161
- {%- assign mt_t_layouts_education = _ts.layouts.education | default: _tx[145] | default: _te[145] -%}
162
- {%- assign mt_t_layouts_skills = _ts.layouts.skills | default: _tx[146] | default: _te[146] -%}
163
- {%- assign mt_t_layouts_present = _ts.layouts.present | default: _tx[147] | default: _te[147] -%}
164
- {%- assign mt_t_layouts_loading = _ts.layouts.loading | default: _tx[148] | default: _te[148] -%}
165
- {%- assign mt_t_layouts_contents = _ts.layouts.contents | default: _tx[149] | default: _te[149] -%}
51
+ {%- assign mt_t_diagram_source = _ts.diagram.source | default: _tx[35] | default: _te[35] -%}
52
+ {%- assign mt_t_math_label = _ts.math.label | default: _tx[36] | default: _te[36] -%}
53
+ {%- assign mt_t_search_label = _ts.search.label | default: _tx[37] | default: _te[37] -%}
54
+ {%- assign mt_t_filter_label = _ts.filter.label | default: _tx[38] | default: _te[38] -%}
55
+ {%- assign mt_t_filter_count = _ts.filter.count | default: _tx[39] | default: _te[39] -%}
56
+ {%- assign mt_t_page_edit = _ts.page.edit | default: _tx[40] | default: _te[40] -%}
57
+ {%- assign mt_t_page_updated = _ts.page.updated | default: _tx[41] | default: _te[41] -%}
58
+ {%- assign mt_t_languages_label = _ts.languages.label | default: _tx[42] | default: _te[42] -%}
59
+ {%- assign mt_t_post_date_format = _ts.post.date_format | default: _tx[43] | default: _te[43] -%}
60
+ {%- assign mt_t_post_author = _ts.post.author | default: _tx[44] | default: _te[44] -%}
61
+ {%- assign mt_t_post_related = _ts.post.related | default: _tx[45] | default: _te[45] -%}
62
+ {%- assign mt_t_post_share = _ts.post.share | default: _tx[46] | default: _te[46] -%}
63
+ {%- assign mt_t_fallback_notice = _ts.fallback.notice | default: _tx[47] | default: _te[47] -%}
64
+ {%- assign mt_t_archive_years = _ts.archive.years | default: _tx[48] | default: _te[48] -%}
65
+ {%- assign mt_t_archive_tags = _ts.archive.tags | default: _tx[49] | default: _te[49] -%}
66
+ {%- assign mt_t_archive_categories = _ts.archive.categories | default: _tx[50] | default: _te[50] -%}
67
+ {%- assign mt_t_archive_posts = _ts.archive.posts | default: _tx[51] | default: _te[51] -%}
68
+ {%- assign mt_t_archive_empty = _ts.archive.empty | default: _tx[52] | default: _te[52] -%}
69
+ {%- assign mt_t_blog_featured = _ts.blog.featured | default: _tx[53] | default: _te[53] -%}
70
+ {%- assign mt_t_blog_read_more = _ts.blog.read_more | default: _tx[54] | default: _te[54] -%}
71
+ {%- assign mt_t_blog_reading_time = _ts.blog.reading_time | default: _tx[55] | default: _te[55] -%}
72
+ {%- assign mt_t_blog_by = _ts.blog.by | default: _tx[56] | default: _te[56] -%}
73
+ {%- assign mt_t_blog_updated = _ts.blog.updated | default: _tx[57] | default: _te[57] -%}
74
+ {%- assign mt_t_blog_newer = _ts.blog.newer | default: _tx[58] | default: _te[58] -%}
75
+ {%- assign mt_t_blog_older = _ts.blog.older | default: _tx[59] | default: _te[59] -%}
76
+ {%- assign mt_t_blog_related = _ts.blog.related | default: _tx[60] | default: _te[60] -%}
77
+ {%- assign mt_t_blog_series = _ts.blog.series | default: _tx[61] | default: _te[61] -%}
78
+ {%- assign mt_t_blog_series_part = _ts.blog.series_part | default: _tx[62] | default: _te[62] -%}
79
+ {%- assign mt_t_blog_share = _ts.blog.share | default: _tx[63] | default: _te[63] -%}
80
+ {%- assign mt_t_blog_copied = _ts.blog.copied | default: _tx[64] | default: _te[64] -%}
81
+ {%- assign mt_t_blog_feed = _ts.blog.feed | default: _tx[65] | default: _te[65] -%}
82
+ {%- assign mt_t_blog_latest = _ts.blog.latest | default: _tx[66] | default: _te[66] -%}
83
+ {%- assign mt_t_blog_breaking = _ts.blog.breaking | default: _tx[67] | default: _te[67] -%}
84
+ {%- assign mt_t_blog_live = _ts.blog.live | default: _tx[68] | default: _te[68] -%}
85
+ {%- assign mt_t_blog_correction = _ts.blog.correction | default: _tx[69] | default: _te[69] -%}
86
+ {%- assign mt_t_blog_sources = _ts.blog.sources | default: _tx[70] | default: _te[70] -%}
87
+ {%- assign mt_t_blog_more = _ts.blog.more | default: _tx[71] | default: _te[71] -%}
88
+ {%- assign mt_t_blog_authors = _ts.blog.authors | default: _tx[72] | default: _te[72] -%}
89
+ {%- assign mt_t_filetree_label = _ts.filetree.label | default: _tx[73] | default: _te[73] -%}
90
+ {%- assign mt_t_gallery_close = _ts.gallery.close | default: _tx[74] | default: _te[74] -%}
91
+ {%- assign mt_t_embed_title = _ts.embed.title | default: _tx[75] | default: _te[75] -%}
92
+ {%- assign mt_t_pricing_recommended = _ts.pricing.recommended | default: _tx[76] | default: _te[76] -%}
93
+ {%- assign mt_t_banner_label = _ts.banner.label | default: _tx[77] | default: _te[77] -%}
94
+ {%- assign mt_t_footnote_back = _ts.footnote.back | default: _tx[78] | default: _te[78] -%}
95
+ {%- assign mt_t_progress_label = _ts.progress.label | default: _tx[79] | default: _te[79] -%}
96
+ {%- assign mt_t_subscribe_email = _ts.subscribe.email | default: _tx[80] | default: _te[80] -%}
97
+ {%- assign mt_t_subscribe_submit = _ts.subscribe.submit | default: _tx[81] | default: _te[81] -%}
98
+ {%- assign mt_t_params_required = _ts.params.required | default: _tx[82] | default: _te[82] -%}
99
+ {%- assign mt_t_chart_data = _ts.chart.data | default: _tx[83] | default: _te[83] -%}
100
+ {%- assign mt_t_widget_fallback = _ts.widget.fallback | default: _tx[84] | default: _te[84] -%}
101
+ {%- assign mt_t_region_named = _ts.region.named | default: _tx[85] | default: _te[85] -%}
102
+ {%- assign mt_t_region_nth = _ts.region.nth | default: _tx[86] | default: _te[86] -%}
103
+ {%- assign mt_t_loading_label = _ts.loading.label | default: _tx[87] | default: _te[87] -%}
104
+ {%- assign mt_t_pages_not_found = _ts.pages.not_found | default: _tx[88] | default: _te[88] -%}
105
+ {%- assign mt_t_pages_not_found_text = _ts.pages.not_found_text | default: _tx[89] | default: _te[89] -%}
106
+ {%- assign mt_t_pages_gone = _ts.pages.gone | default: _tx[90] | default: _te[90] -%}
107
+ {%- assign mt_t_pages_gone_text = _ts.pages.gone_text | default: _tx[91] | default: _te[91] -%}
108
+ {%- assign mt_t_pages_error = _ts.pages.error | default: _tx[92] | default: _te[92] -%}
109
+ {%- assign mt_t_pages_error_text = _ts.pages.error_text | default: _tx[93] | default: _te[93] -%}
110
+ {%- assign mt_t_pages_home = _ts.pages.home | default: _tx[94] | default: _te[94] -%}
111
+ {%- assign mt_t_pages_moved = _ts.pages.moved | default: _tx[95] | default: _te[95] -%}
112
+ {%- assign mt_t_pages_moved_link = _ts.pages.moved_link | default: _tx[96] | default: _te[96] -%}
113
+ {%- assign mt_t_pages_search_hint = _ts.pages.search_hint | default: _tx[97] | default: _te[97] -%}
114
+ {%- assign mt_t_layouts_all = _ts.layouts.all | default: _tx[98] | default: _te[98] -%}
115
+ {%- assign mt_t_layouts_filter = _ts.layouts.filter | default: _tx[99] | default: _te[99] -%}
116
+ {%- assign mt_t_layouts_role = _ts.layouts.role | default: _tx[100] | default: _te[100] -%}
117
+ {%- assign mt_t_layouts_client = _ts.layouts.client | default: _tx[101] | default: _te[101] -%}
118
+ {%- assign mt_t_layouts_year = _ts.layouts.year | default: _tx[102] | default: _te[102] -%}
119
+ {%- assign mt_t_layouts_stack = _ts.layouts.stack | default: _tx[103] | default: _te[103] -%}
120
+ {%- assign mt_t_layouts_links = _ts.layouts.links | default: _tx[104] | default: _te[104] -%}
121
+ {%- assign mt_t_layouts_location = _ts.layouts.location | default: _tx[105] | default: _te[105] -%}
122
+ {%- assign mt_t_layouts_employment = _ts.layouts.employment | default: _tx[106] | default: _te[106] -%}
123
+ {%- assign mt_t_layouts_salary = _ts.layouts.salary | default: _tx[107] | default: _te[107] -%}
124
+ {%- assign mt_t_layouts_posted = _ts.layouts.posted | default: _tx[108] | default: _te[108] -%}
125
+ {%- assign mt_t_layouts_deadline = _ts.layouts.deadline | default: _tx[109] | default: _te[109] -%}
126
+ {%- assign mt_t_layouts_apply = _ts.layouts.apply | default: _tx[110] | default: _te[110] -%}
127
+ {%- assign mt_t_layouts_starts = _ts.layouts.starts | default: _tx[111] | default: _te[111] -%}
128
+ {%- assign mt_t_layouts_ends = _ts.layouts.ends | default: _tx[112] | default: _te[112] -%}
129
+ {%- assign mt_t_layouts_venue = _ts.layouts.venue | default: _tx[113] | default: _te[113] -%}
130
+ {%- assign mt_t_layouts_online = _ts.layouts.online | default: _tx[114] | default: _te[114] -%}
131
+ {%- assign mt_t_layouts_agenda = _ts.layouts.agenda | default: _tx[115] | default: _te[115] -%}
132
+ {%- assign mt_t_layouts_tickets = _ts.layouts.tickets | default: _tx[116] | default: _te[116] -%}
133
+ {%- assign mt_t_layouts_calendar = _ts.layouts.calendar | default: _tx[117] | default: _te[117] -%}
134
+ {%- assign mt_t_layouts_episode = _ts.layouts.episode | default: _tx[118] | default: _te[118] -%}
135
+ {%- assign mt_t_layouts_season = _ts.layouts.season | default: _tx[119] | default: _te[119] -%}
136
+ {%- assign mt_t_layouts_duration = _ts.layouts.duration | default: _tx[120] | default: _te[120] -%}
137
+ {%- assign mt_t_layouts_listen = _ts.layouts.listen | default: _tx[121] | default: _te[121] -%}
138
+ {%- assign mt_t_layouts_transcript = _ts.layouts.transcript | default: _tx[122] | default: _te[122] -%}
139
+ {%- assign mt_t_layouts_monthly = _ts.layouts.monthly | default: _tx[123] | default: _te[123] -%}
140
+ {%- assign mt_t_layouts_yearly = _ts.layouts.yearly | default: _tx[124] | default: _te[124] -%}
141
+ {%- assign mt_t_layouts_billing = _ts.layouts.billing | default: _tx[125] | default: _te[125] -%}
142
+ {%- assign mt_t_layouts_popular = _ts.layouts.popular | default: _tx[126] | default: _te[126] -%}
143
+ {%- assign mt_t_layouts_download = _ts.layouts.download | default: _tx[127] | default: _te[127] -%}
144
+ {%- assign mt_t_layouts_version = _ts.layouts.version | default: _tx[128] | default: _te[128] -%}
145
+ {%- assign mt_t_layouts_colors = _ts.layouts.colors | default: _tx[129] | default: _te[129] -%}
146
+ {%- assign mt_t_layouts_assets = _ts.layouts.assets | default: _tx[130] | default: _te[130] -%}
147
+ {%- assign mt_t_layouts_send = _ts.layouts.send | default: _tx[131] | default: _te[131] -%}
148
+ {%- assign mt_t_layouts_name = _ts.layouts.name | default: _tx[132] | default: _te[132] -%}
149
+ {%- assign mt_t_layouts_email = _ts.layouts.email | default: _tx[133] | default: _te[133] -%}
150
+ {%- assign mt_t_layouts_message = _ts.layouts.message | default: _tx[134] | default: _te[134] -%}
151
+ {%- assign mt_t_layouts_contact = _ts.layouts.contact | default: _tx[135] | default: _te[135] -%}
152
+ {%- assign mt_t_layouts_added = _ts.layouts.added | default: _tx[136] | default: _te[136] -%}
153
+ {%- assign mt_t_layouts_changed = _ts.layouts.changed | default: _tx[137] | default: _te[137] -%}
154
+ {%- assign mt_t_layouts_fixed = _ts.layouts.fixed | default: _tx[138] | default: _te[138] -%}
155
+ {%- assign mt_t_layouts_removed = _ts.layouts.removed | default: _tx[139] | default: _te[139] -%}
156
+ {%- assign mt_t_layouts_security = _ts.layouts.security | default: _tx[140] | default: _te[140] -%}
157
+ {%- assign mt_t_layouts_now = _ts.layouts.now | default: _tx[141] | default: _te[141] -%}
158
+ {%- assign mt_t_layouts_next = _ts.layouts.next | default: _tx[142] | default: _te[142] -%}
159
+ {%- assign mt_t_layouts_later = _ts.layouts.later | default: _tx[143] | default: _te[143] -%}
160
+ {%- assign mt_t_layouts_letters = _ts.layouts.letters | default: _tx[144] | default: _te[144] -%}
161
+ {%- assign mt_t_layouts_lessons = _ts.layouts.lessons | default: _tx[145] | default: _te[145] -%}
162
+ {%- assign mt_t_layouts_minutes = _ts.layouts.minutes | default: _tx[146] | default: _te[146] -%}
163
+ {%- assign mt_t_layouts_module = _ts.layouts.module | default: _tx[147] | default: _te[147] -%}
164
+ {%- assign mt_t_layouts_chapter = _ts.layouts.chapter | default: _tx[148] | default: _te[148] -%}
165
+ {%- assign mt_t_layouts_effective = _ts.layouts.effective | default: _tx[149] | default: _te[149] -%}
166
+ {%- assign mt_t_layouts_experience = _ts.layouts.experience | default: _tx[150] | default: _te[150] -%}
167
+ {%- assign mt_t_layouts_education = _ts.layouts.education | default: _tx[151] | default: _te[151] -%}
168
+ {%- assign mt_t_layouts_skills = _ts.layouts.skills | default: _tx[152] | default: _te[152] -%}
169
+ {%- assign mt_t_layouts_present = _ts.layouts.present | default: _tx[153] | default: _te[153] -%}
170
+ {%- assign mt_t_layouts_loading = _ts.layouts.loading | default: _tx[154] | default: _te[154] -%}
171
+ {%- assign mt_t_layouts_contents = _ts.layouts.contents | default: _tx[155] | default: _te[155] -%}
172
+ {%- assign mt_t_showcase_region = _ts.showcase.region | default: _tx[156] | default: _te[156] -%}
173
+ {%- assign mt_t_showcase_theme = _ts.showcase.theme | default: _tx[157] | default: _te[157] -%}
174
+ {%- assign mt_t_showcase_demo = _ts.showcase.demo | default: _tx[158] | default: _te[158] -%}
175
+ {%- assign mt_t_showcase_docs = _ts.showcase.docs | default: _tx[159] | default: _te[159] -%}
176
+ {%- assign mt_t_showcase_docs_short = _ts.showcase.docs_short | default: _tx[160] | default: _te[160] -%}
177
+ {%- assign mt_t_showcase_use = _ts.showcase.use | default: _tx[161] | default: _te[161] -%}
178
+ {%- assign mt_t_showcase_dismiss = _ts.showcase.dismiss | default: _tx[162] | default: _te[162] -%}
179
+ {%- assign mt_t_showcase_starters_docs = _ts.showcase.starters.docs | default: _tx[163] | default: _te[163] -%}
180
+ {%- assign mt_t_showcase_starters_blog = _ts.showcase.starters.blog | default: _tx[164] | default: _te[164] -%}
181
+ {%- assign mt_t_showcase_starters_landing = _ts.showcase.starters.landing | default: _tx[165] | default: _te[165] -%}
166
182
  {%- assign mt_t_direction = _ts.direction | default: _tdir -%}
167
183
  {%- endunless -%}
@@ -1,10 +1,14 @@
1
1
  {%- comment -%}Filters rendered page content (include.html): bare "#" sample links stay "#" instead of baseurl + "/#";
2
2
  Markdown links titled "new-window" ([text](url "new-window"), portable), or with kramdown {: .mt-new-window} or target="_blank", get rel, the data hook and the hint; with
3
3
  site.modootoday.external_links.new_window, external links (not starting with site.url) open in a new window too.
4
- Every table is wrapped in div.mt-table, the scroll region the table sheet styles and scroll-region.js labels.{%- endcomment -%}
4
+ Every table is wrapped in div.mt-table, the scroll region the table sheet styles and scroll-region.js labels.
5
+ Front matter diagrams: and static math (on pages with a math block) first swap their sources for static figures (markdown/figures.html).{%- endcomment -%}
5
6
  {%- assign _hash = "#" | relative_url | prepend: 'href="' | append: '"' -%}
6
7
  {%- assign _nwa = ' target="_blank" rel="noopener noreferrer" data-mt-new-window aria-describedby="mt-new-window-hint"' -%}
7
- {%- assign _h = include.html -%}{%- if _hash contains "#" -%}{%- assign _h = _h | replace: _hash, 'href="#"' -%}{%- endif -%}
8
+ {%- assign _h = include.html -%}{%- assign _hm = false -%}{%- assign _hx = site.modootoday.math -%}
9
+ {%- if _hx.mode == "static" and _hx.enabled != false and page.math != false -%}{%- if _h contains "language-math" or _h contains "\[" -%}{%- assign _hm = true -%}{%- endif -%}{%- endif -%}
10
+ {%- if page.diagrams or _hm -%}{%- capture _h %}{% include modootoday/markdown/figures.html html=_h math=_hm %}{% endcapture -%}{%- endif -%}
11
+ {%- if _hash contains "#" -%}{%- assign _h = _h | replace: _hash, 'href="#"' -%}{%- endif -%}
8
12
  {%- assign _nwc = _nwa | prepend: 'class="mt-new-window"' -%}{%- assign _nwt = _nwa | append: ">" -%}
9
13
  {%- if _h contains 'target="_blank">' -%}{%- assign _h = _h | replace: ' target="_blank">', _nwt -%}{%- endif -%}
10
14
  {%- if _h contains ' title="new-window"' -%}{%- assign _h = _h | replace: ' title="new-window"', _nwa -%}{%- endif -%}
@@ -0,0 +1,24 @@
1
+ {%- comment -%}c: chart — params type (bar, line, area, pie, doughnut), stacked, horizontal and data: <name>. With data:,
2
+ site.data.charts[<name>] renders as a table (chart/table.html) at the end of the section and an emphasis-only paragraph
3
+ ending the section is its figcaption; otherwise the section's first table is the chart, captioned as inline charts are.{%- endcomment -%}
4
+ {%- assign _mcc_b = include.html -%}{%- assign _mcc_s = include.s -%}
5
+ {%- assign _mcc_q = "" -%}{%- if _mcc_s.stacked == true -%}{%- assign _mcc_q = "stacked" -%}{%- endif -%}
6
+ {%- if _mcc_s.horizontal == true -%}{%- assign _mcc_q = _mcc_q | append: " horizontal" | strip -%}{%- endif -%}
7
+ {%- assign _mcc_cap = "" -%}{%- assign _mcc_t = "" -%}{%- assign _mcc_a = "" -%}
8
+ {%- if _mcc_s.data -%}{%- assign _mcc_d = site.data.charts[_mcc_s.data] -%}
9
+ {%- if _mcc_d -%}{%- capture _mcc_t %}{% include modootoday/chart/table.html data=_mcc_d %}{% endcapture -%}{%- endif -%}
10
+ {%- assign _mcc_pre = _mcc_b | rstrip -%}{%- assign _mcc_e = _mcc_pre | split: "<p><em>" | last -%}
11
+ {%- assign _mcc_n = _mcc_e | size | minus: 9 -%}{%- assign _mcc_z = _mcc_e | slice: _mcc_n, 9 -%}{%- assign _mcc_c = _mcc_e | slice: 0, _mcc_n -%}
12
+ {%- if _mcc_pre contains "<p><em>" and _mcc_z == "</em></p>" and _mcc_n > 0 -%}{%- unless _mcc_c contains "<" -%}{%- assign _mcc_cap = _mcc_c -%}
13
+ {%- assign _mcc_n = _mcc_pre | size | minus: _mcc_e.size | minus: 7 -%}{%- assign _mcc_pre = _mcc_pre | slice: 0, _mcc_n | rstrip -%}{%- endunless -%}{%- endif -%}
14
+ {%- assign _mcc_pre = _mcc_pre | append: "
15
+ " -%}
16
+ {%- elsif _mcc_b contains "<table" -%}{%- assign _mcc_pre = _mcc_b | split: "<table" | first -%}
17
+ {%- assign _mcc_r = _mcc_b | remove_first: _mcc_pre -%}{%- assign _mcc_t = _mcc_r | split: "</table>" | first | append: "</table>" -%}
18
+ {%- assign _mcc_a = _mcc_r | remove_first: _mcc_t | lstrip -%}{%- assign _mcc_h = _mcc_a | slice: 0, 7 -%}
19
+ {%- if _mcc_h == "<p><em>" -%}{%- assign _mcc_e = _mcc_a | remove_first: "<p><em>" -%}{%- assign _mcc_c = _mcc_e | split: "</em></p>" | first -%}
20
+ {%- unless _mcc_c contains "<" or _mcc_c == _mcc_e -%}{%- assign _mcc_cap = _mcc_c -%}{%- assign _mcc_a = _mcc_e | remove_first: _mcc_c | remove_first: "</em></p>" -%}{%- endunless -%}
21
+ {%- endif -%}{%- endif -%}
22
+ {%- if _mcc_t == "" -%}{{ _mcc_b }}{%- else -%}{%- assign _mcc_ty = _mcc_s.type -%}
23
+ {{ _mcc_pre }}{% include modootoday/chart/figure.html table=_mcc_t caption=_mcc_cap type=_mcc_ty opts=_mcc_q %}{{ _mcc_a }}
24
+ {%- endif -%}
@@ -0,0 +1,22 @@
1
+ {%- comment -%}c: widget — params widget (a custom element name, the element: of a modootoday.scripts entry) and props (a map of
2
+ scalars, written to data-props as JSON). The section text after the h2 becomes the element's light-DOM fallback, shown
3
+ until the element is defined (widget sheet, :defined); assets/site-scripts.html loads the module where the element is.
4
+ When the body ends in a [data-mt-result] box (as for c: cta), only that box's content becomes the fallback.{%- endcomment -%}
5
+ {%- assign _mcw_b = include.html -%}{%- assign _mcw_e = include.s.widget | append: "" -%}
6
+ {%- assign _mcw_h = _mcw_b | split: "</h2>" | first | append: "</h2>" -%}
7
+ {%- assign _mcw_t = "" -%}
8
+ {%- if _mcw_b contains "data-mt-result>" -%}
9
+ {%- assign _mcw_t = _mcw_b | append: "@" | split: "</div>" | last | remove: "@" | prepend: "</div>" -%}
10
+ {%- assign _mcw_n = _mcw_b | size | minus: _mcw_t.size -%}
11
+ {%- assign _mcw_b = _mcw_b | slice: 0, _mcw_n -%}
12
+ {%- assign _mcw_h = _mcw_b | split: "data-mt-result>" | first | append: "data-mt-result>" -%}
13
+ {%- endif -%}
14
+ {%- if _mcw_e contains "-" and _mcw_b contains "</h2>" -%}{%- unless _mcw_e contains "<" or _mcw_e contains '"' or _mcw_e contains " " or _mcw_e contains ">" -%}
15
+ {%- assign _mcw_r = _mcw_b | remove_first: _mcw_h | strip -%}
16
+ {%- capture _mcw_b %}{{ _mcw_h }}
17
+ <{{ _mcw_e }} class="mt-widget"{% if include.s.props %} data-props="{{ include.s.props | jsonify | escape }}"{% endif %}><div class="mt-widget-fallback">
18
+ {{ _mcw_r }}
19
+ </div></{{ _mcw_e }}>
20
+ {% endcapture -%}
21
+ {%- endunless -%}{%- endif -%}
22
+ {{ _mcw_b }}{{ _mcw_t }}
@@ -12,7 +12,8 @@ Usage: {% include modootoday/markdown/components.html content=content lang=page.
12
12
  `since:` is not rendered in 1.0 (checker error).
13
13
  3) figure=true: a paragraph that is only an image, followed by a paragraph that is only *emphasis*
14
14
  → figure.mt-figure with figcaption. Images need alt text (checker). An .svg image (a diagram) becomes
15
- figure.mt-figure-svg with a focusable, labelled div.mt-figure-scroll (figure sheet: dark tone, horizontal scroll).
15
+ figure.mt-figure-svg with a focusable div.mt-figure-scroll named by diagram.label and the caption, not the alt text
16
+ (figure sheet: dark tone, horizontal scroll).
16
17
  4) Always: `file:`, `progress:`, `embed:` and footnote labels (modootoday/markdown/inline.html).
17
18
  Titles/labels: modootoday/i18n.html (site _data/i18n, theme catalog, English).
18
19
  {%- endcomment -%}
@@ -101,7 +102,8 @@ Titles/labels: modootoday/i18n.html (site _data/i18n, theme catalog, English).
101
102
  {%- if _cap != "" -%}{%- assign _rest = _a2 | remove_first: "<p><em>" | remove_first: _cap | remove_first: "</em></p>" -%}
102
103
  {%- assign _src = _im | split: 'src="' | last | split: '"' | first | split: "?" | first | split: "#" | first | downcase -%}
103
104
  {%- assign _ext = _src | slice: -4, 4 -%}
104
- {%- if _ext == ".svg" -%}{%- assign _alt = _im | split: 'alt="' | last | split: '"' | first -%}{%- if _im contains 'alt="' -%}{%- else -%}{%- assign _alt = _cap | strip_html -%}{%- endif -%}
105
+ {%- if _ext == ".svg" -%}{%- assign _alt = _cap | strip_html | strip | replace: '"', "&quot;" -%}
106
+ {%- if _alt != "" -%}{%- assign _alt = mt_t_region_named | replace: "[label]", mt_t_diagram_label | replace: "[name]", _alt -%}{%- endif -%}
105
107
  <figure class="mt-figure mt-figure-svg"><div class="mt-figure-scroll" tabindex="0" role="region" aria-label="{{ _alt | default: mt_t_diagram_label }}"><img {{ _im }}</div><figcaption>{{ _cap }}</figcaption></figure>{{ _rest }}
106
108
  {%- else -%}
107
109
  <figure class="mt-figure"><img {{ _im }}<figcaption>{{ _cap }}</figcaption></figure>{{ _rest }}
@@ -0,0 +1,31 @@
1
+ {%- comment -%}Static diagrams: the n-th ```mermaid fence becomes figure.mt-diagram with the n-th entry of page.diagrams, showing the
2
+ committed <dir><name>.svg and, with dark: true, <dir><name>.dark.svg; the figure sheet swaps them with the colour scheme. Both
3
+ images carry the alt text: CSS hides one, which leaves the accessibility tree. The scroll region is named by diagram.label
4
+ and the caption, not the alt text, so the image is not read twice. A fence with no entry stays as it is.
5
+ site.modootoday.diagrams: dir (default /assets/diagrams/), dark (default true), source: details (default) | none{%- endcomment -%}
6
+ {%- assign _mfd = site.modootoday.diagrams -%}
7
+ {%- assign _mfd_dir = _mfd.dir | default: "/assets/diagrams/" -%}
8
+ {%- assign _mfd_dark = true -%}{%- if _mfd.dark == false -%}{%- assign _mfd_dark = false -%}{%- endif -%}
9
+ {%- assign _mfd_x = include.html -%}
10
+ {%- assign _mfd_k = '<div class="language-mermaid highlighter-rouge">' -%}{%- assign _mfd_e = "</pre></div></div>" -%}
11
+ {%- unless _mfd_x contains _mfd_k -%}{%- assign _mfd_k = '<pre><code class="language-mermaid">' -%}{%- assign _mfd_e = "</code></pre>" -%}{%- endunless -%}
12
+ {%- if _mfd_x contains _mfd_k -%}
13
+ {%- assign _mfd_bits = _mfd_x | split: _mfd_k -%}
14
+ {%- capture _mfd_x -%}{{ _mfd_bits[0] }}{%- for _mfd_b in _mfd_bits offset: 1 -%}
15
+ {%- assign _mfd_d = page.diagrams[forloop.index0] -%}
16
+ {%- if _mfd_d.name and _mfd_d.name != "" and _mfd_b contains _mfd_e -%}
17
+ {%- assign _mfd_src = _mfd_b | split: _mfd_e | first -%}{%- assign _mfd_rest = _mfd_b | remove_first: _mfd_src | remove_first: _mfd_e -%}
18
+ {%- assign _mfd_alt = _mfd_d.alt | strip_html | escape -%}
19
+ {%- capture _mfd_size %}{% if _mfd_d.width and _mfd_d.height %} width="{{ _mfd_d.width }}" height="{{ _mfd_d.height }}"{% endif %}{% endcapture -%}
20
+ {%- assign _mfd_p = _mfd_dir | append: _mfd_d.name -%}
21
+ {%- assign _mfd_r = mt_t_diagram_label -%}{%- assign _mfd_c = _mfd_d.caption | markdownify | strip_html | strip | replace: '"', "&quot;" -%}
22
+ {%- if _mfd_c != "" -%}{%- assign _mfd_r = mt_t_region_named | replace: "[label]", mt_t_diagram_label | replace: "[name]", _mfd_c -%}{%- endif -%}
23
+ <figure class="mt-figure mt-figure-svg mt-diagram"><div class="mt-figure-scroll" tabindex="0" role="region" aria-label="{{ _mfd_r }}">
24
+ {%- if _mfd_dark -%}<img class="mt-diagram-light mt-no-filter" src="{{ _mfd_p | append: '.svg' | relative_url }}" alt="{{ _mfd_alt }}"{{ _mfd_size }} loading="lazy" decoding="async"><img class="mt-diagram-dark mt-no-filter" src="{{ _mfd_p | append: '.dark.svg' | relative_url }}" alt="{{ _mfd_alt }}"{{ _mfd_size }} loading="lazy" decoding="async">
25
+ {%- else -%}<img class="mt-diagram-light" src="{{ _mfd_p | append: '.svg' | relative_url }}" alt="{{ _mfd_alt }}"{{ _mfd_size }} loading="lazy" decoding="async">{%- endif -%}
26
+ </div>{%- if _mfd_d.caption -%}<figcaption>{{ _mfd_d.caption | markdownify | remove: "<p>" | remove: "</p>" | strip }}</figcaption>{%- endif -%}</figure>
27
+ {%- unless _mfd.source == "none" -%}<details class="mt-diagram-source"><summary>{{ mt_t_diagram_source }}</summary>{{ _mfd_k }}{{ _mfd_src }}{{ _mfd_e }}</details>{%- endunless -%}{{ _mfd_rest }}
28
+ {%- else -%}{{ _mfd_k }}{{ _mfd_b }}{%- endif -%}
29
+ {%- endfor -%}{%- endcapture -%}
30
+ {%- endif -%}
31
+ {{ _mfd_x }}
@@ -0,0 +1,34 @@
1
+ {%- comment -%}Static math (site.modootoday.math.mode: static): the n-th ```math fence or $$ block (kramdown prints \[ … \] at a line
2
+ start) becomes the html of the n-th entry of site.data.math[<key>] in a focusable region named math.label; a block with no
3
+ entry stays; figure.mt-figure gives the spacing. <key>: page.math_key, else the default-language source path without extension, / as -- (Figures.math_key).
4
+ Sets mt_math_html when an entry is KaTeX HTML output (class katex-html), so render/math.html links KaTeX's stylesheet.{%- endcomment -%}
5
+ {%- assign _mfm_k = page.math_key | append: "" -%}
6
+ {%- if _mfm_k == "" -%}
7
+ {%- capture _mfm_ls -%}|{{ site.modootoday.languages | join: "|" }}|{%- for _mfm_i in site.data.i18n -%}{{ _mfm_i[0] }}|{%- endfor -%}{%- endcapture -%}
8
+ {%- assign _mfm_def = site.lang | default: "en" | prepend: "|" | append: "|" -%}{%- assign _mfm_ls = _mfm_ls | replace: _mfm_def, "|" -%}
9
+ {%- assign _mfm_d = page.path | split: "/" -%}{%- assign _mfm_b = _mfm_d | last | split: "." -%}{%- assign _mfm_d = _mfm_d | pop -%}
10
+ {%- assign _mfm_s = "||" -%}{%- if _mfm_b.size > 2 -%}{%- assign _mfm_r = _mfm_b | reverse -%}{%- assign _mfm_s = _mfm_r[1] | prepend: "|" | append: "|" -%}{%- endif -%}
11
+ {%- assign _mfm_f0 = _mfm_d.first | prepend: "|" | append: "|" -%}
12
+ {%- if _mfm_s != "||" and _mfm_ls contains _mfm_s -%}{%- assign _mfm_b = _mfm_b | pop -%}{%- if _mfm_d.first == "home" -%}{%- assign _mfm_d = _mfm_d | shift -%}{%- endif -%}
13
+ {%- elsif _mfm_d.size > 0 and _mfm_ls contains _mfm_f0 -%}{%- assign _mfm_d = _mfm_d | shift -%}{%- endif -%}
14
+ {%- assign _mfm_b = _mfm_b | pop | join: "." -%}{%- assign _mfm_k = _mfm_d | push: _mfm_b | join: "--" -%}
15
+ {%- endif -%}
16
+ {%- assign _mfm_data = site.data.math[_mfm_k] -%}
17
+ {%- assign _mfm_x = include.html -%}
18
+ {%- if _mfm_data and _mfm_data.size > 0 -%}
19
+ {%- capture _mfm_nl %}
20
+ {% endcapture -%}{%- assign _mfm_t = _mfm_nl | append: "\[" -%}{%- assign _mfm_tn = _mfm_nl | append: "<!--mt-math-T-->" -%}
21
+ {%- assign _mfm_f = '<div class="language-math highlighter-rouge">' -%}{%- assign _mfm_fe = "</pre></div></div>" -%}
22
+ {%- unless _mfm_x contains _mfm_f -%}{%- assign _mfm_f = '<pre><code class="language-math">' -%}{%- assign _mfm_fe = "</code></pre>" -%}{%- endunless -%}
23
+ {%- assign _mfm_bits = _mfm_x | prepend: _mfm_nl | replace: _mfm_f, "<!--mt-math-F-->" | replace: _mfm_t, _mfm_tn | split: "<!--mt-math-" -%}
24
+ {%- capture _mfm_x -%}{{ _mfm_bits[0] | remove_first: _mfm_nl }}{%- for _mfm_raw in _mfm_bits offset: 1 -%}
25
+ {%- assign _mfm_e = _mfm_data[forloop.index0] -%}{%- assign _mfm_kind = _mfm_raw | slice: 0 -%}{%- assign _mfm_seg = _mfm_raw | slice: 4, _mfm_raw.size -%}
26
+ {%- if _mfm_kind == "F" -%}{%- assign _mfm_end = _mfm_fe -%}{%- assign _mfm_open = _mfm_f -%}{%- else -%}{%- assign _mfm_end = "\]" -%}{%- assign _mfm_open = "\[" -%}{%- endif -%}
27
+ {%- if _mfm_e.html and _mfm_seg contains _mfm_end -%}
28
+ {%- assign _mfm_src = _mfm_seg | split: _mfm_end | first -%}{%- assign _mfm_rest = _mfm_seg | remove_first: _mfm_src | remove_first: _mfm_end -%}
29
+ {%- if _mfm_e.html contains "katex-html" -%}{%- assign mt_math_html = true -%}{%- endif -%}
30
+ <figure class="mt-figure mt-math"><div class="mt-figure-scroll" tabindex="0" role="region" aria-label="{{ mt_t_math_label | replace: '[n]', forloop.index }}">{{ _mfm_e.html }}</div></figure>{{ _mfm_rest }}
31
+ {%- else -%}{{ _mfm_open }}{{ _mfm_seg }}{%- endif -%}
32
+ {%- endfor -%}{%- endcapture -%}
33
+ {%- endif -%}
34
+ {{ _mfm_x }}
@@ -0,0 +1,8 @@
1
+ {%- comment -%}Static figures: committed renders replace fenced sources (parts in markdown/figures/). Called by links/content.html on
2
+ every layout; a page without the front matter list or static math returns include.html unchanged.
3
+ diagrams: [{name, alt, caption, width, height}] the n-th ```mermaid fence becomes the n-th entry (figures/diagrams.html)
4
+ modootoday.math.mode: static the n-th math block becomes the n-th entry of _data/math (figures/math.html){%- endcomment -%}
5
+ {%- assign _mfg_h = include.html -%}
6
+ {%- if page.diagrams and page.diagrams.size > 0 -%}{%- capture _mfg_h %}{% include modootoday/markdown/figures/diagrams.html html=_mfg_h %}{% endcapture -%}{%- endif -%}
7
+ {%- if include.math -%}{%- capture _mfg_h %}{% include modootoday/markdown/figures/math.html html=_mfg_h %}{% endcapture -%}{%- endif -%}
8
+ {{ _mfg_h }}
@@ -0,0 +1,30 @@
1
+ {%- comment -%}md-components v1 — `chart:<type> [stacked] [horizontal]` alone in a paragraph right before a table → figure.mt-chart
2
+ (chart/figure.html) around that table; an emphasis-only paragraph right after the table is its figcaption. Called by
3
+ markdown/inline.html when modootoday.chart.enabled; anything else stays a code span, and modootoday-check reports it.{%- endcomment -%}
4
+ {%- assign _mch_x = include.html -%}
5
+ {%- assign _mch_types = "bar,line,area,pie,doughnut" | split: "," -%}
6
+ {%- assign _mch_opts = "stacked,horizontal" | split: "," -%}
7
+ {%- assign _mch_ops = '<code class="language-plaintext highlighter-rouge">|<code>' | split: "|" -%}
8
+ {%- for _mch_o in _mch_ops -%}
9
+ {%- assign _mch_key = "<p>" | append: _mch_o | append: "chart:" -%}
10
+ {%- if _mch_x contains _mch_key -%}{%- assign _mch_bits = _mch_x | split: _mch_key -%}
11
+ {%- capture _mch_x -%}{{ _mch_bits[0] }}{%- for _mch_b in _mch_bits offset: 1 -%}
12
+ {%- assign _mch_v = _mch_b | split: "</code></p>" | first -%}
13
+ {%- assign _mch_r = _mch_b | remove_first: _mch_v | remove_first: "</code></p>" | lstrip -%}
14
+ {%- assign _mch_w = _mch_v | split: " " -%}{%- assign _mch_ty = _mch_w | first -%}{%- assign _mch_ok = false -%}
15
+ {%- if _mch_types contains _mch_ty -%}{%- assign _mch_ok = true -%}{%- endif -%}
16
+ {%- for _mch_q in _mch_w offset: 1 -%}{%- unless _mch_opts contains _mch_q -%}{%- assign _mch_ok = false -%}{%- endunless -%}{%- endfor -%}
17
+ {%- assign _mch_h = _mch_r | slice: 0, 6 -%}
18
+ {%- if _mch_v contains "<" or _mch_v == _mch_b or _mch_h != "<table" or _mch_ok == false -%}{{ _mch_key }}{{ _mch_b }}
19
+ {%- else -%}{%- assign _mch_t = _mch_r | split: "</table>" | first | append: "</table>" -%}
20
+ {%- assign _mch_a = _mch_r | remove_first: _mch_t | lstrip -%}{%- assign _mch_cap = "" -%}
21
+ {%- assign _mch_h = _mch_a | slice: 0, 7 -%}
22
+ {%- if _mch_h == "<p><em>" -%}{%- assign _mch_e = _mch_a | remove_first: "<p><em>" -%}{%- assign _mch_cap = _mch_e | split: "</em></p>" | first -%}
23
+ {%- if _mch_cap contains "<p" or _mch_cap contains "</em>" or _mch_cap == _mch_e -%}{%- assign _mch_cap = "" -%}
24
+ {%- else -%}{%- assign _mch_a = _mch_a | remove_first: "<p><em>" | remove_first: _mch_cap | remove_first: "</em></p>" -%}{%- endif -%}
25
+ {%- endif -%}
26
+ {%- assign _mch_q = _mch_v | remove_first: _mch_ty | strip -%}
27
+ {% include modootoday/chart/figure.html table=_mch_t caption=_mch_cap type=_mch_ty opts=_mch_q %}{{ _mch_a }}
28
+ {%- endif -%}{%- endfor -%}{%- endcapture -%}{%- endif -%}
29
+ {%- endfor -%}
30
+ {{ _mch_x }}
@@ -0,0 +1,19 @@
1
+ {%- comment -%}md-components v1 — `widget:<element>` alone in a paragraph, where <element> is the element: of a modootoday.scripts
2
+ entry → that custom element with class mt-widget, data-props from front matter widget_props.<element> and the
3
+ widget.fallback sentence as its light-DOM fallback. Called by markdown/inline.html; other names stay code spans.{%- endcomment -%}
4
+ {%- assign _miw_x = include.html -%}{%- assign _miw_els = "|" -%}
5
+ {%- for _miw_s in site.modootoday.scripts -%}{%- assign _miw_el = _miw_s[1].element | append: "" -%}
6
+ {%- if _miw_el contains "-" -%}{%- assign _miw_els = _miw_els | append: _miw_el | append: "|" -%}{%- endif -%}{%- endfor -%}
7
+ {%- assign _miw_ops = '<code class="language-plaintext highlighter-rouge">|<code>' | split: "|" -%}
8
+ {%- for _miw_o in _miw_ops -%}
9
+ {%- assign _miw_key = "<p>" | append: _miw_o | append: "widget:" -%}
10
+ {%- if _miw_x contains _miw_key -%}{%- assign _miw_bits = _miw_x | split: _miw_key -%}
11
+ {%- capture _miw_x -%}{{ _miw_bits[0] }}{%- for _miw_b in _miw_bits offset: 1 -%}
12
+ {%- assign _miw_v = _miw_b | split: "</code></p>" | first -%}{%- assign _miw_k = "|" | append: _miw_v | append: "|" -%}
13
+ {%- assign _miw_ok = false -%}{%- if _miw_els contains _miw_k -%}{%- assign _miw_ok = true -%}{%- endif -%}
14
+ {%- if _miw_v contains "|" or _miw_v == _miw_b or _miw_ok == false -%}{{ _miw_key }}{{ _miw_b }}
15
+ {%- else -%}{%- assign _miw_p = page.widget_props[_miw_v] -%}
16
+ <{{ _miw_v }} class="mt-widget"{% if _miw_p %} data-props="{{ _miw_p | jsonify | escape }}"{% endif %}><div class="mt-widget-fallback"><p>{{ mt_t_widget_fallback }}</p></div></{{ _miw_v }}>{{ _miw_b | remove_first: _miw_v | remove_first: "</code></p>" }}
17
+ {%- endif -%}{%- endfor -%}{%- endcapture -%}{%- endif -%}
18
+ {%- endfor -%}
19
+ {{ _miw_x }}
@@ -3,8 +3,12 @@
3
3
  `progress:<0-100>` → span.mt-progress > progress[max=100] labelled progress.label, plus "N%" as text.
4
4
  `embed:https://… Title` alone in a paragraph → div.mt-embed > iframe (lazy; title = the words after the URL,
5
5
  else embed.title). `loading:spinner|bar` and `skeleton:text|card|image|avatar|row` → role=status
6
- placeholders labelled loading.label (optional loading sheet). Footnote back-links get aria-label footnote.back. modootoday-check validates the values.{%- endcomment -%}
6
+ placeholders labelled loading.label (optional loading sheet). Footnote back-links get aria-label footnote.back. modootoday-check validates the values.
7
+ With modootoday.chart.enabled, `chart:<type>` alone before a table → figure.mt-chart (inline/chart.html).
8
+ `widget:<element>` alone in a paragraph, for an element: of modootoday.scripts → that custom element (inline/widget.html).{%- endcomment -%}
7
9
  {%- assign _x = include.html -%}
10
+ {%- if site.modootoday.chart.enabled == true and mt_components contains "chart" and _x contains "chart:" -%}{%- capture _x %}{% include modootoday/markdown/inline/chart.html html=_x %}{% endcapture -%}{%- endif -%}
11
+ {%- if site.modootoday.scripts and mt_components contains "widget" and _x contains "widget:" -%}{%- capture _x %}{% include modootoday/markdown/inline/widget.html html=_x %}{% endcapture -%}{%- endif -%}
8
12
  {%- assign _ops = '<code class="language-plaintext highlighter-rouge">|<code>' | split: "|" -%}
9
13
  {%- for _o in _ops -%}
10
14
  {%- assign _key = "<p>" | append: _o | append: "file:" -%}
@@ -5,7 +5,7 @@ No sections: whole body in one div.mt-prose (no implicit split).
5
5
  With sections: part 0 (before the first h2) is section.mt-hero; item i maps to the i-th top-level h2.
6
6
  Only top-level h2 split: kramdown prints them at column 0 ("\n<h2 "), nested ones (quote, list,
7
7
  alert) are indented and stay inside their section. modootoday-check rejects nested/setext/indented ##.
8
- Item: "name" or {c: component, name: key, ...params}. c: tabs → data-tabs, c: cta → (on the section, or on its [data-mt-result] element when it holds one, so a showcase box only frames the result).
8
+ Item: "name" or {c: component, name: key, ...params}. c: tabs → data-tabs, c: cta → (on the section, or on its [data-mt-result] element when it holds one, so a showcase box only frames the result; c: widget puts its element in that element the same way).
9
9
  visual: <name> on an item (or include.hero.visual for the hero) appends the site's
10
10
  _includes/sections/<name>.html at the end of that section, called with section=<item> (hero=<hero>); every other key
11
11
  on the item (e.g. scene: 2) reaches the include as include.section.<key>.
@@ -37,7 +37,7 @@ modootoday-check fails when the item count differs from the h2 count.
37
37
  {%- assign _main = _fparts[0] -%}{%- assign _notes = "" -%}
38
38
  {%- if _fparts.size > 1 -%}{%- assign _notes = include.content | remove_first: _main | strip -%}{%- endif -%}
39
39
  {%- assign _parts = _main | prepend: _nl | split: _sep -%}
40
- {%- assign mt_c_transforms = "|filetree|linkcards|details|faq|params|quote|gallery|pricing|subscribe|" -%}
40
+ {%- assign mt_c_transforms = "|filetree|linkcards|details|faq|params|quote|gallery|pricing|subscribe|chart|widget|" -%}
41
41
  {%- assign _p0 = _parts[0] -%}{%- if site.modootoday.lists -%}{%- capture _p0 %}{% include modootoday/markdown/lists.html html=_p0 %}{% endcapture -%}{%- endif -%}
42
42
  {%- capture _hero %}{% include modootoday/actions.html html=_p0 %}{% endcapture -%}{%- assign _hl = "</h1>" | append: _nl | append: _nl -%}{%- assign _hlp = _hl | append: "<p>" -%}{%- assign _hlc = _hl | append: '<p class="mt-hero-lead">' -%}{%- assign _hero = _hero | replace_first: _hlp, _hlc -%}
43
43
  <section class="mt-hero{% if include.hero.checks == true %} mt-hero-checks{% endif %}{% if include.hero.decor %} mt-has-decor{% endif %}{% if include.hero.reveal == true %} mt-reveal{% endif %}{% if include.hero.c == 'split' %} mt-c-split{% if include.hero.side == 'start' %} mt-split-start{% endif %}{% if include.hero.ratio == '5:7' %} mt-split-5-7{% endif %}{% endif %}{% if include.hero.bleed %} mt-bleed{% if include.hero.bleed == 'wide' %} mt-bleed-wide{% endif %}{% endif %}">{% if include.hero.c == 'split' %}{% include modootoday/markdown/split.html body=_hero s=include.hero hero=true %}{% else %}{{ _hero }}{% include modootoday/markdown/visual.html s=include.hero hero=true %}{% endif %}{% if include.hero.decor %}<div class="mt-section-decor" aria-hidden="true">{% include sections/{{ include.hero.decor }}.html section=include.hero %}</div>{% endif %}</section>
@@ -0,0 +1,15 @@
1
+ {%- comment -%}
2
+ Optional chart renderer: site.modootoday.chart. assets/scripts.html includes it on pages whose body has a chart figure.
3
+ enabled true turns charts on (markdown/inline/chart.html); without src they stay tables
4
+ src Chart.js 4 (dist/chart.umd.min.js): a pinned, versioned https URL (with integrity), or a site path
5
+ integrity SRI hash (sha256-/sha384-/sha512-…); required for an https src, optional for a site path
6
+ Prints the library tag and sets mt_chart_on, so the chart module (data/chart.js) loads after it; front matter chart: false
7
+ opts a page out. An https src without integrity loads nothing (modootoday-check reports it).
8
+ {%- endcomment -%}
9
+ {%- assign mt_chart_on = false -%}{%- assign _mc = site.modootoday.chart -%}
10
+ {%- if _mc.enabled == true and page.chart != false and _mc.src -%}
11
+ {%- include modootoday/render/asset.html src=_mc.src integrity=_mc.integrity -%}
12
+ {%- if mt_asset_tag -%}{%- assign mt_chart_on = true %}
13
+ {{ mt_asset_tag }}
14
+ {%- endif -%}
15
+ {%- endif -%}