databook-theme 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.txt +21 -21
- data/README.MD +1 -1
- data/_includes/blog/blog.liquid +50 -50
- data/_includes/blog/features.liquid +36 -36
- data/_includes/blog/full.liquid +3 -3
- data/_includes/blog/list.liquid +41 -41
- data/_includes/blog/post.liquid +6 -6
- data/_includes/components/analytics.google.liquid +11 -11
- data/_includes/components/analytics.liquid +11 -11
- data/_includes/components/comments.disqus.liquid +17 -17
- data/_includes/components/comments.gitalk.liquid +22 -22
- data/_includes/components/comments.liquid +13 -13
- data/_includes/components/navmenu.items.liquid +51 -51
- data/_includes/components/navmenu.liquid +4 -4
- data/_includes/components/pagination.liquid +83 -83
- data/_includes/components/prevnext.liquid +1 -1
- data/_includes/components/search.baidu.liquid +7 -7
- data/_includes/components/search.bing.liquid +6 -6
- data/_includes/components/search.google.liquid +6 -6
- data/_includes/components/search.liquid +21 -21
- data/_includes/components/social_button.liquid +9 -9
- data/_includes/components/social_link.liquid +14 -14
- data/_includes/components/title.liquid +41 -41
- data/_includes/components/toc.liquid +28 -28
- data/_includes/custom/analytics.liquid +3 -3
- data/_includes/custom/blog.liquid +3 -3
- data/_includes/custom/body.liquid +3 -3
- data/_includes/custom/comments.liquid +3 -3
- data/_includes/custom/favicon.liquid +11 -0
- data/_includes/custom/footer.liquid +3 -3
- data/_includes/custom/head.liquid +3 -3
- data/_includes/custom/katex.liquid +15 -15
- data/_includes/custom/mathjax.liquid +19 -19
- data/_includes/custom/search.liquid +3 -3
- data/_includes/extensions/toc.liquid +182 -182
- data/_includes/functions/get_config.liquid +11 -11
- data/_includes/functions/get_config_data.liquid +23 -23
- data/_includes/functions/get_icon.liquid +5 -5
- data/_includes/functions/get_page_meta.liquid +74 -60
- data/_includes/functions/get_page_thumbnail.liquid +22 -23
- data/_includes/functions/get_page_title.liquid +7 -7
- data/_includes/functions/get_recent_posts.liquid +17 -17
- data/_includes/functions/get_taxonomy_link.liquid +9 -9
- data/_includes/head/head.liquid +11 -12
- data/_includes/head/meta.liquid +50 -41
- data/_includes/head/requirements.liquid +87 -87
- data/_includes/head/styles.liquid +10 -10
- data/_includes/js/codes.js +116 -116
- data/_includes/js/scrollspy.js +16 -16
- data/_includes/layout/article.liquid +74 -71
- data/_includes/layout/footer.liquid +53 -53
- data/_includes/layout/header.liquid +31 -31
- data/_includes/layout/hero.liquid +29 -29
- data/_includes/layout/page.liquid +33 -33
- data/_includes/layout/pagehead.liquid +17 -17
- data/_includes/layout/sidebar.liquid +178 -178
- data/_includes/localize +29 -29
- data/_includes/notice +6 -6
- data/_includes/version +1 -1
- data/_layouts/article.liquid +10 -10
- data/_layouts/default.liquid +132 -131
- data/_layouts/home.liquid +20 -20
- data/_layouts/page.liquid +9 -9
- data/_layouts/post.liquid +9 -9
- data/_layouts/system.liquid +35 -35
- data/_layouts/taxonomy.liquid +67 -67
- data/_sass/_databook.scss +42 -42
- data/_sass/_debug.scss +7 -7
- data/_sass/_variables.scss +24 -24
- data/_sass/base/_mixins.scss +32 -32
- data/_sass/base/_normalize.scss +45 -45
- data/_sass/base/_responsive.scss +28 -28
- data/_sass/components/_archive.scss +49 -49
- data/_sass/components/_blog.scss +249 -249
- data/_sass/components/_forms.scss +30 -30
- data/_sass/components/_hero.scss +70 -70
- data/_sass/components/_misc.scss +3 -3
- data/_sass/components/_notice.scss +27 -27
- data/_sass/components/_notification.scss +10 -10
- data/_sass/components/_post.scss +19 -19
- data/_sass/components/_sidebar.scss +303 -303
- data/_sass/components/_tabs.scss +67 -67
- data/_sass/components/_text.scss +27 -27
- data/_sass/components/_toc.scss +50 -50
- data/_sass/layout/_article.scss +211 -211
- data/_sass/layout/_body.scss +26 -26
- data/_sass/layout/_footer.scss +75 -75
- data/_sass/layout/_header.scss +124 -124
- data/_sass/layout/_main.scss +8 -8
- data/_sass/layout/_misc.scss +7 -7
- data/_sass/layout/_navbar.scss +323 -323
- data/_sass/layout/_sidebar.scss +115 -115
- data/_sass/layout/_wrapper.scss +7 -7
- data/_sass/theme/_scheme.scss +112 -112
- data/_sass/typography/_article.scss +49 -49
- data/_sass/typography/_doc.scss +104 -104
- data/_sass/typography/_highlight.scss +208 -208
- data/_sass/typography/_markdown.scss +18 -18
- data/_sass/typography/_table.scss +119 -119
- data/_sass/typography/_typography.scss +103 -108
- data/_sass/utilities/_thinscrollbar.scss +35 -35
- data/assets/databook/css/databook.scss +6 -6
- data/assets/databook/js/databook.js +8 -8
- data/assets/databook/js/search.js +47 -47
- data/assets/databook/version.json +9 -9
- data/assets/search.json +30 -30
- metadata +8 -8
- data/_includes/head/opengraph.liquid +0 -1
@@ -1,83 +1,83 @@
|
|
1
|
-
{%- assign page_number = include.page_number | default: paginator.page | default: 1 -%}
|
2
|
-
{%- assign total_page_number = site.posts.size | times: 1.0 | divided_by: site.paginate | ceil -%}
|
3
|
-
|
4
|
-
{%- if page_number > 1 -%}
|
5
|
-
{%- assign first_page_path = site.paginate_first_page_path | default: "/" | relative_url -%}
|
6
|
-
{%- if page_number == 2 -%}
|
7
|
-
{%- assign previous_page_path = first_page_path -%}
|
8
|
-
{%- else -%}
|
9
|
-
{%- assign previous_page = page_number | minus: 1 -%}
|
10
|
-
{%- assign previous_page_path = site.paginate_path | relative_url | replace: ":num", previous_page -%}
|
11
|
-
{%- endif -%}
|
12
|
-
{%- endif -%}
|
13
|
-
|
14
|
-
{%- if page_number < total_page_number -%}
|
15
|
-
{%- assign last_page_path = site.paginate_path | relative_url | replace: ":num", total_page_number -%}
|
16
|
-
{%- assign next_page = page_number | plus: 1 -%}
|
17
|
-
{%- assign next_page_path = site.paginate_path | relative_url | replace: ":num", next_page -%}
|
18
|
-
{%- endif -%}
|
19
|
-
|
20
|
-
{%- capture page_text -%}
|
21
|
-
{%- include localize key="title-postlist" default="Page :param1" param1=page_number -%}
|
22
|
-
{%- endcapture -%}
|
23
|
-
|
24
|
-
<div class="c-pagination" data-text="{{- page_text -}}">
|
25
|
-
{%- if first_page_path -%}
|
26
|
-
<a class="c-pagination__item" href="{{- first_page_path -}}">
|
27
|
-
<i class="fas fa-angle-double-left"></i>
|
28
|
-
</a>
|
29
|
-
{%- else -%}
|
30
|
-
<div class="c-pagination__item">
|
31
|
-
<i class="fas fa-angle-double-left"></i>
|
32
|
-
</div>
|
33
|
-
{%- endif -%}
|
34
|
-
|
35
|
-
{%- if previous_page_path -%}
|
36
|
-
<a class="c-pagination__item" href="{{- previous_page_path -}}">
|
37
|
-
<i class="fas fa-angle-left"></i>
|
38
|
-
</a>
|
39
|
-
{%- else -%}
|
40
|
-
<div class="c-pagination__item">
|
41
|
-
<i class="fas fa-angle-left"></i>
|
42
|
-
</div>
|
43
|
-
{%- endif -%}
|
44
|
-
|
45
|
-
{%- for pi in (1..total_page_number) -%}
|
46
|
-
{%- if pi == page_number -%}
|
47
|
-
<div class="c-pagination__item">
|
48
|
-
{{- pi -}}
|
49
|
-
</div>
|
50
|
-
{%- elsif pi == 1 -%}
|
51
|
-
<a class="c-pagination__item" href="{{- first_page_path -}}">
|
52
|
-
{{- pi -}}
|
53
|
-
</a>
|
54
|
-
{%- else -%}
|
55
|
-
<a class="c-pagination__item" href="{{- site.paginate_path | relative_url | replace: ':num', pi -}}">
|
56
|
-
{{- pi -}}
|
57
|
-
</a>
|
58
|
-
{%- endif -%}
|
59
|
-
{%- endfor -%}
|
60
|
-
|
61
|
-
{%- if next_page_path -%}
|
62
|
-
<a class="c-pagination__item" href="{{- next_page_path -}}">
|
63
|
-
<i class="fas fa-angle-right"></i>
|
64
|
-
</a>
|
65
|
-
{%- else -%}
|
66
|
-
<div class="c-pagination__item">
|
67
|
-
<i class="fas fa-angle-right"></i>
|
68
|
-
</div>
|
69
|
-
{%- endif -%}
|
70
|
-
|
71
|
-
{%- if last_page_path -%}
|
72
|
-
<a class="c-pagination__item" href="{{- last_page_path -}}">
|
73
|
-
<i class="fas fa-angle-double-right"></i>
|
74
|
-
</a>
|
75
|
-
{%- else -%}
|
76
|
-
<div class="c-pagination__item">
|
77
|
-
<i class="fas fa-angle-double-right"></i>
|
78
|
-
</div>
|
79
|
-
{%- endif -%}
|
80
|
-
|
81
|
-
</div>
|
82
|
-
|
83
|
-
{%- assign return = total_page_number -%}
|
1
|
+
{%- assign page_number = include.page_number | default: paginator.page | default: 1 -%}
|
2
|
+
{%- assign total_page_number = site.posts.size | times: 1.0 | divided_by: site.paginate | ceil -%}
|
3
|
+
|
4
|
+
{%- if page_number > 1 -%}
|
5
|
+
{%- assign first_page_path = site.paginate_first_page_path | default: "/" | relative_url -%}
|
6
|
+
{%- if page_number == 2 -%}
|
7
|
+
{%- assign previous_page_path = first_page_path -%}
|
8
|
+
{%- else -%}
|
9
|
+
{%- assign previous_page = page_number | minus: 1 -%}
|
10
|
+
{%- assign previous_page_path = site.paginate_path | relative_url | replace: ":num", previous_page -%}
|
11
|
+
{%- endif -%}
|
12
|
+
{%- endif -%}
|
13
|
+
|
14
|
+
{%- if page_number < total_page_number -%}
|
15
|
+
{%- assign last_page_path = site.paginate_path | relative_url | replace: ":num", total_page_number -%}
|
16
|
+
{%- assign next_page = page_number | plus: 1 -%}
|
17
|
+
{%- assign next_page_path = site.paginate_path | relative_url | replace: ":num", next_page -%}
|
18
|
+
{%- endif -%}
|
19
|
+
|
20
|
+
{%- capture page_text -%}
|
21
|
+
{%- include localize key="title-postlist" default="Page :param1" param1=page_number -%}
|
22
|
+
{%- endcapture -%}
|
23
|
+
|
24
|
+
<div class="c-pagination" data-text="{{- page_text -}}">
|
25
|
+
{%- if first_page_path -%}
|
26
|
+
<a class="c-pagination__item" href="{{- first_page_path -}}">
|
27
|
+
<i class="fas fa-angle-double-left"></i>
|
28
|
+
</a>
|
29
|
+
{%- else -%}
|
30
|
+
<div class="c-pagination__item">
|
31
|
+
<i class="fas fa-angle-double-left"></i>
|
32
|
+
</div>
|
33
|
+
{%- endif -%}
|
34
|
+
|
35
|
+
{%- if previous_page_path -%}
|
36
|
+
<a class="c-pagination__item" href="{{- previous_page_path -}}">
|
37
|
+
<i class="fas fa-angle-left"></i>
|
38
|
+
</a>
|
39
|
+
{%- else -%}
|
40
|
+
<div class="c-pagination__item">
|
41
|
+
<i class="fas fa-angle-left"></i>
|
42
|
+
</div>
|
43
|
+
{%- endif -%}
|
44
|
+
|
45
|
+
{%- for pi in (1..total_page_number) -%}
|
46
|
+
{%- if pi == page_number -%}
|
47
|
+
<div class="c-pagination__item">
|
48
|
+
{{- pi -}}
|
49
|
+
</div>
|
50
|
+
{%- elsif pi == 1 -%}
|
51
|
+
<a class="c-pagination__item" href="{{- first_page_path -}}">
|
52
|
+
{{- pi -}}
|
53
|
+
</a>
|
54
|
+
{%- else -%}
|
55
|
+
<a class="c-pagination__item" href="{{- site.paginate_path | relative_url | replace: ':num', pi -}}">
|
56
|
+
{{- pi -}}
|
57
|
+
</a>
|
58
|
+
{%- endif -%}
|
59
|
+
{%- endfor -%}
|
60
|
+
|
61
|
+
{%- if next_page_path -%}
|
62
|
+
<a class="c-pagination__item" href="{{- next_page_path -}}">
|
63
|
+
<i class="fas fa-angle-right"></i>
|
64
|
+
</a>
|
65
|
+
{%- else -%}
|
66
|
+
<div class="c-pagination__item">
|
67
|
+
<i class="fas fa-angle-right"></i>
|
68
|
+
</div>
|
69
|
+
{%- endif -%}
|
70
|
+
|
71
|
+
{%- if last_page_path -%}
|
72
|
+
<a class="c-pagination__item" href="{{- last_page_path -}}">
|
73
|
+
<i class="fas fa-angle-double-right"></i>
|
74
|
+
</a>
|
75
|
+
{%- else -%}
|
76
|
+
<div class="c-pagination__item">
|
77
|
+
<i class="fas fa-angle-double-right"></i>
|
78
|
+
</div>
|
79
|
+
{%- endif -%}
|
80
|
+
|
81
|
+
</div>
|
82
|
+
|
83
|
+
{%- assign return = total_page_number -%}
|
@@ -1 +1 @@
|
|
1
|
-
{%- comment -%}todo{%- endcomment -%}
|
1
|
+
{%- comment -%}todo{%- endcomment -%}
|
@@ -1,7 +1,7 @@
|
|
1
|
-
<form class="c-search" action="https://www.baidu.com/s" onsubmit="this.si.value=document.domain;" target="_blank">
|
2
|
-
<input id="db-searchbox" class="c-search__textbox" type="textbox" name="wd" placeholder="baidu.com" />
|
3
|
-
<input type="hidden" name="si" value="" />
|
4
|
-
<input type="hidden" name="ct" value="2097152" />
|
5
|
-
<button class="c-search__expand c-navbutton" type="button"><label for="db-searchbox"><i class="fas fa-search"></i></label></button>
|
6
|
-
<button class="c-search__go c-navbutton" type="submit"><i class="fas fa-angle-right"></i></button>
|
7
|
-
</form>
|
1
|
+
<form class="c-search" action="https://www.baidu.com/s" onsubmit="this.si.value=document.domain;" target="_blank">
|
2
|
+
<input id="db-searchbox" class="c-search__textbox" type="textbox" name="wd" placeholder="baidu.com" />
|
3
|
+
<input type="hidden" name="si" value="" />
|
4
|
+
<input type="hidden" name="ct" value="2097152" />
|
5
|
+
<button class="c-search__expand c-navbutton" type="button"><label for="db-searchbox"><i class="fas fa-search"></i></label></button>
|
6
|
+
<button class="c-search__go c-navbutton" type="submit"><i class="fas fa-angle-right"></i></button>
|
7
|
+
</form>
|
@@ -1,6 +1,6 @@
|
|
1
|
-
<form class="c-search" action="https://www.bing.com/search" target="_blank" onsubmit="this.q1.value=`site:${document.domain}`;">
|
2
|
-
<input id="db-searchbox" class="c-search__textbox" type="textbox" name="q" placeholder="bing.com" />
|
3
|
-
<input type="hidden" name="q1" value="" />
|
4
|
-
<button class="c-search__expand c-navbutton" type="button"><label for="db-searchbox"><i class="fas fa-search"></i></label></button>
|
5
|
-
<button class="c-search__go c-navbutton" type="submit"><i class="fas fa-angle-right"></i></button>
|
6
|
-
</form>
|
1
|
+
<form class="c-search" action="https://www.bing.com/search" target="_blank" onsubmit="this.q1.value=`site:${document.domain}`;">
|
2
|
+
<input id="db-searchbox" class="c-search__textbox" type="textbox" name="q" placeholder="bing.com" />
|
3
|
+
<input type="hidden" name="q1" value="" />
|
4
|
+
<button class="c-search__expand c-navbutton" type="button"><label for="db-searchbox"><i class="fas fa-search"></i></label></button>
|
5
|
+
<button class="c-search__go c-navbutton" type="submit"><i class="fas fa-angle-right"></i></button>
|
6
|
+
</form>
|
@@ -1,6 +1,6 @@
|
|
1
|
-
<form class="c-search" action="https://www.google.com/search" target="_blank" onsubmit="this.as_sitesearch.value=document.domain;">
|
2
|
-
<input id="db-searchbox" class="c-search__textbox" type="textbox" name="q" placeholder="google.com" />
|
3
|
-
<input type="hidden" name="as_sitesearch" value="" />
|
4
|
-
<button class="c-search__expand c-navbutton" type="button"><label for="db-searchbox"><i class="fas fa-search"></i></label></button>
|
5
|
-
<button class="c-search__go c-navbutton" type="submit"><i class="fas fa-angle-right"></i></button>
|
6
|
-
</form>
|
1
|
+
<form class="c-search" action="https://www.google.com/search" target="_blank" onsubmit="this.as_sitesearch.value=document.domain;">
|
2
|
+
<input id="db-searchbox" class="c-search__textbox" type="textbox" name="q" placeholder="google.com" />
|
3
|
+
<input type="hidden" name="as_sitesearch" value="" />
|
4
|
+
<button class="c-search__expand c-navbutton" type="button"><label for="db-searchbox"><i class="fas fa-search"></i></label></button>
|
5
|
+
<button class="c-search__go c-navbutton" type="submit"><i class="fas fa-angle-right"></i></button>
|
6
|
+
</form>
|
@@ -1,21 +1,21 @@
|
|
1
|
-
{%- assign provider = site.search -%}
|
2
|
-
{%- if page.search == false -%}
|
3
|
-
{%- assign provider = false -%}
|
4
|
-
{%- endif -%}
|
5
|
-
|
6
|
-
{%- case provider -%}
|
7
|
-
{%- when true, "title", "content" -%}
|
8
|
-
<form class="c-search" action="/search">
|
9
|
-
<input id="db-searchbox" class="c-search__textbox" type="textbox" name="q" required />
|
10
|
-
<button class="c-search__expand c-navbutton" type="button"><label for="db-searchbox"><i class="fas fa-search"></i></label></button>
|
11
|
-
<button class="c-search__go c-navbutton" type="submit"><i class="fas fa-angle-right"></i></button>
|
12
|
-
</form>
|
13
|
-
{%- when "google" -%}
|
14
|
-
{%- include components/search.google.liquid -%}
|
15
|
-
{%- when "bing" -%}
|
16
|
-
{%- include components/search.bing.liquid -%}
|
17
|
-
{%- when "baidu" -%}
|
18
|
-
{%- include components/search.baidu.liquid -%}
|
19
|
-
{%- when "custom" -%}
|
20
|
-
{%- include custom/search.liquid -%}
|
21
|
-
{%- endcase -%}
|
1
|
+
{%- assign provider = site.search -%}
|
2
|
+
{%- if page.search == false -%}
|
3
|
+
{%- assign provider = false -%}
|
4
|
+
{%- endif -%}
|
5
|
+
|
6
|
+
{%- case provider -%}
|
7
|
+
{%- when true, "title", "content" -%}
|
8
|
+
<form class="c-search" action="/search">
|
9
|
+
<input id="db-searchbox" class="c-search__textbox" type="textbox" name="q" required />
|
10
|
+
<button class="c-search__expand c-navbutton" type="button"><label for="db-searchbox"><i class="fas fa-search"></i></label></button>
|
11
|
+
<button class="c-search__go c-navbutton" type="submit"><i class="fas fa-angle-right"></i></button>
|
12
|
+
</form>
|
13
|
+
{%- when "google" -%}
|
14
|
+
{%- include components/search.google.liquid -%}
|
15
|
+
{%- when "bing" -%}
|
16
|
+
{%- include components/search.bing.liquid -%}
|
17
|
+
{%- when "baidu" -%}
|
18
|
+
{%- include components/search.baidu.liquid -%}
|
19
|
+
{%- when "custom" -%}
|
20
|
+
{%- include custom/search.liquid -%}
|
21
|
+
{%- endcase -%}
|
@@ -1,9 +1,9 @@
|
|
1
|
-
<div class="c-sidebuttons__item" title="{{- include.text -}}">
|
2
|
-
<a class="c-sidebuttons__link" href="{{- include.url -}}">
|
3
|
-
{%- if include.icon -%}
|
4
|
-
{%- include functions/get_icon.liquid icon=include.icon -%}
|
5
|
-
{%- else -%}
|
6
|
-
<div class="c-texticon">{{- include.text -}}</div>
|
7
|
-
{%- endif -%}
|
8
|
-
</a>
|
9
|
-
</div>
|
1
|
+
<div class="c-sidebuttons__item" title="{{- include.text -}}">
|
2
|
+
<a class="c-sidebuttons__link" href="{{- include.url -}}">
|
3
|
+
{%- if include.icon -%}
|
4
|
+
{%- include functions/get_icon.liquid icon=include.icon -%}
|
5
|
+
{%- else -%}
|
6
|
+
<div class="c-texticon">{{- include.text -}}</div>
|
7
|
+
{%- endif -%}
|
8
|
+
</a>
|
9
|
+
</div>
|
@@ -1,14 +1,14 @@
|
|
1
|
-
<tr class="c-sociallist__item">
|
2
|
-
<td class="c-sociallist__icon">
|
3
|
-
{%- if include.icon -%}
|
4
|
-
{%- include functions/get_icon.liquid icon=include.icon -%}
|
5
|
-
{%- endif -%}
|
6
|
-
</td>
|
7
|
-
<td class="c-sociallist__text">
|
8
|
-
{%- if include.url -%}
|
9
|
-
<a href="{{- include.url | relative_url -}}" target="_blank">{{- include.text -}}</a>
|
10
|
-
{%- else -%}
|
11
|
-
{{- include.text -}}
|
12
|
-
{%- endif -%}
|
13
|
-
</td>
|
14
|
-
</tr>
|
1
|
+
<tr class="c-sociallist__item">
|
2
|
+
<td class="c-sociallist__icon">
|
3
|
+
{%- if include.icon -%}
|
4
|
+
{%- include functions/get_icon.liquid icon=include.icon -%}
|
5
|
+
{%- endif -%}
|
6
|
+
</td>
|
7
|
+
<td class="c-sociallist__text">
|
8
|
+
{%- if include.url -%}
|
9
|
+
<a href="{{- include.url | relative_url -}}" target="_blank">{{- include.text -}}</a>
|
10
|
+
{%- else -%}
|
11
|
+
{{- include.text -}}
|
12
|
+
{%- endif -%}
|
13
|
+
</td>
|
14
|
+
</tr>
|
@@ -1,41 +1,41 @@
|
|
1
|
-
<div class="c-title">
|
2
|
-
|
3
|
-
{%- if include.breadcrumb -%}
|
4
|
-
<div class="c-title__breadcrumb">
|
5
|
-
{{- include.breadcrumb -}}
|
6
|
-
</div>
|
7
|
-
{%- endif -%}
|
8
|
-
|
9
|
-
<h1 class="c-title__title">
|
10
|
-
<a href="{{ include.url | relative_url }}">
|
11
|
-
{{- include.title -}}
|
12
|
-
</a>
|
13
|
-
</h1>
|
14
|
-
|
15
|
-
{%- if include.right -%}
|
16
|
-
<div class="c-title__right">
|
17
|
-
{{- include.right -}}
|
18
|
-
</div>
|
19
|
-
{%- endif -%}
|
20
|
-
|
21
|
-
{%- if include.tagline -%}
|
22
|
-
<div class="c-title__tagline">
|
23
|
-
{{- include.tagline -}}
|
24
|
-
</div>
|
25
|
-
{%- endif -%}
|
26
|
-
|
27
|
-
<hr class="c-title__divider" />
|
28
|
-
|
29
|
-
{%- if include.meta -%}
|
30
|
-
<div class="c-title__meta">
|
31
|
-
{{- include.meta -}}
|
32
|
-
</div>
|
33
|
-
{%- endif -%}
|
34
|
-
|
35
|
-
{%- if include.indicator -%}
|
36
|
-
<div class="c-title__indicator">
|
37
|
-
{{- include.indicator -}}
|
38
|
-
</div>
|
39
|
-
{%- endif -%}
|
40
|
-
|
41
|
-
</div>
|
1
|
+
<div class="c-title">
|
2
|
+
|
3
|
+
{%- if include.breadcrumb -%}
|
4
|
+
<div class="c-title__breadcrumb">
|
5
|
+
{{- include.breadcrumb -}}
|
6
|
+
</div>
|
7
|
+
{%- endif -%}
|
8
|
+
|
9
|
+
<h1 class="c-title__title">
|
10
|
+
<a href="{{ include.url | relative_url }}">
|
11
|
+
{{- include.title -}}
|
12
|
+
</a>
|
13
|
+
</h1>
|
14
|
+
|
15
|
+
{%- if include.right -%}
|
16
|
+
<div class="c-title__right">
|
17
|
+
{{- include.right -}}
|
18
|
+
</div>
|
19
|
+
{%- endif -%}
|
20
|
+
|
21
|
+
{%- if include.tagline -%}
|
22
|
+
<div class="c-title__tagline">
|
23
|
+
{{- include.tagline -}}
|
24
|
+
</div>
|
25
|
+
{%- endif -%}
|
26
|
+
|
27
|
+
<hr class="c-title__divider" />
|
28
|
+
|
29
|
+
{%- if include.meta -%}
|
30
|
+
<div class="c-title__meta">
|
31
|
+
{{- include.meta -}}
|
32
|
+
</div>
|
33
|
+
{%- endif -%}
|
34
|
+
|
35
|
+
{%- if include.indicator -%}
|
36
|
+
<div class="c-title__indicator">
|
37
|
+
{{- include.indicator -}}
|
38
|
+
</div>
|
39
|
+
{%- endif -%}
|
40
|
+
|
41
|
+
</div>
|
@@ -1,28 +1,28 @@
|
|
1
|
-
{%- include functions/get_config.liquid key="toc" -%}
|
2
|
-
{%- assign use_toc = return | default: false -%}
|
3
|
-
{%- assign toc_level = site.toc_level | default: 4 -%}
|
4
|
-
|
5
|
-
{%- if use_toc -%}
|
6
|
-
{%- assign has_header = false -%}
|
7
|
-
{%- for i in (1..toc_level) -%}
|
8
|
-
{%- assign header_tag = "<h" | append: i -%}
|
9
|
-
{%- if include.html contains header_tag -%}
|
10
|
-
{%- assign has_header = true -%}
|
11
|
-
{%- endif -%}
|
12
|
-
{%- endfor -%}
|
13
|
-
{%- if has_header -%}
|
14
|
-
<div class="c-toc">
|
15
|
-
<div class="c-toc__header"><i class="fas fa-stream"></i> {%- include localize key="toc" default="Contents" -%}</div>
|
16
|
-
<div class="c-toc__content">
|
17
|
-
{%- include extensions/toc.liquid
|
18
|
-
html=include.html
|
19
|
-
ordered=true
|
20
|
-
item_class="c-toc__item"
|
21
|
-
anchor_class="c-toc__link"
|
22
|
-
h_min=1
|
23
|
-
h_max=toc_level
|
24
|
-
-%}
|
25
|
-
</div>
|
26
|
-
</div>
|
27
|
-
{%- endif -%}
|
28
|
-
{%- endif -%}
|
1
|
+
{%- include functions/get_config.liquid key="toc" -%}
|
2
|
+
{%- assign use_toc = return | default: false -%}
|
3
|
+
{%- assign toc_level = site.toc_level | default: 4 -%}
|
4
|
+
|
5
|
+
{%- if use_toc -%}
|
6
|
+
{%- assign has_header = false -%}
|
7
|
+
{%- for i in (1..toc_level) -%}
|
8
|
+
{%- assign header_tag = "<h" | append: i -%}
|
9
|
+
{%- if include.html contains header_tag -%}
|
10
|
+
{%- assign has_header = true -%}
|
11
|
+
{%- endif -%}
|
12
|
+
{%- endfor -%}
|
13
|
+
{%- if has_header -%}
|
14
|
+
<div class="c-toc">
|
15
|
+
<div class="c-toc__header"><i class="fas fa-stream"></i> {%- include localize key="toc" default="Contents" -%}</div>
|
16
|
+
<div class="c-toc__content">
|
17
|
+
{%- include extensions/toc.liquid
|
18
|
+
html=include.html
|
19
|
+
ordered=true
|
20
|
+
item_class="c-toc__item"
|
21
|
+
anchor_class="c-toc__link"
|
22
|
+
h_min=1
|
23
|
+
h_max=toc_level
|
24
|
+
-%}
|
25
|
+
</div>
|
26
|
+
</div>
|
27
|
+
{%- endif -%}
|
28
|
+
{%- endif -%}
|
@@ -1,3 +1,3 @@
|
|
1
|
-
{%- comment -%}
|
2
|
-
Put your custom code here.
|
3
|
-
{%- endcomment -%}
|
1
|
+
{%- comment -%}
|
2
|
+
Put your custom code here.
|
3
|
+
{%- endcomment -%}
|
@@ -1,3 +1,3 @@
|
|
1
|
-
{%- comment -%}
|
2
|
-
Put your custom code here.
|
3
|
-
{%- endcomment -%}
|
1
|
+
{%- comment -%}
|
2
|
+
Put your custom code here.
|
3
|
+
{%- endcomment -%}
|
@@ -1,3 +1,3 @@
|
|
1
|
-
{%- comment -%}
|
2
|
-
Put your custom code here.
|
3
|
-
{%- endcomment -%}
|
1
|
+
{%- comment -%}
|
2
|
+
Put your custom code here.
|
3
|
+
{%- endcomment -%}
|
@@ -1,3 +1,3 @@
|
|
1
|
-
{%- comment -%}
|
2
|
-
Put your custom code here.
|
3
|
-
{%- endcomment -%}
|
1
|
+
{%- comment -%}
|
2
|
+
Put your custom code here.
|
3
|
+
{%- endcomment -%}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
{%- assign favicon = site.favicon -%}
|
2
|
+
{%- unless favicon -%}
|
3
|
+
{% assign has_favicon = site.static_files | where_exp: "file", "file.path == '/favicon.ico'" | size %}
|
4
|
+
{%- if has_favicon > 0 -%}
|
5
|
+
{%- assign favicon = "/favicon.ico" -%}
|
6
|
+
{%- else -%}
|
7
|
+
{%- assign favicon = "/assets/favicon.ico" -%}
|
8
|
+
{%- endif -%}
|
9
|
+
{%- endunless -%}
|
10
|
+
|
11
|
+
<link rel="icon" type="image/x-icon" href="{{- favicon | relative_url -}}">
|
@@ -1,3 +1,3 @@
|
|
1
|
-
{%- comment -%}
|
2
|
-
Put your custom code here.
|
3
|
-
{%- endcomment -%}
|
1
|
+
{%- comment -%}
|
2
|
+
Put your custom code here.
|
3
|
+
{%- endcomment -%}
|
@@ -1,3 +1,3 @@
|
|
1
|
-
{%- comment -%}
|
2
|
-
Put your custom code here.
|
3
|
-
{%- endcomment -%}
|
1
|
+
{%- comment -%}
|
2
|
+
Put your custom code here.
|
3
|
+
{%- endcomment -%}
|
@@ -1,15 +1,15 @@
|
|
1
|
-
<script>
|
2
|
-
window.addEventListener("load", function () {
|
3
|
-
renderMathInElement(document.body, {
|
4
|
-
delimiters: [
|
5
|
-
{ left: '\\(', right: '\\)', display: false }
|
6
|
-
],
|
7
|
-
throwOnError: false
|
8
|
-
});
|
9
|
-
[...document.querySelectorAll('p')]
|
10
|
-
.filter(p => p.childElementCount == 0 && p.textContent.startsWith('[') && p.textContent.endsWith(']'))
|
11
|
-
.forEach(p => katex.render(p.textContent.replace(/^\[(.+)\]/, '$1'), p, {
|
12
|
-
displayMode: true
|
13
|
-
}));
|
14
|
-
});
|
15
|
-
</script>
|
1
|
+
<script>
|
2
|
+
window.addEventListener("load", function () {
|
3
|
+
renderMathInElement(document.body, {
|
4
|
+
delimiters: [
|
5
|
+
{ left: '\\(', right: '\\)', display: false }
|
6
|
+
],
|
7
|
+
throwOnError: false
|
8
|
+
});
|
9
|
+
[...document.querySelectorAll('p')]
|
10
|
+
.filter(p => p.childElementCount == 0 && p.textContent.startsWith('[') && p.textContent.endsWith(']'))
|
11
|
+
.forEach(p => katex.render(p.textContent.replace(/^\[(.+)\]/, '$1'), p, {
|
12
|
+
displayMode: true
|
13
|
+
}));
|
14
|
+
});
|
15
|
+
</script>
|
@@ -1,19 +1,19 @@
|
|
1
|
-
<script>
|
2
|
-
window.MathJax = {
|
3
|
-
tex: {
|
4
|
-
inlineMath: [
|
5
|
-
['\\(', '\\)'],
|
6
|
-
],
|
7
|
-
},
|
8
|
-
options: {
|
9
|
-
renderActions: {
|
10
|
-
addMenu: []
|
11
|
-
}
|
12
|
-
},
|
13
|
-
};
|
14
|
-
window.addEventListener("load", function() {
|
15
|
-
[...document.querySelectorAll('p')]
|
16
|
-
.filter(p => p.childElementCount == 0 && p.textContent.startsWith('[') && p.textContent.endsWith(']'))
|
17
|
-
.forEach(p => p.replaceChildren(MathJax.tex2chtml(p.textContent.replace(/^\[(.+)\]/, '$1'))));
|
18
|
-
});
|
19
|
-
</script>
|
1
|
+
<script>
|
2
|
+
window.MathJax = {
|
3
|
+
tex: {
|
4
|
+
inlineMath: [
|
5
|
+
['\\(', '\\)'],
|
6
|
+
],
|
7
|
+
},
|
8
|
+
options: {
|
9
|
+
renderActions: {
|
10
|
+
addMenu: []
|
11
|
+
}
|
12
|
+
},
|
13
|
+
};
|
14
|
+
window.addEventListener("load", function() {
|
15
|
+
[...document.querySelectorAll('p')]
|
16
|
+
.filter(p => p.childElementCount == 0 && p.textContent.startsWith('[') && p.textContent.endsWith(']'))
|
17
|
+
.forEach(p => p.replaceChildren(MathJax.tex2chtml(p.textContent.replace(/^\[(.+)\]/, '$1'))));
|
18
|
+
});
|
19
|
+
</script>
|
@@ -1,3 +1,3 @@
|
|
1
|
-
{%- comment -%}
|
2
|
-
Put your custom code here.
|
3
|
-
{%- endcomment -%}
|
1
|
+
{%- comment -%}
|
2
|
+
Put your custom code here.
|
3
|
+
{%- endcomment -%}
|