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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1c9f6087d88ca4722189e5633ad7276da10a515a7fcd9ccb81c2255d9d902888
|
4
|
+
data.tar.gz: 4bbac1cab595aba0600ddb5d04a883efcfee39bc2ec2b2b58332ae320077e4d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5619235de38435f49e9423057d5cfc3d12f897e8b0b8e05373c4988caf2855755cda51bf3f44a01c4d49abcdc78fe9b2a9664364802d3672691a351c8e5a54d
|
7
|
+
data.tar.gz: 5b6715a68dc4af267814721163cba876f562ce0d9f036d6611b6a681cc93c42ef09cb52f46b78c3c64748fc7d23f8a534037f5322d4b0bdfb9f950aca8839018
|
data/LICENSE.txt
CHANGED
@@ -1,21 +1,21 @@
|
|
1
|
-
MIT License
|
2
|
-
|
3
|
-
Copyright (c) 2022 Fortelle
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
7
|
-
in the Software without restriction, including without limitation the rights
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
10
|
-
furnished to do so, subject to the following conditions:
|
11
|
-
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
13
|
-
copies or substantial portions of the Software.
|
14
|
-
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
-
SOFTWARE.
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2022 Fortelle
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/README.MD
CHANGED
@@ -1 +1 @@
|
|
1
|
-
# DATABOOK-THEME
|
1
|
+
# DATABOOK-THEME
|
data/_includes/blog/blog.liquid
CHANGED
@@ -1,50 +1,50 @@
|
|
1
|
-
{%- assign sticky_posts = site.posts | sort: "date" | where_exp: "item", "item.sticky == true" -%}
|
2
|
-
{%- assign normal_posts = site.posts | sort: "date" | where_exp: "item", "item.sticky != true" -%}
|
3
|
-
{%- assign posts = sticky_posts | concat: normal_posts -%}
|
4
|
-
{%- assign page_number = include.page_number | default: 1 -%}
|
5
|
-
|
6
|
-
{%- if paginator -%}{%- comment -%}Obsolete{%- endcomment -%}
|
7
|
-
{%- assign page_number = paginator.page | default: 1 -%}
|
8
|
-
{%- assign post_begin = page_number | minus: 1 | times: paginator.per_page -%}
|
9
|
-
{%- assign post_count = paginator.posts.size -%}
|
10
|
-
{%- elsif site.plugins contains "jekyll-paginate" and site.paginate > 0 -%}
|
11
|
-
{%- assign post_begin = page_number | default: 1 | minus: 1 | times: site.paginate -%}
|
12
|
-
{%- assign post_count = site.paginate -%}
|
13
|
-
{%- else -%}
|
14
|
-
{%- assign post_begin = 0 -%}
|
15
|
-
{%- assign post_count = posts.size -%}
|
16
|
-
{%- endif -%}
|
17
|
-
|
18
|
-
{%- assign selected_posts = posts | slice: post_begin, post_count -%}
|
19
|
-
|
20
|
-
{%- capture pagination -%}
|
21
|
-
{%- if site.posts.size > site.paginate -%}
|
22
|
-
{%- include components/pagination.liquid page_number=page_number -%}
|
23
|
-
{%- endif -%}
|
24
|
-
{%- endcapture -%}
|
25
|
-
|
26
|
-
{%- assign blog_style = include.style | default: page.blog_style | default: layout.blog_style | default: site.blog_style | default: "full" -%}
|
27
|
-
|
28
|
-
{%- if blog_style == "full" -%}
|
29
|
-
{%- include blog/full.liquid posts=selected_posts -%}
|
30
|
-
{%- else -%}
|
31
|
-
{%- capture blog_content -%}
|
32
|
-
{%- case blog_style -%}
|
33
|
-
{%- when "list" -%}
|
34
|
-
{%- include blog/list.liquid posts=selected_posts -%}
|
35
|
-
{%- when "custom" -%}
|
36
|
-
{%- include custom/blog.liquid posts=selected_posts -%}
|
37
|
-
{%- endcase -%}
|
38
|
-
{%- endcapture -%}
|
39
|
-
{%- include layout/page.liquid
|
40
|
-
type = "blog"
|
41
|
-
content = blog_content
|
42
|
-
-%}
|
43
|
-
{%- endif -%}
|
44
|
-
|
45
|
-
{%- if pagination.size > 0 -%}
|
46
|
-
{%- include layout/page.liquid
|
47
|
-
type = "pagination"
|
48
|
-
content = pagination
|
49
|
-
-%}
|
50
|
-
{%- endif -%}
|
1
|
+
{%- assign sticky_posts = site.posts | sort: "date" | where_exp: "item", "item.sticky == true" -%}
|
2
|
+
{%- assign normal_posts = site.posts | sort: "date" | where_exp: "item", "item.sticky != true" -%}
|
3
|
+
{%- assign posts = sticky_posts | concat: normal_posts -%}
|
4
|
+
{%- assign page_number = include.page_number | default: 1 -%}
|
5
|
+
|
6
|
+
{%- if paginator -%}{%- comment -%}Obsolete{%- endcomment -%}
|
7
|
+
{%- assign page_number = paginator.page | default: 1 -%}
|
8
|
+
{%- assign post_begin = page_number | minus: 1 | times: paginator.per_page -%}
|
9
|
+
{%- assign post_count = paginator.posts.size -%}
|
10
|
+
{%- elsif site.plugins contains "jekyll-paginate" and site.paginate > 0 -%}
|
11
|
+
{%- assign post_begin = page_number | default: 1 | minus: 1 | times: site.paginate -%}
|
12
|
+
{%- assign post_count = site.paginate -%}
|
13
|
+
{%- else -%}
|
14
|
+
{%- assign post_begin = 0 -%}
|
15
|
+
{%- assign post_count = posts.size -%}
|
16
|
+
{%- endif -%}
|
17
|
+
|
18
|
+
{%- assign selected_posts = posts | slice: post_begin, post_count -%}
|
19
|
+
|
20
|
+
{%- capture pagination -%}
|
21
|
+
{%- if site.posts.size > site.paginate -%}
|
22
|
+
{%- include components/pagination.liquid page_number=page_number -%}
|
23
|
+
{%- endif -%}
|
24
|
+
{%- endcapture -%}
|
25
|
+
|
26
|
+
{%- assign blog_style = include.style | default: page.blog_style | default: layout.blog_style | default: site.blog_style | default: "full" -%}
|
27
|
+
|
28
|
+
{%- if blog_style == "full" -%}
|
29
|
+
{%- include blog/full.liquid posts=selected_posts -%}
|
30
|
+
{%- else -%}
|
31
|
+
{%- capture blog_content -%}
|
32
|
+
{%- case blog_style -%}
|
33
|
+
{%- when "list" -%}
|
34
|
+
{%- include blog/list.liquid posts=selected_posts -%}
|
35
|
+
{%- when "custom" -%}
|
36
|
+
{%- include custom/blog.liquid posts=selected_posts -%}
|
37
|
+
{%- endcase -%}
|
38
|
+
{%- endcapture -%}
|
39
|
+
{%- include layout/page.liquid
|
40
|
+
type = "blog"
|
41
|
+
content = blog_content
|
42
|
+
-%}
|
43
|
+
{%- endif -%}
|
44
|
+
|
45
|
+
{%- if pagination.size > 0 -%}
|
46
|
+
{%- include layout/page.liquid
|
47
|
+
type = "pagination"
|
48
|
+
content = pagination
|
49
|
+
-%}
|
50
|
+
{%- endif -%}
|
@@ -1,36 +1,36 @@
|
|
1
|
-
{%- assign count = include.count | default: 3 -%}
|
2
|
-
{%- assign posts = include.posts -%}
|
3
|
-
{%- unless posts -%}
|
4
|
-
{%- include functions/get_recent_posts.liquid count=count -%}
|
5
|
-
{%- assign posts = return -%}
|
6
|
-
{%- endunless -%}
|
7
|
-
|
8
|
-
<div class="c-blog-grid">
|
9
|
-
{%- for post in posts -%}
|
10
|
-
{%- assign html = post.content | markdownify -%}
|
11
|
-
{%- capture page_title -%}
|
12
|
-
{%- include functions/get_page_title.liquid page=post -%}
|
13
|
-
{%- endcapture -%}
|
14
|
-
{%- capture thumbnail -%}
|
15
|
-
{%- include functions/get_page_thumbnail.liquid page=post html=html autodetect=true -%}
|
16
|
-
{%- endcapture -%}
|
17
|
-
|
18
|
-
<a class="c-blog-grid__item" href="{{- post.url | relative_url -}}">
|
19
|
-
<div class="c-blog-grid__thumbnail">
|
20
|
-
{%- if thumbnail.size > 0 -%}
|
21
|
-
<img src="{{- thumbnail -}}" />
|
22
|
-
{%- endif -%}
|
23
|
-
</div>
|
24
|
-
<div class="c-blog-grid__body">
|
25
|
-
<div class="c-blog-grid__title">
|
26
|
-
{{- page_title -}}
|
27
|
-
</div>
|
28
|
-
<div class="c-blog-grid__content">
|
29
|
-
{{- html | strip_html | truncate: 200 -}}
|
30
|
-
</div>
|
31
|
-
</div>
|
32
|
-
<div class="c-blog-grid__footer">
|
33
|
-
</div>
|
34
|
-
</a>
|
35
|
-
{%- endfor -%}
|
36
|
-
</div>
|
1
|
+
{%- assign count = include.count | default: 3 -%}
|
2
|
+
{%- assign posts = include.posts -%}
|
3
|
+
{%- unless posts -%}
|
4
|
+
{%- include functions/get_recent_posts.liquid count=count -%}
|
5
|
+
{%- assign posts = return -%}
|
6
|
+
{%- endunless -%}
|
7
|
+
|
8
|
+
<div class="c-blog-grid">
|
9
|
+
{%- for post in posts -%}
|
10
|
+
{%- assign html = post.content | markdownify -%}
|
11
|
+
{%- capture page_title -%}
|
12
|
+
{%- include functions/get_page_title.liquid page=post -%}
|
13
|
+
{%- endcapture -%}
|
14
|
+
{%- capture thumbnail -%}
|
15
|
+
{%- include functions/get_page_thumbnail.liquid page=post html=html autodetect=true -%}
|
16
|
+
{%- endcapture -%}
|
17
|
+
|
18
|
+
<a class="c-blog-grid__item" href="{{- post.url | relative_url -}}">
|
19
|
+
<div class="c-blog-grid__thumbnail">
|
20
|
+
{%- if thumbnail.size > 0 -%}
|
21
|
+
<img src="{{- thumbnail -}}" />
|
22
|
+
{%- endif -%}
|
23
|
+
</div>
|
24
|
+
<div class="c-blog-grid__body">
|
25
|
+
<div class="c-blog-grid__title">
|
26
|
+
{{- page_title -}}
|
27
|
+
</div>
|
28
|
+
<div class="c-blog-grid__content">
|
29
|
+
{{- html | strip_html | truncate: 200 -}}
|
30
|
+
</div>
|
31
|
+
</div>
|
32
|
+
<div class="c-blog-grid__footer">
|
33
|
+
</div>
|
34
|
+
</a>
|
35
|
+
{%- endfor -%}
|
36
|
+
</div>
|
data/_includes/blog/full.liquid
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
{%- for post in include.posts -%}
|
2
|
-
{%- include blog/post.liquid page=post -%}
|
3
|
-
{%- endfor -%}
|
1
|
+
{%- for post in include.posts -%}
|
2
|
+
{%- include blog/post.liquid page=post -%}
|
3
|
+
{%- endfor -%}
|
data/_includes/blog/list.liquid
CHANGED
@@ -1,41 +1,41 @@
|
|
1
|
-
<div class="c-blog-list">
|
2
|
-
{%- for post in include.posts -%}
|
3
|
-
{%- assign html = post.content | markdownify -%}
|
4
|
-
{%- capture page_title -%}
|
5
|
-
{%- include functions/get_page_title.liquid page=post -%}
|
6
|
-
{%- endcapture -%}
|
7
|
-
{%- capture thumbnail -%}
|
8
|
-
{%- include functions/get_page_thumbnail.liquid page=post html=html autodetect=true -%}
|
9
|
-
{%- endcapture -%}
|
10
|
-
|
11
|
-
<div class="c-blog-list__item">
|
12
|
-
<div class="c-blog-list__title">
|
13
|
-
{%- if post.sticky -%}
|
14
|
-
<span class="c-blog-list__badge c-blog-list__badge--sticky">
|
15
|
-
<i class="fas fa-thumbtack fa-fw"></i>
|
16
|
-
{%- include localize key="tag_sticky" default="Sticky" -%}
|
17
|
-
</span>
|
18
|
-
{%- endif -%}
|
19
|
-
{%- if post.featured -%}
|
20
|
-
<span class="c-blog-list__badge c-blog-list__badge--featured">
|
21
|
-
<i class="fas fa-check fa-fw"></i>
|
22
|
-
{%- include localize key="tag_featured" default="Featured" -%}
|
23
|
-
</span>
|
24
|
-
{%- endif -%}
|
25
|
-
<a class="c-blog-list__link" href="{{- post.url | relative_url -}}">{{- page_title -}}</a>
|
26
|
-
</div>
|
27
|
-
<div class="c-blog-list__meta">
|
28
|
-
{%- include functions/get_page_meta.liquid page=post tags=true categories=true short_date=true details=false -%}
|
29
|
-
</div>
|
30
|
-
<div class="c-blog-list__content">
|
31
|
-
{{- html | strip_html | truncate: 256 -}}
|
32
|
-
</div>
|
33
|
-
|
34
|
-
{%- if thumbnail.size > 0 -%}
|
35
|
-
<div class="c-blog-list__thumbnail">
|
36
|
-
<img src="{{- thumbnail -}}" />
|
37
|
-
</div>
|
38
|
-
{%- endif -%}
|
39
|
-
</div>
|
40
|
-
{%- endfor -%}
|
41
|
-
</div>
|
1
|
+
<div class="c-blog-list">
|
2
|
+
{%- for post in include.posts -%}
|
3
|
+
{%- assign html = post.content | markdownify -%}
|
4
|
+
{%- capture page_title -%}
|
5
|
+
{%- include functions/get_page_title.liquid page=post -%}
|
6
|
+
{%- endcapture -%}
|
7
|
+
{%- capture thumbnail -%}
|
8
|
+
{%- include functions/get_page_thumbnail.liquid page=post html=html autodetect=true -%}
|
9
|
+
{%- endcapture -%}
|
10
|
+
|
11
|
+
<div class="c-blog-list__item">
|
12
|
+
<div class="c-blog-list__title">
|
13
|
+
{%- if post.sticky -%}
|
14
|
+
<span class="c-blog-list__badge c-blog-list__badge--sticky">
|
15
|
+
<i class="fas fa-thumbtack fa-fw"></i>
|
16
|
+
{%- include localize key="tag_sticky" default="Sticky" -%}
|
17
|
+
</span>
|
18
|
+
{%- endif -%}
|
19
|
+
{%- if post.featured -%}
|
20
|
+
<span class="c-blog-list__badge c-blog-list__badge--featured">
|
21
|
+
<i class="fas fa-check fa-fw"></i>
|
22
|
+
{%- include localize key="tag_featured" default="Featured" -%}
|
23
|
+
</span>
|
24
|
+
{%- endif -%}
|
25
|
+
<a class="c-blog-list__link" href="{{- post.url | relative_url -}}">{{- page_title -}}</a>
|
26
|
+
</div>
|
27
|
+
<div class="c-blog-list__meta">
|
28
|
+
{%- include functions/get_page_meta.liquid page=post tags=true categories=true short_date=true details=false -%}
|
29
|
+
</div>
|
30
|
+
<div class="c-blog-list__content">
|
31
|
+
{{- html | strip_html | truncate: 256 -}}
|
32
|
+
</div>
|
33
|
+
|
34
|
+
{%- if thumbnail.size > 0 -%}
|
35
|
+
<div class="c-blog-list__thumbnail">
|
36
|
+
<img src="{{- thumbnail -}}" />
|
37
|
+
</div>
|
38
|
+
{%- endif -%}
|
39
|
+
</div>
|
40
|
+
{%- endfor -%}
|
41
|
+
</div>
|
data/_includes/blog/post.liquid
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
{%- assign pageitem = include.page | default: page -%}
|
2
|
-
|
3
|
-
{%- include layout/article.liquid
|
4
|
-
page=pageitem
|
5
|
-
has_side=true
|
6
|
-
-%}
|
1
|
+
{%- assign pageitem = include.page | default: page -%}
|
2
|
+
|
3
|
+
{%- include layout/article.liquid
|
4
|
+
page=pageitem
|
5
|
+
has_side=true
|
6
|
+
-%}
|
@@ -1,11 +1,11 @@
|
|
1
|
-
{%- assign google_analytics_id = site.google_analytics.id -%}
|
2
|
-
|
3
|
-
{%- if google_analytics_id -%}
|
4
|
-
<script async src="https://www.googletagmanager.com/gtag/js?id={{google_analytics_id}}"></script>
|
5
|
-
<script>
|
6
|
-
window.dataLayer = window.dataLayer || [];
|
7
|
-
function gtag(){ dataLayer.push(arguments); }
|
8
|
-
gtag('js', new Date());
|
9
|
-
gtag('config', '{{google_analytics_id}}');
|
10
|
-
</script>
|
11
|
-
{%- endif -%}
|
1
|
+
{%- assign google_analytics_id = site.google_analytics.id -%}
|
2
|
+
|
3
|
+
{%- if google_analytics_id -%}
|
4
|
+
<script async src="https://www.googletagmanager.com/gtag/js?id={{google_analytics_id}}"></script>
|
5
|
+
<script>
|
6
|
+
window.dataLayer = window.dataLayer || [];
|
7
|
+
function gtag(){ dataLayer.push(arguments); }
|
8
|
+
gtag('js', new Date());
|
9
|
+
gtag('config', '{{google_analytics_id}}');
|
10
|
+
</script>
|
11
|
+
{%- endif -%}
|
@@ -1,11 +1,11 @@
|
|
1
|
-
{%- assign provider = site.analytics -%}
|
2
|
-
{%- if page.analytics == false -%}
|
3
|
-
{%- assign provider = false -%}
|
4
|
-
{%- endif -%}
|
5
|
-
|
6
|
-
{%- case provider -%}
|
7
|
-
{%- when "google_analytics" -%}
|
8
|
-
{%- include components/analytics.google.liquid -%}
|
9
|
-
{%- when "custom" -%}
|
10
|
-
{%- include custom/analytics.liquid -%}
|
11
|
-
{%- endcase -%}
|
1
|
+
{%- assign provider = site.analytics -%}
|
2
|
+
{%- if page.analytics == false -%}
|
3
|
+
{%- assign provider = false -%}
|
4
|
+
{%- endif -%}
|
5
|
+
|
6
|
+
{%- case provider -%}
|
7
|
+
{%- when "google_analytics" -%}
|
8
|
+
{%- include components/analytics.google.liquid -%}
|
9
|
+
{%- when "custom" -%}
|
10
|
+
{%- include custom/analytics.liquid -%}
|
11
|
+
{%- endcase -%}
|
@@ -1,17 +1,17 @@
|
|
1
|
-
{%- comment -%}
|
2
|
-
https://help.disqus.com/en/articles/1717112-universal-embed-code
|
3
|
-
{%- endcomment -%}
|
4
|
-
|
5
|
-
<div id="disqus_thread"></div>
|
6
|
-
<script>
|
7
|
-
var disqus_config = function () {
|
8
|
-
this.page.url = '{{page.url | relative_url}}';
|
9
|
-
this.page.identifier = '{{page.url}}';
|
10
|
-
};
|
11
|
-
(function() {
|
12
|
-
var d = document, s = d.createElement('script');
|
13
|
-
s.src = 'https://{{site.disqus.shortname}}.disqus.com/embed.js';
|
14
|
-
s.setAttribute('data-timestamp', + new Date());
|
15
|
-
(d.head || d.body).appendChild(s);
|
16
|
-
})();
|
17
|
-
</script>
|
1
|
+
{%- comment -%}
|
2
|
+
https://help.disqus.com/en/articles/1717112-universal-embed-code
|
3
|
+
{%- endcomment -%}
|
4
|
+
|
5
|
+
<div id="disqus_thread"></div>
|
6
|
+
<script>
|
7
|
+
var disqus_config = function () {
|
8
|
+
this.page.url = '{{page.url | relative_url}}';
|
9
|
+
this.page.identifier = '{{page.url}}';
|
10
|
+
};
|
11
|
+
(function() {
|
12
|
+
var d = document, s = d.createElement('script');
|
13
|
+
s.src = 'https://{{site.disqus.shortname}}.disqus.com/embed.js';
|
14
|
+
s.setAttribute('data-timestamp', + new Date());
|
15
|
+
(d.head || d.body).appendChild(s);
|
16
|
+
})();
|
17
|
+
</script>
|
@@ -1,22 +1,22 @@
|
|
1
|
-
{%- comment -%}
|
2
|
-
https://github.com/gitalk/gitalk
|
3
|
-
{%- endcomment -%}
|
4
|
-
|
5
|
-
<link rel="stylesheet" href="{{site.npm_cdn}}/gitalk@1/dist/gitalk.css">
|
6
|
-
<script src="{{site.npm_cdn}}/gitalk@1/dist/gitalk.min.js"></script>
|
7
|
-
|
8
|
-
<div id="gitalk-container"></div>
|
9
|
-
<script type="text/javascript">
|
10
|
-
var gitalk = new Gitalk({
|
11
|
-
clientID: "{{ site.gitalk.clientID }}",
|
12
|
-
clientSecret: "{{ site.gitalk.clientSecret }}",
|
13
|
-
repo: "{{ site.gitalk.repo }}",
|
14
|
-
owner: "{{ site.gitalk.owner }}",
|
15
|
-
admin: ["{{ site.gitalk.owner }}"],
|
16
|
-
id: location.pathname,
|
17
|
-
language: "{{ site.
|
18
|
-
title: "{{ page.title }}",
|
19
|
-
});
|
20
|
-
|
21
|
-
gitalk.render('gitalk-container');
|
22
|
-
</script>
|
1
|
+
{%- comment -%}
|
2
|
+
https://github.com/gitalk/gitalk
|
3
|
+
{%- endcomment -%}
|
4
|
+
|
5
|
+
<link rel="stylesheet" href="{{site.npm_cdn}}/gitalk@1/dist/gitalk.css">
|
6
|
+
<script src="{{site.npm_cdn}}/gitalk@1/dist/gitalk.min.js"></script>
|
7
|
+
|
8
|
+
<div id="gitalk-container"></div>
|
9
|
+
<script type="text/javascript">
|
10
|
+
var gitalk = new Gitalk({
|
11
|
+
clientID: "{{ site.gitalk.clientID }}",
|
12
|
+
clientSecret: "{{ site.gitalk.clientSecret }}",
|
13
|
+
repo: "{{ site.gitalk.repo }}",
|
14
|
+
owner: "{{ site.gitalk.owner }}",
|
15
|
+
admin: ["{{ site.gitalk.owner }}"],
|
16
|
+
id: location.pathname,
|
17
|
+
language: "{{ site.lang }}",
|
18
|
+
title: "{{ page.title }}",
|
19
|
+
});
|
20
|
+
|
21
|
+
gitalk.render('gitalk-container');
|
22
|
+
</script>
|
@@ -1,13 +1,13 @@
|
|
1
|
-
{%- assign provider = site.comments -%}
|
2
|
-
{%- if page.comments == false -%}
|
3
|
-
{%- assign provider = false -%}
|
4
|
-
{%- endif -%}
|
5
|
-
|
6
|
-
{%- case provider -%}
|
7
|
-
{%- when "disqus" -%}
|
8
|
-
{%- include components/comments.disqus.liquid -%}
|
9
|
-
{%- when "gitalk" -%}
|
10
|
-
{%- include components/comments.gitalk.liquid -%}
|
11
|
-
{%- when "custom" -%}
|
12
|
-
{%- include custom/comments.liquid -%}
|
13
|
-
{%- endcase -%}
|
1
|
+
{%- assign provider = site.comments -%}
|
2
|
+
{%- if page.comments == false -%}
|
3
|
+
{%- assign provider = false -%}
|
4
|
+
{%- endif -%}
|
5
|
+
|
6
|
+
{%- case provider -%}
|
7
|
+
{%- when "disqus" -%}
|
8
|
+
{%- include components/comments.disqus.liquid -%}
|
9
|
+
{%- when "gitalk" -%}
|
10
|
+
{%- include components/comments.gitalk.liquid -%}
|
11
|
+
{%- when "custom" -%}
|
12
|
+
{%- include custom/comments.liquid -%}
|
13
|
+
{%- endcase -%}
|
@@ -1,51 +1,51 @@
|
|
1
|
-
{%- if include.items -%}
|
2
|
-
|
3
|
-
<div class="c-navmenu__menu">
|
4
|
-
{%- for item in include.items -%}
|
5
|
-
{%- if item.text == "-" -%}
|
6
|
-
<div class="c-navmenu__divider"></div>
|
7
|
-
{%- else -%}
|
8
|
-
<div class="c-navmenu__item">
|
9
|
-
{%- if item.url -%}
|
10
|
-
<a class="c-navmenu__text" href="{{- item.url | relative_url -}}">
|
11
|
-
{%- if item.icon -%}{%- include functions/get_icon.liquid icon=item.icon -%}{%- endif -%}{{- item.text -}}
|
12
|
-
</a>
|
13
|
-
{%- elsif item.onclick -%}
|
14
|
-
<a class="c-navmenu__text" href="javascript:void(0);" onclick="{{ item.onclick }};document.activeElement.blur();">
|
15
|
-
{%- if item.icon -%}{%- include functions/get_icon.liquid icon=item.icon -%}{%- endif -%}{{- item.text -}}
|
16
|
-
</a>
|
17
|
-
{%- else -%}
|
18
|
-
<div class="c-navmenu__text">
|
19
|
-
{%- if item.icon -%}{%- include functions/get_icon.liquid icon=item.icon -%}{%- endif -%}{{- item.text -}}
|
20
|
-
</div>
|
21
|
-
{%- endif -%}
|
22
|
-
{%- if item.items -%}
|
23
|
-
{%- include components/navmenu.items.liquid items=item.items -%}
|
24
|
-
{%- elsif item.taxonomy -%}
|
25
|
-
{%- include components/navmenu.items.liquid taxonomy=item.taxonomy -%}
|
26
|
-
{%- endif -%}
|
27
|
-
</div>
|
28
|
-
{%- endif -%}
|
29
|
-
{%- endfor -%}
|
30
|
-
</div>
|
31
|
-
|
32
|
-
{%- elsif include.taxonomy -%}
|
33
|
-
{%- case include.taxonomy -%}
|
34
|
-
{%- when "categories" -%}
|
35
|
-
{%- assign collection = site.categories -%}
|
36
|
-
{%- when "tags" -%}
|
37
|
-
{%- assign collection = site.tags -%}
|
38
|
-
{%- endcase -%}
|
39
|
-
|
40
|
-
<div class="c-navmenu__menu">
|
41
|
-
{%- for item in collection -%}
|
42
|
-
{%- assign text = item | first -%}
|
43
|
-
<div class="c-navmenu__item">
|
44
|
-
<a class="c-navmenu__text" href="/{{- include.taxonomy -}}/#!/{{- text | url_encode -}}">
|
45
|
-
{{- text -}} <small>({{- item | last | size -}})</small>
|
46
|
-
</a>
|
47
|
-
</div>
|
48
|
-
{%- endfor -%}
|
49
|
-
</div>
|
50
|
-
|
51
|
-
{%- endif -%}
|
1
|
+
{%- if include.items -%}
|
2
|
+
|
3
|
+
<div class="c-navmenu__menu">
|
4
|
+
{%- for item in include.items -%}
|
5
|
+
{%- if item.text == "-" -%}
|
6
|
+
<div class="c-navmenu__divider"></div>
|
7
|
+
{%- else -%}
|
8
|
+
<div class="c-navmenu__item">
|
9
|
+
{%- if item.url -%}
|
10
|
+
<a class="c-navmenu__text" href="{{- item.url | relative_url -}}">
|
11
|
+
{%- if item.icon -%}{%- include functions/get_icon.liquid icon=item.icon -%}{%- endif -%}{{- item.text -}}
|
12
|
+
</a>
|
13
|
+
{%- elsif item.onclick -%}
|
14
|
+
<a class="c-navmenu__text" href="javascript:void(0);" onclick="{{ item.onclick }};document.activeElement.blur();">
|
15
|
+
{%- if item.icon -%}{%- include functions/get_icon.liquid icon=item.icon -%}{%- endif -%}{{- item.text -}}
|
16
|
+
</a>
|
17
|
+
{%- else -%}
|
18
|
+
<div class="c-navmenu__text">
|
19
|
+
{%- if item.icon -%}{%- include functions/get_icon.liquid icon=item.icon -%}{%- endif -%}{{- item.text -}}
|
20
|
+
</div>
|
21
|
+
{%- endif -%}
|
22
|
+
{%- if item.items -%}
|
23
|
+
{%- include components/navmenu.items.liquid items=item.items -%}
|
24
|
+
{%- elsif item.taxonomy -%}
|
25
|
+
{%- include components/navmenu.items.liquid taxonomy=item.taxonomy -%}
|
26
|
+
{%- endif -%}
|
27
|
+
</div>
|
28
|
+
{%- endif -%}
|
29
|
+
{%- endfor -%}
|
30
|
+
</div>
|
31
|
+
|
32
|
+
{%- elsif include.taxonomy -%}
|
33
|
+
{%- case include.taxonomy -%}
|
34
|
+
{%- when "categories" -%}
|
35
|
+
{%- assign collection = site.categories -%}
|
36
|
+
{%- when "tags" -%}
|
37
|
+
{%- assign collection = site.tags -%}
|
38
|
+
{%- endcase -%}
|
39
|
+
|
40
|
+
<div class="c-navmenu__menu">
|
41
|
+
{%- for item in collection -%}
|
42
|
+
{%- assign text = item | first -%}
|
43
|
+
<div class="c-navmenu__item">
|
44
|
+
<a class="c-navmenu__text" href="/{{- include.taxonomy -}}/#!/{{- text | url_encode -}}">
|
45
|
+
{{- text -}} <small>({{- item | last | size -}})</small>
|
46
|
+
</a>
|
47
|
+
</div>
|
48
|
+
{%- endfor -%}
|
49
|
+
</div>
|
50
|
+
|
51
|
+
{%- endif -%}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<div class="c-navmenu {%- unless include.data.collapsed %} c-navmenu--responsive{%- endunless -%} {%- if include.is_right %} c-navmenu--right{%- endif -%}">
|
2
|
-
<button class="c-navmenu__button c-navbutton c-navbutton--menu"><i class="fas fa-bars"></i></button>
|
3
|
-
{%- include components/navmenu.items.liquid items=include.data -%}
|
4
|
-
</div>
|
1
|
+
<div class="c-navmenu {%- unless include.data.collapsed %} c-navmenu--responsive{%- endunless -%} {%- if include.is_right %} c-navmenu--right{%- endif -%}">
|
2
|
+
<button class="c-navmenu__button c-navbutton c-navbutton--menu"><i class="fas fa-bars"></i></button>
|
3
|
+
{%- include components/navmenu.items.liquid items=include.data -%}
|
4
|
+
</div>
|