jekyll-text-theme 1.5.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +41 -153
- data/_data/authors.yml +0 -0
- data/_data/licenses.yml +16 -0
- data/_data/locale.yml +4 -10
- data/_data/navigation.yml +13 -0
- data/_data/variables.yml +22 -6
- data/_includes/analytics-providers/custom.html +0 -0
- data/_includes/analytics-providers/google.html +16 -0
- data/_includes/analytics.html +7 -0
- data/_includes/article-footer/custom.html +1 -0
- data/_includes/article-footer/license.html +24 -0
- data/_includes/article-info.html +90 -0
- data/_includes/aside/toc.html +1 -0
- data/_includes/author-profile.html +50 -0
- data/_includes/comments-providers/custom.html +0 -0
- data/_includes/comments-providers/disqus.html +22 -0
- data/_includes/comments-providers/gitalk.html +32 -0
- data/_includes/comments.html +9 -0
- data/_includes/follow-me.html +84 -0
- data/_includes/footer.html +39 -0
- data/_includes/head.html +54 -0
- data/_includes/header.html +33 -0
- data/_includes/markdown-enhancements.html +32 -0
- data/_includes/{utils → markdown-enhancements}/chart.html +1 -3
- data/_includes/{utils → markdown-enhancements}/mathjax.html +11 -4
- data/_includes/{utils → markdown-enhancements}/mermaid.html +1 -3
- data/_includes/pageview-providers/custom.html +0 -0
- data/_includes/pageview-providers/custom/home.html +0 -0
- data/_includes/pageview-providers/custom/post.html +0 -0
- data/_includes/pageview-providers/leancloud/home.html +35 -0
- data/_includes/pageview-providers/leancloud/leancloud.js +71 -0
- data/_includes/pageview-providers/leancloud/post.html +31 -0
- data/_includes/pageview.html +31 -0
- data/_includes/scripts/archieve.js +238 -0
- data/_includes/scripts/article-list.html +27 -0
- data/_includes/scripts/article.js +24 -0
- data/_includes/scripts/aside/affix.js +26 -0
- data/_includes/scripts/aside/toc.js +37 -0
- data/_includes/scripts/common.js +3 -0
- data/_includes/scripts/home.js +3 -0
- data/_includes/scripts/lib/affix.js +103 -0
- data/_includes/scripts/{utils.html → lib/lazyload.js} +55 -92
- data/_includes/scripts/lib/scroll.js +13 -0
- data/_includes/scripts/lib/throttle.js +28 -0
- data/_includes/scripts/lib/toc.js +106 -0
- data/_includes/scripts/page.js +3 -0
- data/_includes/scripts/sidebar.js +14 -0
- data/_includes/scripts/utils.js +38 -0
- data/_includes/scripts/variables.html +27 -0
- data/_includes/sidebar/toc.html +27 -0
- data/_includes/snippets/assign.html +5 -0
- data/_includes/snippets/get-nav-url.html +3 -2
- data/_includes/snippets/page-title.html +11 -6
- data/_includes/snippets/page-url.html +3 -1
- data/_includes/snippets/to-boolean.html +7 -0
- data/_includes/{icon → svg/icon}/social/behance.svg +0 -0
- data/_includes/{icon → svg/icon}/social/douban.svg +0 -0
- data/_includes/{icon → svg/icon}/social/facebook.svg +0 -0
- data/_includes/{icon → svg/icon}/social/flicker.svg +0 -0
- data/_includes/{icon → svg/icon}/social/github.svg +0 -0
- data/_includes/{icon → svg/icon}/social/googleplus.svg +0 -0
- data/_includes/{icon → svg/icon}/social/linkedin.svg +0 -0
- data/_includes/{icon → svg/icon}/social/mail.svg +0 -0
- data/_includes/{icon → svg/icon}/social/pinterest.svg +0 -0
- data/_includes/{icon → svg/icon}/social/qq.svg +0 -0
- data/_includes/{icon → svg/icon}/social/twitter.svg +0 -0
- data/_includes/{icon → svg/icon}/social/weibo.svg +0 -0
- data/_includes/{icon → svg/icon}/social/weixin.svg +0 -0
- data/_includes/{icon → svg/icon}/social/zhihu.svg +0 -0
- data/_includes/{logo → svg}/logo.svg +1 -1
- data/_includes/tags.html +52 -0
- data/_layouts/404.html +12 -0
- data/_layouts/archive.html +25 -0
- data/_layouts/article.html +78 -0
- data/_layouts/base.html +13 -33
- data/_layouts/home.html +135 -121
- data/_layouts/landing.html +164 -0
- data/_layouts/page.html +157 -9
- data/_sass/additional/_alert.scss +25 -0
- data/_sass/additional/_photo-frame.scss +17 -0
- data/_sass/animate/_fade-in-down.scss +1 -1
- data/_sass/animate/_fade-in.scss +1 -1
- data/_sass/common/_classes.scss +5 -2
- data/_sass/common/_reset.scss +32 -22
- data/_sass/common/_variables.scss +87 -31
- data/_sass/common/classes/_animation.scss +9 -0
- data/_sass/common/classes/_clearfix.scss +8 -0
- data/_sass/common/classes/_grid.scss +48 -0
- data/_sass/common/classes/_horizontal-rules.scss +14 -0
- data/_sass/common/classes/_link.scss +18 -145
- data/_sass/common/classes/_media.scss +1 -2
- data/_sass/common/classes/_overflow.scss +8 -0
- data/_sass/common/classes/_pseudo.scss +26 -0
- data/_sass/common/classes/_shadow.scss +13 -5
- data/_sass/common/classes/_spacing.scss +52 -0
- data/_sass/common/components/_button.scss +179 -47
- data/_sass/common/components/_card.scss +18 -0
- data/_sass/common/components/_menu.scss +43 -0
- data/_sass/common/components/_toc.scss +125 -0
- data/_sass/components/_article.content.scss +37 -45
- data/_sass/components/_article.info.scss +25 -0
- data/_sass/components/_author-profile.scss +43 -0
- data/_sass/components/_follow-me.scss +16 -19
- data/_sass/components/_footer.scss +16 -6
- data/_sass/components/_header.scss +26 -18
- data/_sass/components/_license.scss +1 -25
- data/_sass/components/_main.scss +13 -11
- data/_sass/components/_tags.scss +17 -36
- data/_sass/layout/{_error-404.scss → _404.scss} +2 -2
- data/_sass/layout/_all.scss +72 -63
- data/_sass/layout/_article.scss +44 -0
- data/_sass/layout/_home.scss +61 -52
- data/_sass/layout/_landing.scss +104 -0
- data/_sass/layout/_page.scss +155 -0
- data/_sass/{colors → skins}/_chocolate.scss +17 -6
- data/_sass/skins/_dark.scss +56 -0
- data/_sass/{colors → skins}/_default.scss +16 -5
- data/_sass/{colors → skins}/_forest.scss +16 -5
- data/_sass/{colors → skins}/_ocean.scss +16 -5
- data/_sass/{colors → skins}/_orange.scss +20 -9
- data/assets/android-chrome-192x192.png +0 -0
- data/assets/android-chrome-512x512.png +0 -0
- data/assets/apple-touch-icon.png +0 -0
- data/assets/browserconfig.xml +9 -0
- data/assets/css/main.scss +46 -0
- data/assets/favicon-16x16.png +0 -0
- data/assets/favicon-32x32.png +0 -0
- data/assets/favicon.ico +0 -0
- data/assets/images/logo/logo.svg +1 -1
- data/assets/mstile-144x144.png +0 -0
- data/assets/mstile-150x150.png +0 -0
- data/assets/mstile-310x150.png +0 -0
- data/assets/mstile-310x310.png +0 -0
- data/assets/mstile-70x70.png +0 -0
- data/assets/safari-pinned-tab.svg +38 -0
- data/assets/site.webmanifest +19 -0
- metadata +108 -76
- data/_includes/common-head.html +0 -10
- data/_includes/components/article-data.html +0 -55
- data/_includes/components/follow-me.html +0 -78
- data/_includes/components/footer.html +0 -10
- data/_includes/components/header.html +0 -42
- data/_includes/components/license.html +0 -26
- data/_includes/components/tags.html +0 -52
- data/_includes/head-icons-rel.html +0 -38
- data/_includes/icon/clear.svg +0 -3
- data/_includes/icon/link.svg +0 -1
- data/_includes/icon/menu.svg +0 -3
- data/_includes/icon/next.svg +0 -3
- data/_includes/icon/omit.svg +0 -1
- data/_includes/icon/previous.svg +0 -3
- data/_includes/icon/search.svg +0 -3
- data/_includes/scripts/all.html +0 -244
- data/_includes/scripts/common.html +0 -30
- data/_includes/scripts/data.html +0 -27
- data/_includes/scripts/home.html +0 -26
- data/_includes/scripts/page-post.html +0 -32
- data/_includes/scripts/post.html +0 -183
- data/_includes/utils/comment-disqus.html +0 -19
- data/_includes/utils/comment-gitalk.html +0 -25
- data/_includes/utils/google-analytics.html +0 -11
- data/_layouts/all.html +0 -20
- data/_layouts/error-404.html +0 -9
- data/_layouts/post.html +0 -60
- data/_sass/colors/_dark.scss +0 -45
- data/_sass/common/classes/_shape.scss +0 -19
- data/_sass/common/classes/_space.scss +0 -40
- data/_sass/components/_article.content.extra.scss +0 -41
- data/_sass/components/_article.data.scss +0 -36
- data/_sass/components/_pagination.scss +0 -19
- data/_sass/components/_toc.scss +0 -72
- data/_sass/layout/_default.scss +0 -19
- data/_sass/layout/_post.scss +0 -80
- data/assets/css/blog.scss +0 -41
- data/assets/images/logo/icon-120x120.png +0 -0
- data/assets/images/logo/icon-128x128.png +0 -0
- data/assets/images/logo/icon-150x150.png +0 -0
- data/assets/images/logo/icon-152x152.png +0 -0
- data/assets/images/logo/icon-167x167.png +0 -0
- data/assets/images/logo/icon-16x16.png +0 -0
- data/assets/images/logo/icon-180x180.png +0 -0
- data/assets/images/logo/icon-192x192.png +0 -0
- data/assets/images/logo/icon-310x150.png +0 -0
- data/assets/images/logo/icon-310x310.png +0 -0
- data/assets/images/logo/icon-48x48.png +0 -0
- data/assets/images/logo/icon-70x70.png +0 -0
@@ -0,0 +1,164 @@
|
|
1
|
+
---
|
2
|
+
layout: page
|
3
|
+
title: TeXt
|
4
|
+
show_title: false
|
5
|
+
show_header: false
|
6
|
+
full_width: true
|
7
|
+
---
|
8
|
+
{%- include snippets/page-title.html -%}
|
9
|
+
{%- assign _title = __return -%}
|
10
|
+
|
11
|
+
<div class="layout--landing">
|
12
|
+
{%- assign __path = page.data.background_image.src -%}
|
13
|
+
{%- include snippets/get-nav-url.html -%}
|
14
|
+
{%- assign _url = __return -%}
|
15
|
+
{%- if page.data.theme == 'light' -%}
|
16
|
+
<section class="section section--light overlay" style="background-image: url({{ _url }});">
|
17
|
+
{%- elsif page.data.theme == 'dark' -%}
|
18
|
+
<section class="section section--dark overlay" style="background-image: url({{ _url }});">
|
19
|
+
{%- else -%}
|
20
|
+
<section class="section overlay" style="background-image: url({{ page.data.background_image.src }});">
|
21
|
+
{%- endif -%}
|
22
|
+
<div class="section__content">
|
23
|
+
<h1>{{ _title }}</h1>
|
24
|
+
{%- if page.data.sub_title -%}
|
25
|
+
<h2 itemprop="alternativeHeadline">{{ page.data.sub_title }}</h2>
|
26
|
+
{%- endif -%}
|
27
|
+
{%- if page.data.actions -%}
|
28
|
+
<ul class="menu menu--center">
|
29
|
+
{%- for _action in page.data.actions -%}
|
30
|
+
{%- assign __path = _action.url -%}
|
31
|
+
{%- include snippets/get-nav-url.html -%}
|
32
|
+
{%- assign _url = __return -%}
|
33
|
+
{%- assign _type = _action.type | default: 'info' -%}
|
34
|
+
<li><a class="button button--{{ _type }} button--rounded button--lg" href="{{ _url }}">{{ _action.text }}</a></li>
|
35
|
+
{%- endfor -%}
|
36
|
+
</ul>
|
37
|
+
{%- endif -%}
|
38
|
+
</div>
|
39
|
+
</section>
|
40
|
+
|
41
|
+
{%- for _section in page.data.sections -%}
|
42
|
+
{%- if _section.theme == 'light' -%}
|
43
|
+
<section class="section section--light feature" id="section-{{ forloop.index }}">
|
44
|
+
{%- elsif _section.theme == 'dark' -%}
|
45
|
+
<section class="section section--dark feature" id="section-{{ forloop.index }}">
|
46
|
+
{%- else -%}
|
47
|
+
<section class="section feature" id="section-{{ forloop.index }}">
|
48
|
+
{%- endif -%}
|
49
|
+
|
50
|
+
<div class="section__content">
|
51
|
+
<div class="content__row">
|
52
|
+
|
53
|
+
<h3>{{ _section.title }}</h3>
|
54
|
+
{%- if _section.description-%}
|
55
|
+
<p>{{ _section.description }}</p>
|
56
|
+
{%- endif -%}
|
57
|
+
|
58
|
+
{%- if _section.actions -%}
|
59
|
+
<ul class="menu menu--center">
|
60
|
+
{%- for _action in _section.actions -%}
|
61
|
+
{%- assign __path = _action.url -%}
|
62
|
+
{%- include snippets/get-nav-url.html -%}
|
63
|
+
{%- assign _url = __return -%}
|
64
|
+
{%- assign _type = _action.type | default: 'outline-info' -%}
|
65
|
+
<li><a class="button button--{{ _type }} button--rounded button--lg" href="{{ _url }}">{{ _action.text }}</a></li>
|
66
|
+
{%- endfor -%}
|
67
|
+
</ul>
|
68
|
+
{%- endif -%}
|
69
|
+
|
70
|
+
</div>
|
71
|
+
|
72
|
+
{%- if _section.children -%}
|
73
|
+
{%- assign _size = _section.children | size -%}
|
74
|
+
<div class="grid">
|
75
|
+
<div class="row">
|
76
|
+
|
77
|
+
|
78
|
+
{%- for child in _section.children -%}
|
79
|
+
<div class="content__col col-{{ 12 | divided_by: _size }} col-sm-12">
|
80
|
+
|
81
|
+
<div class="content__row">
|
82
|
+
<h4>{{ child.title }}</h4>
|
83
|
+
|
84
|
+
{%- if child.description-%}
|
85
|
+
<p>{{ child.description }}</p>
|
86
|
+
{%- endif -%}
|
87
|
+
|
88
|
+
{%- if child.actions -%}
|
89
|
+
<ul class="menu menu--center">
|
90
|
+
{%- for _action in child.actions -%}
|
91
|
+
{%- assign __path = _action.url -%}
|
92
|
+
{%- include snippets/get-nav-url.html -%}
|
93
|
+
{%- assign _url = __return -%}
|
94
|
+
{%- assign _type = _action.type | default: 'outline-info' -%}
|
95
|
+
<li><a class="button button--{{ _type }} button--rounded button--lg" href="{{ _url }}">{{ _action.text }}</a></li>
|
96
|
+
{%- endfor -%}
|
97
|
+
</ul>
|
98
|
+
{%- endif -%}
|
99
|
+
</div>
|
100
|
+
|
101
|
+
{%- if child.image -%}
|
102
|
+
|
103
|
+
{%- if child.image.url -%}
|
104
|
+
{%- assign __path = child.image.url -%}
|
105
|
+
{%- include snippets/get-nav-url.html -%}
|
106
|
+
{%- assign _item_image_url = __return -%}
|
107
|
+
{%- else -%}
|
108
|
+
{%- assign _item_image_url = nil -%}
|
109
|
+
{%- endif -%}
|
110
|
+
|
111
|
+
{%- if child.image.src -%}
|
112
|
+
{%- assign __path = child.image.src -%}
|
113
|
+
{%- include snippets/get-nav-url.html -%}
|
114
|
+
{%- assign _item_image_src = __return -%}
|
115
|
+
{%- else -%}
|
116
|
+
{%- assign _item_image_src = nil -%}
|
117
|
+
{%- endif -%}
|
118
|
+
|
119
|
+
{%- if child.image.is_row -%}
|
120
|
+
<div class="content__row">
|
121
|
+
{%- endif -%}
|
122
|
+
{%- if _item_image_url -%}
|
123
|
+
<a href="{{ _item_image_url }}">
|
124
|
+
{%- endif -%}
|
125
|
+
{%- if _item_image_src -%}
|
126
|
+
<img class="content__cover" src="{{ _item_image_src }}" style="{{ child.image.style }}"></img>
|
127
|
+
{%- endif -%}
|
128
|
+
{%- if _item_image_url -%}
|
129
|
+
</a>
|
130
|
+
{%- endif -%}
|
131
|
+
{%- if child.image.is_row -%}
|
132
|
+
</div>
|
133
|
+
{%- endif -%}
|
134
|
+
{%- endif -%}
|
135
|
+
|
136
|
+
</div>
|
137
|
+
{%- endfor-%}
|
138
|
+
|
139
|
+
</div>
|
140
|
+
</div>
|
141
|
+
{%- endif -%}
|
142
|
+
|
143
|
+
{%- if _section.image -%}
|
144
|
+
{%- if _section.image.is_row -%}
|
145
|
+
<div class="content__row">
|
146
|
+
{%- endif -%}
|
147
|
+
{%- if child.image.url -%}
|
148
|
+
<a href="{{ child.image.url }}">
|
149
|
+
{%- endif -%}
|
150
|
+
<img class="content__cover" src="{{ _section.image.src }}" style="{{ _section.image.style }}"></img>
|
151
|
+
{%- if child.image.url -%}
|
152
|
+
</a>
|
153
|
+
{%- endif -%}
|
154
|
+
{%- if _section.image.is_row -%}
|
155
|
+
</div>
|
156
|
+
{%- endif -%}
|
157
|
+
{%- endif -%}
|
158
|
+
|
159
|
+
</div>
|
160
|
+
</section>
|
161
|
+
{%- endfor -%}
|
162
|
+
</div>
|
163
|
+
|
164
|
+
{{ content }}
|
data/_layouts/page.html
CHANGED
@@ -1,14 +1,162 @@
|
|
1
1
|
---
|
2
2
|
layout: base
|
3
3
|
---
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
4
|
+
{%- assign _page_type = page.type | default: layout.type | default: site.data.variables.default.page.type -%}
|
5
|
+
|
6
|
+
{%- include snippets/page-title.html -%}
|
7
|
+
{%- assign _page_title = __return -%}
|
8
|
+
|
9
|
+
{%- assign __source = page.show_header -%}
|
10
|
+
{%- assign __target = layout.show_header -%}
|
11
|
+
{%- include snippets/assign.html -%}
|
12
|
+
{%- assign __source = __return -%}
|
13
|
+
{%- assign __target = site.data.variables.default.page.show_header -%}
|
14
|
+
{%- include snippets/assign.html -%}
|
15
|
+
{%- assign _show_header = __return -%}
|
16
|
+
|
17
|
+
{%- assign __source = page.full_width -%}
|
18
|
+
{%- assign __target = layout.full_width -%}
|
19
|
+
{%- include snippets/assign.html -%}
|
20
|
+
{%- assign __source = __return -%}
|
21
|
+
{%- assign __target = site.data.variables.default.page.full_width -%}
|
22
|
+
{%- include snippets/assign.html -%}
|
23
|
+
{%- assign _full_width = __return -%}
|
24
|
+
|
25
|
+
{%- assign __source = page.show_title -%}
|
26
|
+
{%- assign __target = layout.show_title -%}
|
27
|
+
{%- include snippets/assign.html -%}
|
28
|
+
{%- assign __source = __return -%}
|
29
|
+
{%- assign __target = site.data.variables.default.page.show_title -%}
|
30
|
+
{%- include snippets/assign.html -%}
|
31
|
+
{%- assign _show_title = __return -%}
|
32
|
+
|
33
|
+
{%- assign __source = page.show_edit_on_github -%}
|
34
|
+
{%- assign __target = layout.show_edit_on_github -%}
|
35
|
+
{%- include snippets/assign.html -%}
|
36
|
+
{%- assign __source = __return -%}
|
37
|
+
{%- assign __target = site.data.variables.default.page.show_edit_on_github -%}
|
38
|
+
{%- include snippets/assign.html -%}
|
39
|
+
{%- assign _show_edit_on_github = __return -%}
|
40
|
+
|
41
|
+
{%- if page.sidebar -%}
|
42
|
+
<div class="layout--page layout--page--sidebar clearfix js-page-root">
|
43
|
+
<div class="page__actions">
|
44
|
+
<div class="button button--circle button--lg box-shadow-2 sidebar-button js-sidebar-show">
|
45
|
+
<i class="fas fa-bars icon--show"></i>
|
46
|
+
</div>
|
47
|
+
</div>
|
48
|
+
<div class="page__sidebar">
|
49
|
+
{%- include sidebar/toc.html -%}
|
50
|
+
</div>
|
51
|
+
<div class="page__mask js-sidebar-hide"></div>
|
52
|
+
|
53
|
+
{%- else -%}
|
54
|
+
<div class="layout--page clearfix">
|
55
|
+
{%- endif -%}
|
56
|
+
|
57
|
+
{%- if _full_width -%}
|
58
|
+
<div class="page__main js-page-main full-width">
|
59
|
+
{%- elsif page.aside -%}
|
60
|
+
<div class="page__main js-page-main has-aside">
|
61
|
+
{%- else -%}
|
62
|
+
<div class="page__main js-page-main">
|
63
|
+
{%- endif -%}
|
64
|
+
|
65
|
+
<div class="page__main-inner">
|
66
|
+
<div></div>
|
67
|
+
{%- if _show_header -%}
|
68
|
+
<div class="page__header">{%- include header.html -%}</div>
|
12
69
|
{%- endif -%}
|
13
|
-
|
70
|
+
|
71
|
+
<div class="page__content">
|
72
|
+
{%- if _full_width == false -%}
|
73
|
+
<div class ="main">
|
74
|
+
{%- endif -%}
|
75
|
+
|
76
|
+
<div class="col-2 js-col-2">
|
77
|
+
{%- if page.aside -%}
|
78
|
+
<aside class="page__aside js-page-aside">
|
79
|
+
{%- include aside/toc.html -%}
|
80
|
+
</aside>
|
81
|
+
{%- endif -%}
|
82
|
+
</div>
|
83
|
+
|
84
|
+
<div class="col-1">
|
85
|
+
{%- if _page_type == 'article' -%}
|
86
|
+
<article itemscope itemtype="http://schema.org/Article">
|
87
|
+
{%- elsif _page_type == 'webpage' -%}
|
88
|
+
<article itemscope itemtype="http://schema.org/WebPage">
|
89
|
+
{%- else -%}
|
90
|
+
<article>
|
91
|
+
{%- endif -%}
|
92
|
+
{%- if _show_title or _show_edit_on_github -%}
|
93
|
+
<div class="article__header">
|
94
|
+
{%- endif -%}
|
95
|
+
{%- if _show_title -%}
|
96
|
+
<header><h1 itemprop="headline">{{ _page_title }}</h1></header>
|
97
|
+
{%- else -%}
|
98
|
+
<header style="display: none;"><h1 itemprop="headline">{{ _page_title }}</h1></header>
|
99
|
+
{%- endif-%}
|
100
|
+
{%- if _show_edit_on_github -%}
|
101
|
+
{%- if site.repository and site.repository_tree -%}
|
102
|
+
{%- assign __locale = site.data.locale.POST_ON_GITHUB -%}
|
103
|
+
{%- include snippets/locale-to-string.html -%}
|
104
|
+
<a class="edit-on-github-button button button--secondary button--rounded button--sm"
|
105
|
+
href="https://github.com/{{ site.repository }}/tree/{{ site.repository_tree }}/{{ page.path }}">
|
106
|
+
<i class="fab fa-github"></i> {{ __return }}</a>
|
107
|
+
{%- endif -%}
|
108
|
+
{%- endif -%}
|
109
|
+
{%- if _show_title or _show_edit_on_github -%}
|
110
|
+
</div>
|
111
|
+
{%- endif -%}
|
112
|
+
|
113
|
+
{%- include article-info.html -%}
|
114
|
+
|
115
|
+
<div class="js-article-content">{{ content }}</div>
|
116
|
+
|
117
|
+
{%- if jekyll.environment != "development" and page.comment != false -%}
|
118
|
+
<section class="page__comments">{%- include comments.html -%}</section>
|
119
|
+
{%- endif -%}
|
120
|
+
|
121
|
+
</article>
|
122
|
+
</div>
|
123
|
+
|
124
|
+
{%- if _full_width == false -%}
|
125
|
+
</div>
|
126
|
+
{%- endif -%}
|
127
|
+
</div>
|
128
|
+
|
129
|
+
<div class="page__footer">{%- include footer.html -%}</div>
|
130
|
+
|
131
|
+
</div>
|
132
|
+
</div>
|
14
133
|
</div>
|
134
|
+
|
135
|
+
|
136
|
+
<script>
|
137
|
+
{%- include scripts/lib/scroll.js -%}
|
138
|
+
{%- include scripts/lib/affix.js -%}
|
139
|
+
{%- include scripts/lib/toc.js -%}
|
140
|
+
{%- include scripts/page.js -%}
|
141
|
+
</script>
|
142
|
+
|
143
|
+
{%- if page.sidebar -%}
|
144
|
+
<script>
|
145
|
+
{%- include scripts/sidebar.js -%}
|
146
|
+
</script>
|
147
|
+
{%- endif -%}
|
148
|
+
|
149
|
+
{%- if page.aside -%}
|
150
|
+
<script>
|
151
|
+
/* toc must before affix, since affix need to konw toc' height. */
|
152
|
+
{%- if page.aside.toc -%}
|
153
|
+
{%- include scripts/aside/toc.js -%}
|
154
|
+
{%- endif -%}
|
155
|
+
{%- include scripts/aside/affix.js -%}
|
156
|
+
</script>
|
157
|
+
{%- endif -%}
|
158
|
+
|
159
|
+
|
160
|
+
{%- include markdown-enhancements.html -%}
|
161
|
+
{%- include pageview.html -%}
|
162
|
+
{%- include analytics.html -%}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
.article__content {
|
2
|
+
p.success {
|
3
|
+
@include card(false);
|
4
|
+
background-color: mix($green, $background-color, 10%);
|
5
|
+
border: 1px solid $green;
|
6
|
+
}
|
7
|
+
|
8
|
+
p.info {
|
9
|
+
@include card(false);
|
10
|
+
background-color: mix($blue, $background-color, 10%);
|
11
|
+
border: 1px solid $blue;
|
12
|
+
}
|
13
|
+
|
14
|
+
p.warning {
|
15
|
+
@include card(false);
|
16
|
+
background-color: mix($yellow, $background-color, 10%);
|
17
|
+
border: 1px solid $yellow;
|
18
|
+
}
|
19
|
+
|
20
|
+
p.error {
|
21
|
+
@include card(false);
|
22
|
+
background-color: mix($red, $background-color, 10%);
|
23
|
+
border: 1px solid $red;
|
24
|
+
}
|
25
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
.article__content {
|
2
|
+
img.shadow, .shadow > img {
|
3
|
+
@include box-shadow();
|
4
|
+
}
|
5
|
+
|
6
|
+
img.border, .border > img {
|
7
|
+
border: 1px solid $border-color-l;
|
8
|
+
}
|
9
|
+
|
10
|
+
img.rounded, .rounded > img {
|
11
|
+
border-radius: map-get($base, border-radius);
|
12
|
+
}
|
13
|
+
|
14
|
+
img.circle, .circle > img {
|
15
|
+
border-radius: 50%;
|
16
|
+
}
|
17
|
+
}
|
data/_sass/animate/_fade-in.scss
CHANGED
data/_sass/common/_classes.scss
CHANGED
@@ -4,12 +4,15 @@
|
|
4
4
|
"common/classes/animation",
|
5
5
|
"common/classes/clearfix",
|
6
6
|
"common/classes/flex",
|
7
|
+
"common/classes/horizontal-rules",
|
8
|
+
"common/classes/pseudo",
|
7
9
|
"common/classes/link",
|
8
10
|
"common/classes/media",
|
11
|
+
"common/classes/overflow",
|
9
12
|
"common/classes/shadow",
|
10
|
-
"common/classes/
|
13
|
+
"common/classes/spacing",
|
11
14
|
"common/classes/split-line",
|
12
15
|
"common/classes/transform",
|
13
16
|
"common/classes/transition",
|
14
17
|
"common/classes/user-select",
|
15
|
-
"common/classes/
|
18
|
+
"common/classes/grid"
|
data/_sass/common/_reset.scss
CHANGED
@@ -14,7 +14,8 @@
|
|
14
14
|
*,
|
15
15
|
::before,
|
16
16
|
::after {
|
17
|
-
|
17
|
+
box-sizing: border-box;
|
18
|
+
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
18
19
|
}
|
19
20
|
|
20
21
|
/**
|
@@ -71,77 +72,81 @@ strong {
|
|
71
72
|
h1 {
|
72
73
|
font-size: map-get($base, font-size-h1);
|
73
74
|
color: $text-color-d;
|
74
|
-
@include media-breakpoint-down(
|
75
|
-
font-size: map-get($base, font-size-h1-
|
75
|
+
@include media-breakpoint-down(md) {
|
76
|
+
font-size: map-get($base, font-size-h1-sm);
|
76
77
|
}
|
77
78
|
}
|
78
79
|
|
79
80
|
h2 {
|
80
81
|
font-size: map-get($base, font-size-h2);
|
81
82
|
color: $text-color-d;
|
82
|
-
@include media-breakpoint-down(
|
83
|
-
font-size: map-get($base, font-size-h2-
|
83
|
+
@include media-breakpoint-down(md) {
|
84
|
+
font-size: map-get($base, font-size-h2-sm);
|
84
85
|
}
|
85
86
|
}
|
86
87
|
|
87
88
|
h3 {
|
88
89
|
font-size: map-get($base, font-size-h3);
|
89
90
|
color: $text-color-d;
|
90
|
-
@include media-breakpoint-down(
|
91
|
-
font-size: map-get($base, font-size-h3-
|
91
|
+
@include media-breakpoint-down(md) {
|
92
|
+
font-size: map-get($base, font-size-h3-sm);
|
92
93
|
}
|
93
94
|
}
|
94
95
|
|
95
96
|
h4 {
|
96
97
|
font-size: map-get($base, font-size-h4);
|
97
98
|
color: $text-color;
|
98
|
-
@include media-breakpoint-down(
|
99
|
-
font-size: map-get($base, font-size-h4-
|
99
|
+
@include media-breakpoint-down(md) {
|
100
|
+
font-size: map-get($base, font-size-h4-sm);
|
100
101
|
}
|
101
102
|
}
|
102
103
|
|
103
104
|
h5 {
|
104
105
|
font-size: map-get($base, font-size-h5);
|
105
106
|
color: $text-color;
|
107
|
+
@include media-breakpoint-down(md) {
|
108
|
+
font-size: map-get($base, font-size-h5-sm);
|
109
|
+
}
|
106
110
|
}
|
107
111
|
|
108
112
|
h6 {
|
109
113
|
font-size: map-get($base, font-size-h6);
|
110
114
|
color: $text-color-l;
|
115
|
+
@include media-breakpoint-down(md) {
|
116
|
+
font-size: map-get($base, font-size-h6-sm);
|
117
|
+
}
|
111
118
|
}
|
112
119
|
|
113
120
|
a {
|
114
121
|
font-weight: map-get($base, font-weight-bold);
|
115
|
-
@include
|
122
|
+
@include plain() {
|
116
123
|
text-decoration: none;
|
117
124
|
}
|
118
|
-
|
119
|
-
|
120
|
-
text-decoration: underline;
|
121
|
-
}
|
125
|
+
@include hover() {
|
126
|
+
text-decoration: underline;
|
122
127
|
}
|
123
|
-
@include
|
128
|
+
@include active() {
|
124
129
|
text-decoration: underline;
|
125
130
|
}
|
126
|
-
@include link-
|
127
|
-
@include
|
131
|
+
@include link-colors($main-color-1, $main-color-1, $main-color-1);
|
132
|
+
@include transition(map-get($link, transition));
|
128
133
|
}
|
129
134
|
|
130
135
|
pre, code {
|
131
|
-
font-family: map-get($base,
|
136
|
+
font-family: map-get($base, font-family-code);
|
132
137
|
}
|
133
138
|
|
134
139
|
code {
|
135
|
-
font-size: map-get($base, font-size-
|
136
|
-
line-height: map-get($base, line-height-
|
140
|
+
font-size: map-get($base, font-size-xs);
|
141
|
+
line-height: map-get($base, line-height-sm);
|
137
142
|
}
|
138
143
|
|
139
|
-
figure>img {
|
144
|
+
figure > img {
|
140
145
|
display: block;
|
141
146
|
}
|
142
147
|
|
143
148
|
figcaption {
|
144
|
-
font-size: map-get($base, font-size-
|
149
|
+
font-size: map-get($base, font-size-sm);
|
145
150
|
}
|
146
151
|
|
147
152
|
.icon {
|
@@ -168,4 +173,9 @@ input {
|
|
168
173
|
&:focus {
|
169
174
|
outline: none;
|
170
175
|
}
|
176
|
+
}
|
177
|
+
|
178
|
+
// mermaid
|
179
|
+
.mermaidTooltip {
|
180
|
+
display: none;
|
171
181
|
}
|