jekyll-text-theme 2.0.1 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +12 -3
  3. data/_data/locale.yml +4 -4
  4. data/_data/variables.yml +1 -0
  5. data/_includes/article-footer/author-profile.html +2 -7
  6. data/_includes/article-footer/license.html +1 -2
  7. data/_includes/article-info.html +6 -13
  8. data/_includes/article-section-navigator.html +54 -0
  9. data/_includes/{follow-me.html → author-links.html} +4 -10
  10. data/_includes/footer.html +20 -21
  11. data/_includes/head.html +10 -18
  12. data/_includes/header.html +5 -8
  13. data/_includes/markdown-enhancements.html +6 -18
  14. data/_includes/markdown-enhancements/mathjax.html +4 -8
  15. data/_includes/markdown-enhancements/mermaid.html +3 -1
  16. data/_includes/pageview.html +1 -3
  17. data/_includes/paginator.html +97 -0
  18. data/_includes/scripts/archieve.js +4 -4
  19. data/_includes/scripts/article-list.html +2 -4
  20. data/_includes/scripts/aside/affix.js +7 -9
  21. data/_includes/scripts/aside/toc.js +7 -9
  22. data/_includes/scripts/{sidebar.js → components/sidebar.js} +0 -0
  23. data/_includes/scripts/lib/affix.js +35 -26
  24. data/_includes/scripts/lib/toc.js +7 -5
  25. data/_includes/sidebar/toc.html +2 -4
  26. data/_includes/snippets/assign.html +7 -3
  27. data/_includes/snippets/get-nav-url.html +4 -4
  28. data/_includes/snippets/get-sources.html +1 -4
  29. data/_includes/snippets/locale-to-string.html +4 -4
  30. data/_includes/snippets/page-title.html +2 -4
  31. data/_includes/snippets/page-url.html +1 -2
  32. data/_includes/snippets/prepend-baseurl.html +1 -1
  33. data/_includes/tags.html +1 -1
  34. data/_layouts/article.html +8 -38
  35. data/_layouts/home.html +4 -108
  36. data/_layouts/landing.html +6 -12
  37. data/_layouts/page.html +16 -28
  38. data/_sass/additional/_alert.scss +4 -4
  39. data/_sass/animate/_fade-in-up.scss +10 -0
  40. data/_sass/common/_classes.scss +2 -1
  41. data/_sass/common/_reset.scss +0 -13
  42. data/_sass/common/_variables.scss +1 -1
  43. data/_sass/common/classes/_clickable.scss +1 -1
  44. data/_sass/common/classes/_link.scss +0 -62
  45. data/_sass/common/components/_menu.scss +21 -1
  46. data/_sass/common/components/_toc.scss +9 -10
  47. data/_sass/components/{_article.content.scss → _article-content.scss} +3 -5
  48. data/_sass/components/{_article.info.scss → _article-info.scss} +3 -3
  49. data/_sass/components/{_follow-me.scss → _author-links.scss} +1 -1
  50. data/_sass/components/_author-profile.scss +1 -1
  51. data/_sass/components/_footer.scss +14 -12
  52. data/_sass/components/_header.scss +2 -1
  53. data/_sass/components/_tags.scss +1 -0
  54. data/_sass/layout/_archive.scss +7 -4
  55. data/_sass/layout/_article.scss +1 -1
  56. data/_sass/layout/_base.scss +10 -0
  57. data/_sass/layout/_home.scss +3 -0
  58. data/_sass/layout/_page.scss +5 -1
  59. data/_sass/skins/_chocolate.scss +25 -14
  60. data/_sass/skins/_dark.scss +19 -8
  61. data/_sass/skins/_default.scss +16 -5
  62. data/_sass/skins/_forest.scss +17 -6
  63. data/_sass/skins/_ocean.scss +23 -12
  64. data/_sass/skins/_orange.scss +26 -14
  65. data/_sass/skins/highlight/_default.scss +0 -0
  66. data/_sass/skins/highlight/_tomorrow-night-blue.scss +2 -0
  67. data/_sass/skins/highlight/_tomorrow-night-bright.scss +2 -0
  68. data/_sass/skins/highlight/_tomorrow-night-eighties.scss +2 -0
  69. data/_sass/skins/highlight/_tomorrow-night.scss +2 -0
  70. data/_sass/skins/highlight/_tomorrow.scss +2 -0
  71. data/_sass/skins/highlight/tomorrow/_default.scss +10 -0
  72. data/_sass/skins/highlight/tomorrow/_highlight.scss +74 -0
  73. data/_sass/skins/highlight/tomorrow/_night-blue.scss +10 -0
  74. data/_sass/skins/highlight/tomorrow/_night-bright.scss +10 -0
  75. data/_sass/skins/highlight/tomorrow/_night-eighties.scss +10 -0
  76. data/_sass/skins/highlight/tomorrow/_night.scss +10 -0
  77. data/assets/css/main.scss +20 -9
  78. metadata +23 -9
  79. data/_includes/snippets/to-boolean.html +0 -7
  80. data/_sass/common/_highlighting.scss +0 -65
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 32a22a3074ab0f4f8246caba2cc52209b494e056
4
- data.tar.gz: 97c05e54f41bf0d1dfbeac5b70f60c3297f64f06
3
+ metadata.gz: 3c2ae404cd71049373be71e77b4e6b49722cff9c
4
+ data.tar.gz: 671c1dc0fe48624aa30d2cea2495969e499ca8bc
5
5
  SHA512:
6
- metadata.gz: f199ddcd6a845ee96893524aa30315da07af55dfebb27bcd2d2cf10bad4e0be7abcc537f24f6af63a1f3f03f8d2bfac06ca01abec34fa06995786b67433b4504
7
- data.tar.gz: 3256fcf3d4fad70f0a1bfb319169f3df2b776203e09a7fb1103dc22951e482c53b0cabea488911c8044ea8fb260d8d32ac1b032cfcf393b2e1756a7ea20cf0b0
6
+ metadata.gz: d142b51db0bff8f34498fe524fcad922baa8c4ba4fd8478fdfa3b9e2ffdf31bf53b8439d69cc1eeed6ec62b9c74d1eb0387f79282010cec9090247102cf68417
7
+ data.tar.gz: 85f644f5def91d033c514e43210bbb858019709d31268520bdbad4c6a38623de2944aa16554dbd52fce9fa7effba058e2d4e774d16df3ae8072d74cfdaf367f3
data/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  ![TeXt Theme](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/TeXt-home.png)
8
8
 
9
- ![TeXt Theme Details](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/TeXt-details.png)
9
+ ![TeXt Theme Details](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/TeXt-layouts.png)
10
10
 
11
11
  TeXt is a Jekyll theme for personal site, team site, blog, project, documentation, etc. Similar to iOS 11 style, it has large and prominent titles, round buttons and cards.
12
12
 
@@ -16,6 +16,7 @@ TeXt is a Jekyll theme for personal site, team site, blog, project, documentatio
16
16
 
17
17
  - Responsive
18
18
  - Skins
19
+ - Highlight Theme
19
20
  - Table of contents
20
21
  - Authors
21
22
  - Multi-language support(English, Simplified Chinese, Traditional Chinese)
@@ -36,11 +37,19 @@ You can choose these 6 built-in skins below:
36
37
 
37
38
  | `default` | `dark` | `forest` |
38
39
  | --- | --- | --- |
39
- | ![default](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/skins_default.png) | ![dark](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/skins_dark.png) | ![forest](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/skins_forest.png) |
40
+ | ![Default](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/skins_default.png) | ![Dark](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/skins_dark.png) | ![Forest](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/skins_forest.png) |
40
41
 
41
42
  | `ocean` | `chocolate` | `orange` |
42
43
  | --- | --- | --- |
43
- | ![ocean](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/skins_ocean.png) | ![chocolate](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/skins_chocolate.png) | ![orange](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/skins_orange.png) |
44
+ | ![Ocean](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/skins_ocean.png) | ![Chocolate](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/skins_chocolate.png) | ![Orange](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/skins_orange.png) |
45
+
46
+ ### Highlight Theme
47
+
48
+ TeXt use [Tomorrow](https://github.com/chriskempson/tomorrow-theme) as the highlight theme.
49
+
50
+ | `tomorrow` | `tomorrow-night` | `tomorrow-night-eighties` | `tomorrow-night-blue` | `tomorrow-night-bright` |
51
+ | --- | --- | --- | --- | --- |
52
+ | ![Tomorrow](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/highlight_tomorrow.png) | ![Tomorrow Night](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/highlight_tomorrow-night.png) | ![Tomorrow Night Eighties](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/highlight_tomorrow-night-eighties.png) | ![Tomorrow Night Blue](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/highlight_tomorrow-night-blue.png) | ![Tomorrow Night Bright](https://raw.githubusercontent.com/kitian616/jekyll-TeXt-theme/master/screenshots/highlight_tomorrow-night-bright.png) |
44
53
 
45
54
  ## Documentation
46
55
 
data/_data/locale.yml CHANGED
@@ -16,10 +16,10 @@ NAV:
16
16
  zh-Hant: "RSS"
17
17
 
18
18
  READMORE:
19
- en: "Click to read more ..."
20
- zh: "点我阅读更多..."
21
- zh-Hans: "点我阅读更多..."
22
- zh-Hant: "「點我閱讀更多」"
19
+ en: "Read more"
20
+ zh: "阅读更多"
21
+ zh-Hans: "阅读更多"
22
+ zh-Hant: "閱讀更多"
23
23
 
24
24
  VIEWS:
25
25
  en: "views"
data/_data/variables.yml CHANGED
@@ -1,5 +1,6 @@
1
1
  default:
2
2
  text_skin: default
3
+ highlight_theme: default
3
4
  lang: en
4
5
  paths:
5
6
  root: /
@@ -1,8 +1,4 @@
1
- {%- if __author -%}
2
- {%- assign _author = __author -%}
3
- {%- else -%}
4
- {%- assign _author = site.author -%}
5
- {%- endif -%}
1
+ {%- assign _author = include.author -%}
6
2
 
7
3
  {%- if _author.type == 'organization' -%}
8
4
  {%- assign _author_itemtype = 'http://schema.org/Organization' -%}
@@ -43,8 +39,7 @@
43
39
  <p itemprop="description">{{ _author.bio }}</p>
44
40
  {%- endif -%}
45
41
 
46
- {%- assign __author = _author -%}
47
- {%- include follow-me.html -%}
42
+ {%- include author-links.html author=_author -%}
48
43
 
49
44
  </div>
50
45
  </div>
@@ -1,5 +1,4 @@
1
- {%- assign __locale = site.data.locale.LICENSE_ANNOUNCE -%}
2
- {%- include snippets/locale-to-string.html -%}
1
+ {%- include snippets/locale-to-string.html locale=site.data.locale.LICENSE_ANNOUNCE -%}
3
2
  {%- assign _license_announce = __return -%}
4
3
 
5
4
  {%- assign _data_license = site.data.licenses-%}
@@ -4,15 +4,10 @@
4
4
  {%- assign _cur_page = page -%}
5
5
  {%- endif -%}
6
6
 
7
- {%- assign __target = site.data.variables.default.pageview -%}
8
- {%- assign __source = page.pageview -%}
9
- {%- include snippets/assign.html -%}
7
+ {%- include snippets/assign.html target=site.data.variables.default.pageview source0=page.pageview -%}
10
8
  {%- assign _pageview = __return -%}
11
9
 
12
- {%- assign __target = site.data.variables.default.paths.archive -%}
13
- {%- assign __source = site.paths.archive -%}
14
- {%- include snippets/assign.html -%}
15
- {%- assign _all_path = __return -%}
10
+ {%- assign _paths_archive = site.paths.archive | default: site.data.variables.default.paths.archive -%}
16
11
 
17
12
  {%- if _cur_page.author -%}
18
13
  {%- assign _author = site.data.authors[_cur_page.author] -%}
@@ -38,8 +33,8 @@
38
33
  {%- else -%}
39
34
  {%- assign _keywords = _keywords | append: _tag | append: ',' -%}
40
35
  {%- endif -%}
41
- {%- assign __path = _all_path | append: '?tag=' -%}
42
- {%- include snippets/prepend-baseurl.html -%}
36
+ {%- assign _tag_path = _paths_archive | append: '?tag=' -%}
37
+ {%- include snippets/prepend-baseurl.html path=_tag_path -%}
43
38
  <li>
44
39
  <a class="button button--secondary button--pill button--sm"
45
40
  href="{{ __return | append: _tag_encode | replace: '//', '/' }}">{{ _tag }}</a>
@@ -58,8 +53,7 @@
58
53
 
59
54
  {%- if _cur_page.date -%}
60
55
  <li>
61
- {%- assign __locale = site.data.locale.ARTICLE_DATE_FORMAT } -%}
62
- {%- include snippets/locale-to-string.html -%}
56
+ {%- include snippets/locale-to-string.html locale=site.data.locale.ARTICLE_DATE_FORMAT -%}
63
57
  {%- if post -%}
64
58
  <i class="far fa-calendar-alt"></i> <span itemprop="datePublished">{{ _cur_page.date | date: __return }}</span>
65
59
  {%- elsif page -%}
@@ -73,8 +67,7 @@
73
67
  {%- if _pageview or post -%}
74
68
  {%- if site.pageview.provider -%}
75
69
 
76
- {%- assign __locale = site.data.locale.VIEWS } -%}
77
- {%- include snippets/locale-to-string.html -%}
70
+ {%- include snippets/locale-to-string.html locale=site.data.locale.VIEWS -%}
78
71
  {%- assign _locale_views = __return -%}
79
72
 
80
73
  <li itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter">
@@ -0,0 +1,54 @@
1
+ {%- if page.sidebar.nav -%}
2
+ {%- assign _sidebar_nav = site.data.navigation[page.sidebar.nav] -%}
3
+ {%- if _sidebar_nav -%}
4
+ {%- assign _find_cur = false -%}
5
+ {%- assign _find_next = false -%}
6
+
7
+ {%- for _item in _sidebar_nav -%}
8
+ {%- if _find_next -%} {%- break -%} {%- endif -%}
9
+ {%- if _item.children -%}
10
+
11
+ {%- for _child in _item.children -%}
12
+ {%- include snippets/get-nav-url.html path=_child.url -%}
13
+ {%- assign _nav_url = __return -%}
14
+ {%- include snippets/get-nav-url.html path=page.url -%}
15
+ {%- assign _page_url = __return -%}
16
+
17
+ {%- if _nav_url == _page_url -%}
18
+ {%- assign _find_cur = true -%}
19
+ {%- elsif _find_cur and _find_next != true -%}
20
+ {%- assign _find_next = true -%}
21
+ {%- assign _next = _child -%}
22
+ {%- break -%}
23
+ {%- else -%}
24
+ {%- assign _previous = _child -%}
25
+ {%- endif -%}
26
+ {%- endfor -%}
27
+
28
+ {%- endif -%}
29
+ {%- endfor -%}
30
+ {%- endif -%}
31
+
32
+ {%- else -%}
33
+ {%- assign _previous = page.next -%}
34
+ {%- assign _next = page.previous -%}
35
+ {%- endif -%}
36
+
37
+ {%- if _next or _previous -%}
38
+ <div class="article__section-navigator clearfix">
39
+ {%- if _previous -%}
40
+ {%- include snippets/prepend-baseurl.html path=_previous.url -%}
41
+ {%- assign _href = __return -%}
42
+ {%- include snippets/locale-to-string.html locale=site.data.locale.PREVIOUS -%}
43
+ {%- assign _locale_previous = __return -%}
44
+ <div class="previous"><span>{{ _locale_previous }}</span><a href="{{ _href }}">{{ _previous.title }}</a></div>
45
+ {%- endif -%}
46
+ {%- if _next -%}
47
+ {%- include snippets/prepend-baseurl.html path=_next.url -%}
48
+ {%- assign _href = __return -%}
49
+ {%- include snippets/locale-to-string.html locale=site.data.locale.NEXT -%}
50
+ {%- assign _locale_next = __return -%}
51
+ <div class="next"><span>{{ _locale_next }}</span><a href="{{ _href }}">{{ _next.title }}</a></div>
52
+ {%- endif -%}
53
+ </div>
54
+ {%- endif -%}
@@ -1,10 +1,6 @@
1
- {%- if __author -%}
2
- {%- assign _author = __author -%}
3
- {%- else -%}
4
- {%- assign _author = site.author -%}
5
- {%- endif -%}
1
+ {%- assign _author = include.author -%}
6
2
 
7
- <div class="follow-me">
3
+ <div class="author-links">
8
4
  <ul class="menu menu--nowrap menu--center">
9
5
 
10
6
 
@@ -12,8 +8,7 @@
12
8
  <link itemprop="url" href="{{ _author.url }}">
13
9
  {%- endif -%}
14
10
 
15
- {%- assign __locale = site.data.locale.EMAIL_ME -%}
16
- {%- include snippets/locale-to-string.html -%}
11
+ {%- include snippets/locale-to-string.html locale=site.data.locale.EMAIL_ME -%}
17
12
  {%- if _author.email -%}
18
13
  <li title="{{ __return }}">
19
14
  <a class="button button--circle mail-button" itemprop="email" href="mailto:{{ _author.email }}" target="_blank">
@@ -21,8 +16,7 @@
21
16
  </a>
22
17
  {%- endif -%}
23
18
 
24
- {%- assign __locale = site.data.locale.FOLLOW_ME -%}
25
- {%- include snippets/locale-to-string.html -%}
19
+ {%- include snippets/locale-to-string.html locale=site.data.locale.FOLLOW_ME -%}
26
20
 
27
21
  {%- if _author.weibo -%}
28
22
  <li title="{{ __return | replace: '[NAME]', 'Weibo' }}">
@@ -2,34 +2,33 @@
2
2
  <div class="footer js-page-footer">
3
3
  <div class="main">
4
4
 
5
- {%- assign __author = site.author -%}
6
- {%- if __author.type == 'organization' -%}
7
- {%- assign _author_itemtype = 'http://schema.org/Organization' -%}
5
+ {%- assign _site_author = site.author -%}
6
+ {%- if _site_author.type == 'organization' -%}
7
+ {%- assign _site_author_itemtype = 'http://schema.org/Organization' -%}
8
8
  {%- else -%}
9
- {%- assign _author_itemtype = 'http://schema.org/Person' -%}
9
+ {%- assign _site_author_itemtype = 'http://schema.org/Person' -%}
10
10
  {%- endif -%}
11
11
 
12
- <aside itemscope itemtype="{{ _author_itemtype }}">
13
- <meta itemprop="name" content="{{ __author.name }}">
14
- {%- assign __path = __author.url | default: '/'-%}
15
- {%- include snippets/get-nav-url.html -%}
16
- {%- assign _author_url = __return -%}
17
- <meta itemprop="url" content="{{ _author_url }}">
18
- {%- if __author.bio -%}
19
- <meta itemprop="description" content="{{ __author.bio }}">
12
+ <aside itemscope itemtype="{{ _site_author_itemtype }}">
13
+ <meta itemprop="name" content="{{ _site_author.name }}">
14
+ {%- assign _site_author_url = _site_author.url | default: '/'-%}
15
+ {%- include snippets/get-nav-url.html path=_site_author_url -%}
16
+ {%- assign _site_author_url = __return -%}
17
+ <meta itemprop="url" content="{{ _site_author_url }}">
18
+ {%- if _site_author.bio -%}
19
+ <meta itemprop="description" content="{{ _site_author.bio }}">
20
20
  {%- endif -%}
21
- {%- include follow-me.html -%}
21
+ {%- include author-links.html author=_site_author -%}
22
22
  </aside>
23
23
  <footer class="site-info">
24
- {%- assign __path = site.paths.rss | default: site.data.variables.default.paths.rss -%}
25
- {%- include snippets/get-nav-url.html -%}
26
- {%- assign _href = __return -%}
27
- {%- assign __locale = site.data.locale.NAV.RSS -%}
28
- {%- include snippets/locale-to-string.html -%}
24
+ {%- assign _paths_rss = site.paths.rss | default: site.data.variables.default.paths.rss -%}
25
+ {%- include snippets/get-nav-url.html path=_paths_rss -%}
26
+ {%- assign _paths_rss = __return -%}
27
+ {%- include snippets/locale-to-string.html locale=site.data.locale.NAV.RSS -%}
29
28
  {%- assign _locale_nav_rss = __return -%}
30
- <p>
31
- <span class="site-info__copyright">© {{ site.title }} {{ site.data.locale.COPYRIGHT_DATES }}</span>
32
- <a class="site-info__rss" type="application/rss+xml" href="{{ _href }}">{{ _locale_nav_rss }}</a>
29
+ <p class="menu menu--center">
30
+ <span>© {{ site.title }} {{ site.data.locale.COPYRIGHT_DATES }}</span>
31
+ <a type="application/rss+xml" href="{{ _paths_rss }}">{{ _locale_nav_rss }}</a>
33
32
  </p>
34
33
  <p>Powered by <a title="Jekyll is a simple, blog-aware, static site generator." href="http://jekyllrb.com/">Jekyll</a> & <a
35
34
  title="TeXt is a succinct theme for blogging." href="https://github.com/kitian616/jekyll-TeXt-theme">TeXt Theme</a>.
data/_includes/head.html CHANGED
@@ -8,45 +8,37 @@
8
8
  <meta name="description" content="{%- if page.excerpt -%}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{%- else -%}{{ site.description }}{%- endif -%}">
9
9
  <link rel="canonical" href="{%- include snippets/page-url.html -%}">
10
10
 
11
- {%- assign __path = site.paths.rss | default: site.data.variables.default.paths.rss -%}
12
- {%- include snippets/get-nav-url.html -%}
11
+ {%- assign _paths_rss = site.paths.rss | default: site.data.variables.default.paths.rss -%}
12
+ {%- include snippets/get-nav-url.html path=_paths_rss -%}
13
13
  <link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ __return }}">
14
14
  <!-- begin favicon -->
15
- {%- assign __path = '/assets/apple-touch-icon.png' -%}
16
- {%- include snippets/prepend-baseurl.html -%}
15
+ {%- include snippets/prepend-baseurl.html path='/assets/apple-touch-icon.png' -%}
17
16
  <link rel="apple-touch-icon" sizes="180x180" href="{{ __return }}">
18
17
 
19
- {%- assign __path = '/assets/favicon-32x32.png' -%}
20
- {%- include snippets/prepend-baseurl.html -%}
18
+ {%- include snippets/prepend-baseurl.html path='/assets/favicon-32x32.png' -%}
21
19
  <link rel="icon" type="image/png" sizes="32x32" href="{{ __return }}">
22
20
 
23
- {%- assign __path = '/assets/favicon-16x16.png' -%}
24
- {%- include snippets/prepend-baseurl.html -%}
21
+ {%- include snippets/prepend-baseurl.html path='/assets/favicon-16x16.png' -%}
25
22
  <link rel="icon" type="image/png" sizes="16x16" href="{{ __return }}">
26
23
 
27
- {%- assign __path = '/assets/site.webmanifest' -%}
28
- {%- include snippets/prepend-baseurl.html -%}
24
+ {%- include snippets/prepend-baseurl.html path='/assets/site.webmanifest' -%}
29
25
  <link rel="manifest" href="{{ __return }}">
30
26
 
31
- {%- assign __path = '/assets/safari-pinned-tab.svg' -%}
32
- {%- include snippets/prepend-baseurl.html -%}
27
+ {%- include snippets/prepend-baseurl.html path='/assets/safari-pinned-tab.svg' -%}
33
28
  <link rel="mask-icon" href="{{ __return }}" color="#fc4d50">
34
29
 
35
- {%- assign __path = '/assets/favicon.ico' -%}
36
- {%- include snippets/prepend-baseurl.html -%}
30
+ {%- include snippets/prepend-baseurl.html path='/assets/favicon.ico' -%}
37
31
  <link rel="shortcut icon" href="{{ __return }}">
38
32
 
39
33
  <meta name="msapplication-TileColor" content="#ffc40d">
40
34
 
41
- {%- assign __path = '/assets/browserconfig.xml' -%}
42
- {%- include snippets/prepend-baseurl.html -%}
35
+ {%- include snippets/prepend-baseurl.html path='/assets/browserconfig.xml' -%}
43
36
  <meta name="msapplication-config" content="{{ __return }}">
44
37
 
45
38
  <meta name="theme-color" content="#ffffff">
46
39
  <!-- end favicon -->
47
40
 
48
- {%- assign __path = '/assets/css/main.css' -%}
49
- {%- include snippets/prepend-baseurl.html -%}
41
+ {%- include snippets/prepend-baseurl.html path='/assets/css/main.css' -%}
50
42
  <link rel="stylesheet" href="{{ __return }}">
51
43
 
52
44
  {%- include snippets/get-sources.html -%}
@@ -2,8 +2,8 @@
2
2
  <div class="main clearfix">
3
3
  <div class="logo">
4
4
  {%- include svg/logo.svg -%}
5
- {%- assign __path = site.paths.root | default: site.data.variables.default.paths.root -%}
6
- {%- include snippets/get-nav-url.html -%}
5
+ {%- assign _paths_root = site.paths.root | default: site.data.variables.default.paths.root -%}
6
+ {%- include snippets/get-nav-url.html path=_paths_root -%}
7
7
  {%- if site.title -%}
8
8
  <a title="{%- if site.description -%}{{ site.description }}{%- endif -%}" href="{{ __return }}">{{ site.title }}</a>
9
9
  {%- endif -%}
@@ -12,14 +12,11 @@
12
12
  <nav>
13
13
  <ul>
14
14
  {%- for _item in site.data.navigation.header -%}
15
- {%- assign __path = _item.url -%}
16
- {%- include snippets/get-nav-url.html -%}
15
+ {%- include snippets/get-nav-url.html path=_item.url -%}
17
16
  {%- assign _nav_url = __return -%}
18
- {%- assign __path = page.url -%}
19
- {%- include snippets/get-nav-url.html -%}
17
+ {%- include snippets/get-nav-url.html path=page.url -%}
20
18
  {%- assign _page_url = __return -%}
21
- {%- assign __locale = _item.titles -%}
22
- {%- include snippets/locale-to-string.html -%}
19
+ {%- include snippets/locale-to-string.html locale=_item.titles -%}
23
20
  {%- if _nav_url == _page_url -%}
24
21
  <li class="active"><a href="{{ _nav_url }}">{%- if _item.title -%}{{ _item.title }}{%- else -%}{{ __return }}{%- endif -%}</a></li>
25
22
  {%- else -%}
@@ -1,32 +1,20 @@
1
- {%- assign __target = site.data.variables.default.chart -%}
2
- {%- assign __source = site.chart -%}
3
- {%- include snippets/assign.html -%}
1
+ {%- include snippets/assign.html target = site.data.variables.default.chart source0=site.chart -%}
2
+ {%- include snippets/assign.html target=__return source0=page.chart -%}
4
3
 
5
- {%- assign __target = __return -%}
6
- {%- assign __source = page.chart -%}
7
- {%- include snippets/assign.html -%}
8
4
  {%- if __return == true -%}
9
5
  {%- include markdown-enhancements/chart.html -%}
10
6
  {%- endif -%}
11
7
 
12
- {%- assign __target = site.data.variables.default.mathjax -%}
13
- {%- assign __source = site.mathjax -%}
14
- {%- include snippets/assign.html -%}
8
+ {%- include snippets/assign.html target = site.data.variables.default.mathjax source0=site.mathjax -%}
9
+ {%- include snippets/assign.html target=__return source0=page.mathjax -%}
15
10
 
16
- {%- assign __target = __return -%}
17
- {%- assign __source = page.mathjax -%}
18
- {%- include snippets/assign.html -%}
19
11
  {%- if __return == true -%}
20
12
  {%- include markdown-enhancements/mathjax.html -%}
21
13
  {%- endif -%}
22
14
 
23
- {%- assign __target = site.data.variables.default.mermaid -%}
24
- {%- assign __source = site.mermaid -%}
25
- {%- include snippets/assign.html -%}
15
+ {%- include snippets/assign.html target = site.data.variables.default.mermaid source0=site.mermaid -%}
16
+ {%- include snippets/assign.html target=__return source0=page.mermaid -%}
26
17
 
27
- {%- assign __target = __return -%}
28
- {%- assign __source = page.mermaid -%}
29
- {%- include snippets/assign.html -%}
30
18
  {%- if __return == true -%}
31
19
  {%- include markdown-enhancements/mermaid.html -%}
32
20
  {%- endif -%}
@@ -1,19 +1,15 @@
1
1
  {%- include snippets/get-sources.html -%}
2
2
  {%- assign _sources = __return -%}
3
3
 
4
- {%- assign __target = site.data.variables.default.mathjax_autoNumber -%}
5
- {%- assign __source = site.mathjax_autoNumber -%}
6
- {%- include snippets/assign.html -%}
7
-
8
- {%- assign __target = __return -%}
9
- {%- assign __source = page.mathjax_autoNumber -%}
10
- {%- include snippets/assign.html -%}
4
+ {%- include snippets/assign.html target=site.data.variables.default.mathjax_autoNumber source0=site.mathjax_autoNumber -%}
5
+ {%- include snippets/assign.html target=__return source0=page.mathjax_autoNumber -%}
6
+ {%- assign _mathjax_autoNumber = __return -%}
11
7
 
12
8
  <script type="text/x-mathjax-config">
13
9
  var _config = { tex2jax: {
14
10
  inlineMath: [['$','$'], ['\\(','\\)']]
15
11
  }};
16
- {%- if __return == true -%}
12
+ {%- if _mathjax_autoNumber == true -%}
17
13
  _config.TeX = { equationNumbers: { autoNumber: "all" } };
18
14
  {%- endif -%}
19
15
  MathJax.Hub.Config(_config);