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.
- checksums.yaml +4 -4
- data/README.md +12 -3
- data/_data/locale.yml +4 -4
- data/_data/variables.yml +1 -0
- data/_includes/article-footer/author-profile.html +2 -7
- data/_includes/article-footer/license.html +1 -2
- data/_includes/article-info.html +6 -13
- data/_includes/article-section-navigator.html +54 -0
- data/_includes/{follow-me.html → author-links.html} +4 -10
- data/_includes/footer.html +20 -21
- data/_includes/head.html +10 -18
- data/_includes/header.html +5 -8
- data/_includes/markdown-enhancements.html +6 -18
- data/_includes/markdown-enhancements/mathjax.html +4 -8
- data/_includes/markdown-enhancements/mermaid.html +3 -1
- data/_includes/pageview.html +1 -3
- data/_includes/paginator.html +97 -0
- data/_includes/scripts/archieve.js +4 -4
- data/_includes/scripts/article-list.html +2 -4
- data/_includes/scripts/aside/affix.js +7 -9
- data/_includes/scripts/aside/toc.js +7 -9
- data/_includes/scripts/{sidebar.js → components/sidebar.js} +0 -0
- data/_includes/scripts/lib/affix.js +35 -26
- data/_includes/scripts/lib/toc.js +7 -5
- data/_includes/sidebar/toc.html +2 -4
- data/_includes/snippets/assign.html +7 -3
- data/_includes/snippets/get-nav-url.html +4 -4
- data/_includes/snippets/get-sources.html +1 -4
- data/_includes/snippets/locale-to-string.html +4 -4
- data/_includes/snippets/page-title.html +2 -4
- data/_includes/snippets/page-url.html +1 -2
- data/_includes/snippets/prepend-baseurl.html +1 -1
- data/_includes/tags.html +1 -1
- data/_layouts/article.html +8 -38
- data/_layouts/home.html +4 -108
- data/_layouts/landing.html +6 -12
- data/_layouts/page.html +16 -28
- data/_sass/additional/_alert.scss +4 -4
- data/_sass/animate/_fade-in-up.scss +10 -0
- data/_sass/common/_classes.scss +2 -1
- data/_sass/common/_reset.scss +0 -13
- data/_sass/common/_variables.scss +1 -1
- data/_sass/common/classes/_clickable.scss +1 -1
- data/_sass/common/classes/_link.scss +0 -62
- data/_sass/common/components/_menu.scss +21 -1
- data/_sass/common/components/_toc.scss +9 -10
- data/_sass/components/{_article.content.scss → _article-content.scss} +3 -5
- data/_sass/components/{_article.info.scss → _article-info.scss} +3 -3
- data/_sass/components/{_follow-me.scss → _author-links.scss} +1 -1
- data/_sass/components/_author-profile.scss +1 -1
- data/_sass/components/_footer.scss +14 -12
- data/_sass/components/_header.scss +2 -1
- data/_sass/components/_tags.scss +1 -0
- data/_sass/layout/_archive.scss +7 -4
- data/_sass/layout/_article.scss +1 -1
- data/_sass/layout/_base.scss +10 -0
- data/_sass/layout/_home.scss +3 -0
- data/_sass/layout/_page.scss +5 -1
- data/_sass/skins/_chocolate.scss +25 -14
- data/_sass/skins/_dark.scss +19 -8
- data/_sass/skins/_default.scss +16 -5
- data/_sass/skins/_forest.scss +17 -6
- data/_sass/skins/_ocean.scss +23 -12
- data/_sass/skins/_orange.scss +26 -14
- data/_sass/skins/highlight/_default.scss +0 -0
- data/_sass/skins/highlight/_tomorrow-night-blue.scss +2 -0
- data/_sass/skins/highlight/_tomorrow-night-bright.scss +2 -0
- data/_sass/skins/highlight/_tomorrow-night-eighties.scss +2 -0
- data/_sass/skins/highlight/_tomorrow-night.scss +2 -0
- data/_sass/skins/highlight/_tomorrow.scss +2 -0
- data/_sass/skins/highlight/tomorrow/_default.scss +10 -0
- data/_sass/skins/highlight/tomorrow/_highlight.scss +74 -0
- data/_sass/skins/highlight/tomorrow/_night-blue.scss +10 -0
- data/_sass/skins/highlight/tomorrow/_night-bright.scss +10 -0
- data/_sass/skins/highlight/tomorrow/_night-eighties.scss +10 -0
- data/_sass/skins/highlight/tomorrow/_night.scss +10 -0
- data/assets/css/main.scss +20 -9
- metadata +23 -9
- data/_includes/snippets/to-boolean.html +0 -7
- data/_sass/common/_highlighting.scss +0 -65
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3c2ae404cd71049373be71e77b4e6b49722cff9c
|
4
|
+
data.tar.gz: 671c1dc0fe48624aa30d2cea2495969e499ca8bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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-
|
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
|
-
| ![
|
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
|
-
| ![
|
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
data/_data/variables.yml
CHANGED
@@ -1,8 +1,4 @@
|
|
1
|
-
{%-
|
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
|
-
{%-
|
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
|
-
{%-
|
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-%}
|
data/_includes/article-info.html
CHANGED
@@ -4,15 +4,10 @@
|
|
4
4
|
{%- assign _cur_page = page -%}
|
5
5
|
{%- endif -%}
|
6
6
|
|
7
|
-
{%- assign
|
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
|
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
|
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
|
-
{%-
|
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
|
-
{%-
|
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
|
-
{%-
|
2
|
-
{%- assign _author = __author -%}
|
3
|
-
{%- else -%}
|
4
|
-
{%- assign _author = site.author -%}
|
5
|
-
{%- endif -%}
|
1
|
+
{%- assign _author = include.author -%}
|
6
2
|
|
7
|
-
<div class="
|
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
|
-
{%-
|
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
|
-
{%-
|
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' }}">
|
data/_includes/footer.html
CHANGED
@@ -2,34 +2,33 @@
|
|
2
2
|
<div class="footer js-page-footer">
|
3
3
|
<div class="main">
|
4
4
|
|
5
|
-
{%- assign
|
6
|
-
{%- if
|
7
|
-
{%- assign
|
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
|
9
|
+
{%- assign _site_author_itemtype = 'http://schema.org/Person' -%}
|
10
10
|
{%- endif -%}
|
11
11
|
|
12
|
-
<aside itemscope itemtype="{{
|
13
|
-
<meta itemprop="name" content="{{
|
14
|
-
{%- assign
|
15
|
-
{%- include snippets/get-nav-url.html -%}
|
16
|
-
{%- assign
|
17
|
-
<meta itemprop="url" content="{{
|
18
|
-
{%- if
|
19
|
-
<meta itemprop="description" content="{{
|
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
|
21
|
+
{%- include author-links.html author=_site_author -%}
|
22
22
|
</aside>
|
23
23
|
<footer class="site-info">
|
24
|
-
{%- assign
|
25
|
-
{%- include snippets/get-nav-url.html -%}
|
26
|
-
{%- assign
|
27
|
-
{%-
|
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
|
32
|
-
<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
|
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
|
-
{%-
|
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
|
-
{%-
|
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
|
-
{%-
|
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
|
-
{%-
|
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
|
-
{%-
|
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
|
-
{%-
|
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
|
-
{%-
|
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
|
-
{%-
|
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 -%}
|
data/_includes/header.html
CHANGED
@@ -2,8 +2,8 @@
|
|
2
2
|
<div class="main clearfix">
|
3
3
|
<div class="logo">
|
4
4
|
{%- include svg/logo.svg -%}
|
5
|
-
{%- assign
|
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
|
-
{%-
|
16
|
-
{%- include snippets/get-nav-url.html -%}
|
15
|
+
{%- include snippets/get-nav-url.html path=_item.url -%}
|
17
16
|
{%- assign _nav_url = __return -%}
|
18
|
-
{%-
|
19
|
-
{%- include snippets/get-nav-url.html -%}
|
17
|
+
{%- include snippets/get-nav-url.html path=page.url -%}
|
20
18
|
{%- assign _page_url = __return -%}
|
21
|
-
{%-
|
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
|
2
|
-
{%- assign
|
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
|
13
|
-
{%- assign
|
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
|
24
|
-
{%- assign
|
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
|
5
|
-
{%- assign
|
6
|
-
{%-
|
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
|
12
|
+
{%- if _mathjax_autoNumber == true -%}
|
17
13
|
_config.TeX = { equationNumbers: { autoNumber: "all" } };
|
18
14
|
{%- endif -%}
|
19
15
|
MathJax.Hub.Config(_config);
|