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.
Files changed (187) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +41 -153
  3. data/_data/authors.yml +0 -0
  4. data/_data/licenses.yml +16 -0
  5. data/_data/locale.yml +4 -10
  6. data/_data/navigation.yml +13 -0
  7. data/_data/variables.yml +22 -6
  8. data/_includes/analytics-providers/custom.html +0 -0
  9. data/_includes/analytics-providers/google.html +16 -0
  10. data/_includes/analytics.html +7 -0
  11. data/_includes/article-footer/custom.html +1 -0
  12. data/_includes/article-footer/license.html +24 -0
  13. data/_includes/article-info.html +90 -0
  14. data/_includes/aside/toc.html +1 -0
  15. data/_includes/author-profile.html +50 -0
  16. data/_includes/comments-providers/custom.html +0 -0
  17. data/_includes/comments-providers/disqus.html +22 -0
  18. data/_includes/comments-providers/gitalk.html +32 -0
  19. data/_includes/comments.html +9 -0
  20. data/_includes/follow-me.html +84 -0
  21. data/_includes/footer.html +39 -0
  22. data/_includes/head.html +54 -0
  23. data/_includes/header.html +33 -0
  24. data/_includes/markdown-enhancements.html +32 -0
  25. data/_includes/{utils → markdown-enhancements}/chart.html +1 -3
  26. data/_includes/{utils → markdown-enhancements}/mathjax.html +11 -4
  27. data/_includes/{utils → markdown-enhancements}/mermaid.html +1 -3
  28. data/_includes/pageview-providers/custom.html +0 -0
  29. data/_includes/pageview-providers/custom/home.html +0 -0
  30. data/_includes/pageview-providers/custom/post.html +0 -0
  31. data/_includes/pageview-providers/leancloud/home.html +35 -0
  32. data/_includes/pageview-providers/leancloud/leancloud.js +71 -0
  33. data/_includes/pageview-providers/leancloud/post.html +31 -0
  34. data/_includes/pageview.html +31 -0
  35. data/_includes/scripts/archieve.js +238 -0
  36. data/_includes/scripts/article-list.html +27 -0
  37. data/_includes/scripts/article.js +24 -0
  38. data/_includes/scripts/aside/affix.js +26 -0
  39. data/_includes/scripts/aside/toc.js +37 -0
  40. data/_includes/scripts/common.js +3 -0
  41. data/_includes/scripts/home.js +3 -0
  42. data/_includes/scripts/lib/affix.js +103 -0
  43. data/_includes/scripts/{utils.html → lib/lazyload.js} +55 -92
  44. data/_includes/scripts/lib/scroll.js +13 -0
  45. data/_includes/scripts/lib/throttle.js +28 -0
  46. data/_includes/scripts/lib/toc.js +106 -0
  47. data/_includes/scripts/page.js +3 -0
  48. data/_includes/scripts/sidebar.js +14 -0
  49. data/_includes/scripts/utils.js +38 -0
  50. data/_includes/scripts/variables.html +27 -0
  51. data/_includes/sidebar/toc.html +27 -0
  52. data/_includes/snippets/assign.html +5 -0
  53. data/_includes/snippets/get-nav-url.html +3 -2
  54. data/_includes/snippets/page-title.html +11 -6
  55. data/_includes/snippets/page-url.html +3 -1
  56. data/_includes/snippets/to-boolean.html +7 -0
  57. data/_includes/{icon → svg/icon}/social/behance.svg +0 -0
  58. data/_includes/{icon → svg/icon}/social/douban.svg +0 -0
  59. data/_includes/{icon → svg/icon}/social/facebook.svg +0 -0
  60. data/_includes/{icon → svg/icon}/social/flicker.svg +0 -0
  61. data/_includes/{icon → svg/icon}/social/github.svg +0 -0
  62. data/_includes/{icon → svg/icon}/social/googleplus.svg +0 -0
  63. data/_includes/{icon → svg/icon}/social/linkedin.svg +0 -0
  64. data/_includes/{icon → svg/icon}/social/mail.svg +0 -0
  65. data/_includes/{icon → svg/icon}/social/pinterest.svg +0 -0
  66. data/_includes/{icon → svg/icon}/social/qq.svg +0 -0
  67. data/_includes/{icon → svg/icon}/social/twitter.svg +0 -0
  68. data/_includes/{icon → svg/icon}/social/weibo.svg +0 -0
  69. data/_includes/{icon → svg/icon}/social/weixin.svg +0 -0
  70. data/_includes/{icon → svg/icon}/social/zhihu.svg +0 -0
  71. data/_includes/{logo → svg}/logo.svg +1 -1
  72. data/_includes/tags.html +52 -0
  73. data/_layouts/404.html +12 -0
  74. data/_layouts/archive.html +25 -0
  75. data/_layouts/article.html +78 -0
  76. data/_layouts/base.html +13 -33
  77. data/_layouts/home.html +135 -121
  78. data/_layouts/landing.html +164 -0
  79. data/_layouts/page.html +157 -9
  80. data/_sass/additional/_alert.scss +25 -0
  81. data/_sass/additional/_photo-frame.scss +17 -0
  82. data/_sass/animate/_fade-in-down.scss +1 -1
  83. data/_sass/animate/_fade-in.scss +1 -1
  84. data/_sass/common/_classes.scss +5 -2
  85. data/_sass/common/_reset.scss +32 -22
  86. data/_sass/common/_variables.scss +87 -31
  87. data/_sass/common/classes/_animation.scss +9 -0
  88. data/_sass/common/classes/_clearfix.scss +8 -0
  89. data/_sass/common/classes/_grid.scss +48 -0
  90. data/_sass/common/classes/_horizontal-rules.scss +14 -0
  91. data/_sass/common/classes/_link.scss +18 -145
  92. data/_sass/common/classes/_media.scss +1 -2
  93. data/_sass/common/classes/_overflow.scss +8 -0
  94. data/_sass/common/classes/_pseudo.scss +26 -0
  95. data/_sass/common/classes/_shadow.scss +13 -5
  96. data/_sass/common/classes/_spacing.scss +52 -0
  97. data/_sass/common/components/_button.scss +179 -47
  98. data/_sass/common/components/_card.scss +18 -0
  99. data/_sass/common/components/_menu.scss +43 -0
  100. data/_sass/common/components/_toc.scss +125 -0
  101. data/_sass/components/_article.content.scss +37 -45
  102. data/_sass/components/_article.info.scss +25 -0
  103. data/_sass/components/_author-profile.scss +43 -0
  104. data/_sass/components/_follow-me.scss +16 -19
  105. data/_sass/components/_footer.scss +16 -6
  106. data/_sass/components/_header.scss +26 -18
  107. data/_sass/components/_license.scss +1 -25
  108. data/_sass/components/_main.scss +13 -11
  109. data/_sass/components/_tags.scss +17 -36
  110. data/_sass/layout/{_error-404.scss → _404.scss} +2 -2
  111. data/_sass/layout/_all.scss +72 -63
  112. data/_sass/layout/_article.scss +44 -0
  113. data/_sass/layout/_home.scss +61 -52
  114. data/_sass/layout/_landing.scss +104 -0
  115. data/_sass/layout/_page.scss +155 -0
  116. data/_sass/{colors → skins}/_chocolate.scss +17 -6
  117. data/_sass/skins/_dark.scss +56 -0
  118. data/_sass/{colors → skins}/_default.scss +16 -5
  119. data/_sass/{colors → skins}/_forest.scss +16 -5
  120. data/_sass/{colors → skins}/_ocean.scss +16 -5
  121. data/_sass/{colors → skins}/_orange.scss +20 -9
  122. data/assets/android-chrome-192x192.png +0 -0
  123. data/assets/android-chrome-512x512.png +0 -0
  124. data/assets/apple-touch-icon.png +0 -0
  125. data/assets/browserconfig.xml +9 -0
  126. data/assets/css/main.scss +46 -0
  127. data/assets/favicon-16x16.png +0 -0
  128. data/assets/favicon-32x32.png +0 -0
  129. data/assets/favicon.ico +0 -0
  130. data/assets/images/logo/logo.svg +1 -1
  131. data/assets/mstile-144x144.png +0 -0
  132. data/assets/mstile-150x150.png +0 -0
  133. data/assets/mstile-310x150.png +0 -0
  134. data/assets/mstile-310x310.png +0 -0
  135. data/assets/mstile-70x70.png +0 -0
  136. data/assets/safari-pinned-tab.svg +38 -0
  137. data/assets/site.webmanifest +19 -0
  138. metadata +108 -76
  139. data/_includes/common-head.html +0 -10
  140. data/_includes/components/article-data.html +0 -55
  141. data/_includes/components/follow-me.html +0 -78
  142. data/_includes/components/footer.html +0 -10
  143. data/_includes/components/header.html +0 -42
  144. data/_includes/components/license.html +0 -26
  145. data/_includes/components/tags.html +0 -52
  146. data/_includes/head-icons-rel.html +0 -38
  147. data/_includes/icon/clear.svg +0 -3
  148. data/_includes/icon/link.svg +0 -1
  149. data/_includes/icon/menu.svg +0 -3
  150. data/_includes/icon/next.svg +0 -3
  151. data/_includes/icon/omit.svg +0 -1
  152. data/_includes/icon/previous.svg +0 -3
  153. data/_includes/icon/search.svg +0 -3
  154. data/_includes/scripts/all.html +0 -244
  155. data/_includes/scripts/common.html +0 -30
  156. data/_includes/scripts/data.html +0 -27
  157. data/_includes/scripts/home.html +0 -26
  158. data/_includes/scripts/page-post.html +0 -32
  159. data/_includes/scripts/post.html +0 -183
  160. data/_includes/utils/comment-disqus.html +0 -19
  161. data/_includes/utils/comment-gitalk.html +0 -25
  162. data/_includes/utils/google-analytics.html +0 -11
  163. data/_layouts/all.html +0 -20
  164. data/_layouts/error-404.html +0 -9
  165. data/_layouts/post.html +0 -60
  166. data/_sass/colors/_dark.scss +0 -45
  167. data/_sass/common/classes/_shape.scss +0 -19
  168. data/_sass/common/classes/_space.scss +0 -40
  169. data/_sass/components/_article.content.extra.scss +0 -41
  170. data/_sass/components/_article.data.scss +0 -36
  171. data/_sass/components/_pagination.scss +0 -19
  172. data/_sass/components/_toc.scss +0 -72
  173. data/_sass/layout/_default.scss +0 -19
  174. data/_sass/layout/_post.scss +0 -80
  175. data/assets/css/blog.scss +0 -41
  176. data/assets/images/logo/icon-120x120.png +0 -0
  177. data/assets/images/logo/icon-128x128.png +0 -0
  178. data/assets/images/logo/icon-150x150.png +0 -0
  179. data/assets/images/logo/icon-152x152.png +0 -0
  180. data/assets/images/logo/icon-167x167.png +0 -0
  181. data/assets/images/logo/icon-16x16.png +0 -0
  182. data/assets/images/logo/icon-180x180.png +0 -0
  183. data/assets/images/logo/icon-192x192.png +0 -0
  184. data/assets/images/logo/icon-310x150.png +0 -0
  185. data/assets/images/logo/icon-310x310.png +0 -0
  186. data/assets/images/logo/icon-48x48.png +0 -0
  187. data/assets/images/logo/icon-70x70.png +0 -0
@@ -0,0 +1 @@
1
+ <div class="toc-aside js-toc-root"></div>
@@ -0,0 +1,50 @@
1
+ {%- if __author -%}
2
+ {%- assign _author = __author -%}
3
+ {%- else -%}
4
+ {%- assign _author = site.author -%}
5
+ {%- endif -%}
6
+
7
+ {%- if _author.type == 'organization' -%}
8
+ {%- assign _author_itemtype = 'http://schema.org/Organization' -%}
9
+ {%- else -%}
10
+ {%- assign _author_itemtype = 'http://schema.org/Person' -%}
11
+ {%- endif -%}
12
+
13
+ <div itemscope itemtype="{{ _author_itemtype }}" class="author-profile card card--no-shadow clearfix">
14
+
15
+ {%- if _author.avatar -%}
16
+ {%- if _author.url -%}
17
+ <a href="{{ _author.url }}">
18
+ {%- endif -%}
19
+ <img itemprop="image" class="left-col" src="{{ _author.avatar }}"></img>
20
+ {%- if _author.url -%}
21
+ </a>
22
+ {%- endif -%}
23
+ {%- endif -%}
24
+
25
+
26
+ <div class="right-col clearfix">
27
+
28
+ {%- if _author.name -%}
29
+ <meta itemprop="name" content="{{ _author.name }}">
30
+ <p class="author-profile__name">
31
+ {%- if _author.url -%}
32
+ <meta itemprop="url" content="{{ _author.url }}">
33
+ <a href="{{ _author.url }}">
34
+ {%- endif -%}
35
+ {{ _author.name }}
36
+ {%- if _author.url -%}
37
+ </a>
38
+ {%- endif -%}
39
+ </p>
40
+ {%- endif -%}
41
+
42
+ {%- if _author.bio -%}
43
+ <p itemprop="description">{{ _author.bio }}</p>
44
+ {%- endif -%}
45
+
46
+ {%- assign __author = _author -%}
47
+ {%- include follow-me.html -%}
48
+
49
+ </div>
50
+ </div>
File without changes
@@ -0,0 +1,22 @@
1
+ {%- if page.key and
2
+ site.comments.disqus.shortname -%}
3
+
4
+ <div id="disqus_thread"></div>
5
+ <script>
6
+ /**
7
+ * RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS.
8
+ * LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables*/
9
+ var disqus_config = function () {
10
+ this.page.url = '{%- include snippets/page-url.html -%}';
11
+ this.page.identifier = '{{ page.key }}';
12
+ };
13
+ (function() { // DON'T EDIT BELOW THIS LINE
14
+ var d = document, s = d.createElement('script');
15
+ s.src = 'https://{{ site.comments.disqus.shortname }}.disqus.com/embed.js';
16
+ s.setAttribute('data-timestamp', +new Date());
17
+ (d.head || d.body).appendChild(s);
18
+ })();
19
+ </script>
20
+ <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
21
+
22
+ {%- endif -%}
@@ -0,0 +1,32 @@
1
+ {%- if page.key and
2
+ site.comments.gitalk.clientID and
3
+ site.comments.gitalk.clientSecret and
4
+ site.comments.gitalk.repository and
5
+ site.comments.gitalk.owner and
6
+ site.comments.gitalk.admin -%}
7
+
8
+ {%- include snippets/get-sources.html -%}
9
+ {%- assign _sources = __return -%}
10
+ <div id="js-gitalk-container"></div>
11
+ {%- assign _admin = '' -%}
12
+ {%- for _admin_id in site.comments.gitalk.admin -%}
13
+ {%- assign _admin = _admin | append: ", '" | append: _admin_id | append: "'" -%}
14
+ {%- endfor -%}
15
+ {%- assign _last = _admin | size | minus: 1 -%}
16
+ {%- assign _admin = _admin | slice: 2, _last -%}
17
+ <script>
18
+ window.Lazyload.css('{{ _sources.gitalk.css }}');
19
+ window.Lazyload.js('{{ _sources.gitalk.js }}', function() {
20
+ var gitalk = new Gitalk({
21
+ clientID: '{{ site.comments.gitalk.clientID }}',
22
+ clientSecret: '{{ site.comments.gitalk.clientSecret }}',
23
+ repo: '{{ site.comments.gitalk.repository }}',
24
+ owner: '{{ site.comments.gitalk.owner }}',
25
+ admin: [{{ _admin }}],
26
+ id: '{{ page.key }}'
27
+ });
28
+ gitalk.render('js-gitalk-container');
29
+ });
30
+ </script>
31
+
32
+ {%- endif -%}
@@ -0,0 +1,9 @@
1
+ {%- if jekyll.environment != 'development' -%}
2
+ {%- if site.comments.provider == 'disqus' -%}
3
+ {%- include comments-providers/disqus.html -%}
4
+ {%- elsif site.comments.provider == 'gitalk' -%}
5
+ {%- include comments-providers/gitalk.html -%}
6
+ {%- elsif site.comments.provider == 'custom' -%}
7
+ {%- include comments-providers/custom.html -%}
8
+ {%- endif -%}
9
+ {%- endif -%}
@@ -0,0 +1,84 @@
1
+ {%- if __author -%}
2
+ {%- assign _author = __author -%}
3
+ {%- else -%}
4
+ {%- assign _author = site.author -%}
5
+ {%- endif -%}
6
+
7
+ <div class="follow-me">
8
+ <ul class="menu menu--nowrap menu--center">
9
+
10
+
11
+ {%- if _author.url -%}
12
+ <link itemprop="url" href="{{ _author.url }}">
13
+ {%- endif -%}
14
+
15
+ {%- assign __locale = site.data.locale.EMAIL_ME -%}
16
+ {%- include snippets/locale-to-string.html -%}
17
+ {%- if _author.email -%}
18
+ <li title="{{ __return }}">
19
+ <a class="button button--circle mail-button" itemprop="email" href="mailto:{{ _author.email }}" target="_blank">
20
+ <i class="fas fa-envelope"></i>
21
+ </a>
22
+ {%- endif -%}
23
+
24
+ {%- assign __locale = site.data.locale.FOLLOW_ME -%}
25
+ {%- include snippets/locale-to-string.html -%}
26
+
27
+ {%- if _author.weibo -%}
28
+ <li title="{{ __return | replace: '[NAME]', 'Weibo' }}">
29
+ <a class="button button--circle weibo-button" itemprop="sameAs" href="https://weibo.com/{{ _author.weibo }}" target="_blank">
30
+ <div class="icon">{%- include svg/icon/social/weibo.svg -%}</div>
31
+ </a>
32
+ </li>
33
+ {%- endif -%}
34
+
35
+ {%- if _author.facebook -%}
36
+ <li title="{{ __return | replace: '[NAME]', 'Facebook' }}">
37
+ <a class="button button--circle facebook-button" itemprop="sameAs" href="https://www.facebook.com/{{ _author.facebook }}" target="_blank">
38
+ <div class="icon">{%- include svg/icon/social/facebook.svg -%}</div>
39
+ </a>
40
+ </li>
41
+ {%- endif -%}
42
+
43
+ {%- if _author.twitter -%}
44
+ <li title="{{ __return | replace: '[NAME]', 'Twitter' }}">
45
+ <a class="button button--circle twitter-button" itemprop="sameAs" href="https://twitter.com/{{ _author.twitter }}" target="_blank">
46
+ <div class="icon">{%- include svg/icon/social/twitter.svg -%}</div>
47
+ </a>
48
+ </li>
49
+ {%- endif -%}
50
+
51
+ {%- if _author.googleplus -%}
52
+ <li title="{{ __return | replace: '[NAME]', 'Google+' }}">
53
+ <a class="button button--circle googlepluse-button" itemprop="sameAs" href="https://plus.google.com/u/0/{{ _author.googleplus }}" target="_blank">
54
+ <div class="icon">{%- include svg/icon/social/googleplus.svg -%}</div>
55
+ </a>
56
+ </li>
57
+ {%- endif -%}
58
+
59
+ {%- if _author.github -%}
60
+ <li title="{{ __return | replace: '[NAME]', 'Github' }}">
61
+ <a class="button button--circle github-button" itemprop="sameAs" href="https://github.com/{{ _author.github }}" target="_blank">
62
+ <div class="icon">{%- include svg/icon/social/github.svg -%}</div>
63
+ </a>
64
+ </li>
65
+ {%- endif -%}
66
+
67
+ {%- if _author.linkedin -%}
68
+ <li title="{{ __return | replace: '[NAME]', 'Linkedin' }}">
69
+ <a class="button button--circle linkedin-button" itemprop="sameAs" href="https://www.linkedin.com/in/{{ _author.linkedin }}" target="_blank">
70
+ <div class="icon">{%- include svg/icon/social/linkedin.svg -%}</div>
71
+ </a>
72
+ </li>
73
+ {%- endif -%}
74
+
75
+ {%- if _author.douban -%}
76
+ <li title="{{ __return | replace: '[NAME]', 'Douban' }}">
77
+ <a class="button button--circle douban-button" itemprop="sameAs" href="https://www.douban.com/people/{{ _author.douban }}" target="_blank">
78
+ <div class="icon">{%- include svg/icon/social/douban.svg -%}</div>
79
+ </a>
80
+ </li>
81
+ {%- endif -%}
82
+
83
+ </ul>
84
+ </div>
@@ -0,0 +1,39 @@
1
+
2
+ <div class="footer js-page-footer">
3
+ <div class="main">
4
+
5
+ {%- assign __author = site.author -%}
6
+ {%- if __author.type == 'organization' -%}
7
+ {%- assign _author_itemtype = 'http://schema.org/Organization' -%}
8
+ {%- else -%}
9
+ {%- assign _author_itemtype = 'http://schema.org/Person' -%}
10
+ {%- endif -%}
11
+
12
+ <aside itemscope itemtype="{{ _author_itemtype }}">
13
+ <meta itemprop="name" content="{{ __author.name }}">
14
+ {%- assign __path = __author.url | default: '/'-%}
15
+ {%- include snippets/get-nav-url.html -%}
16
+ {%- assign _author_url = __return -%}
17
+ <meta itemprop="url" content="{{ _author_url }}">
18
+ {%- if __author.bio -%}
19
+ <meta itemprop="description" content="{{ __author.bio }}">
20
+ {%- endif -%}
21
+ {%- include follow-me.html -%}
22
+ </aside>
23
+ <footer class="site-info">
24
+ {%- assign __path = site.paths.rss | default: site.data.variables.default.paths.rss -%}
25
+ {%- include snippets/get-nav-url.html -%}
26
+ {%- assign _href = __return -%}
27
+ {%- assign __locale = site.data.locale.NAV.RSS -%}
28
+ {%- include snippets/locale-to-string.html -%}
29
+ {%- assign _locale_nav_rss = __return -%}
30
+ <p>
31
+ <span class="site-info__copyright">© {{ site.title }} {{ site.data.locale.COPYRIGHT_DATES }}</span>
32
+ <a class="site-info__rss" type="application/rss+xml" href="{{ _href }}">{{ _locale_nav_rss }}</a>
33
+ </p>
34
+ <p>Powered by <a title="Jekyll is a simple, blog-aware, static site generator." href="http://jekyllrb.com/">Jekyll</a> & <a
35
+ title="TeXt is a succinct theme for blogging." href="https://github.com/kitian616/jekyll-TeXt-theme">TeXt Theme</a>.
36
+ </p>
37
+ </footer>
38
+ </div>
39
+ </div>
@@ -0,0 +1,54 @@
1
+ <meta charset="utf-8">
2
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
3
+ <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
4
+
5
+ {%- include snippets/page-title.html -%}
6
+ <title>{%- if __return -%}{{ __return }} - {{ site.title }}{%- else -%}{{ site.title }}{%- endif -%}</title>
7
+
8
+ <meta name="description" content="{%- if page.excerpt -%}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{%- else -%}{{ site.description }}{%- endif -%}">
9
+ <link rel="canonical" href="{%- include snippets/page-url.html -%}">
10
+
11
+ {%- assign __path = site.paths.rss | default: site.data.variables.default.paths.rss -%}
12
+ {%- include snippets/get-nav-url.html -%}
13
+ <link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ __return }}">
14
+ <!-- begin favicon -->
15
+ {%- assign __path = '/assets/apple-touch-icon.png' -%}
16
+ {%- include snippets/prepend-baseurl.html -%}
17
+ <link rel="apple-touch-icon" sizes="180x180" href="{{ __return }}">
18
+
19
+ {%- assign __path = '/assets/favicon-32x32.png' -%}
20
+ {%- include snippets/prepend-baseurl.html -%}
21
+ <link rel="icon" type="image/png" sizes="32x32" href="{{ __return }}">
22
+
23
+ {%- assign __path = '/assets/favicon-16x16.png' -%}
24
+ {%- include snippets/prepend-baseurl.html -%}
25
+ <link rel="icon" type="image/png" sizes="16x16" href="{{ __return }}">
26
+
27
+ {%- assign __path = '/assets/site.webmanifest' -%}
28
+ {%- include snippets/prepend-baseurl.html -%}
29
+ <link rel="manifest" href="{{ __return }}">
30
+
31
+ {%- assign __path = '/assets/safari-pinned-tab.svg' -%}
32
+ {%- include snippets/prepend-baseurl.html -%}
33
+ <link rel="mask-icon" href="{{ __return }}" color="#fc4d50">
34
+
35
+ {%- assign __path = '/assets/favicon.ico' -%}
36
+ {%- include snippets/prepend-baseurl.html -%}
37
+ <link rel="shortcut icon" href="{{ __return }}">
38
+
39
+ <meta name="msapplication-TileColor" content="#ffc40d">
40
+
41
+ {%- assign __path = '/assets/browserconfig.xml' -%}
42
+ {%- include snippets/prepend-baseurl.html -%}
43
+ <meta name="msapplication-config" content="{{ __return }}">
44
+
45
+ <meta name="theme-color" content="#ffffff">
46
+ <!-- end favicon -->
47
+
48
+ {%- assign __path = '/assets/css/main.css' -%}
49
+ {%- include snippets/prepend-baseurl.html -%}
50
+ <link rel="stylesheet" href="{{ __return }}">
51
+
52
+ {%- include snippets/get-sources.html -%}
53
+ {%- assign _sources = __return -%}
54
+ <link rel="stylesheet" href="{{ _sources.font_awesome }}" >
@@ -0,0 +1,33 @@
1
+ <header class="header">
2
+ <div class="main clearfix">
3
+ <div class="logo">
4
+ {%- include svg/logo.svg -%}
5
+ {%- assign __path = site.paths.root | default: site.data.variables.default.paths.root -%}
6
+ {%- include snippets/get-nav-url.html -%}
7
+ {%- if site.title -%}
8
+ <a title="{%- if site.description -%}{{ site.description }}{%- endif -%}" href="{{ __return }}">{{ site.title }}</a>
9
+ {%- endif -%}
10
+ </div>
11
+ {%- if site.data.navigation.header -%}
12
+ <nav>
13
+ <ul>
14
+ {%- for _item in site.data.navigation.header -%}
15
+ {%- assign __path = _item.url -%}
16
+ {%- include snippets/get-nav-url.html -%}
17
+ {%- assign _nav_url = __return -%}
18
+ {%- assign __path = page.url -%}
19
+ {%- include snippets/get-nav-url.html -%}
20
+ {%- assign _page_url = __return -%}
21
+ {%- assign __locale = _item.titles -%}
22
+ {%- include snippets/locale-to-string.html -%}
23
+ {%- if _nav_url == _page_url -%}
24
+ <li class="active"><a href="{{ _nav_url }}">{%- if _item.title -%}{{ _item.title }}{%- else -%}{{ __return }}{%- endif -%}</a></li>
25
+ {%- else -%}
26
+ <li><a href="{{ _nav_url }}">{%- if _item.title -%}{{ _item.title }}{%- else -%}{{ __return }}{%- endif -%}</a></li>
27
+ {%- endif -%}
28
+ {%- endfor -%}
29
+ </ul>
30
+ </nav>
31
+ {%- endif -%}
32
+ </div>
33
+ </header>
@@ -0,0 +1,32 @@
1
+ {%- assign __target = site.data.variables.default.chart -%}
2
+ {%- assign __source = site.chart -%}
3
+ {%- include snippets/assign.html -%}
4
+
5
+ {%- assign __target = __return -%}
6
+ {%- assign __source = page.chart -%}
7
+ {%- include snippets/assign.html -%}
8
+ {%- if __return == true -%}
9
+ {%- include markdown-enhancements/chart.html -%}
10
+ {%- endif -%}
11
+
12
+ {%- assign __target = site.data.variables.default.mathjax -%}
13
+ {%- assign __source = site.chart -%}
14
+ {%- include snippets/assign.html -%}
15
+
16
+ {%- assign __target = __return -%}
17
+ {%- assign __source = page.mathjax -%}
18
+ {%- include snippets/assign.html -%}
19
+ {%- if __return == true -%}
20
+ {%- include markdown-enhancements/mathjax.html -%}
21
+ {%- endif -%}
22
+
23
+ {%- assign __target = site.data.variables.default.mermaid -%}
24
+ {%- assign __source = site.chart -%}
25
+ {%- include snippets/assign.html -%}
26
+
27
+ {%- assign __target = __return -%}
28
+ {%- assign __source = page.mermaid -%}
29
+ {%- include snippets/assign.html -%}
30
+ {%- if __return == true -%}
31
+ {%- include markdown-enhancements/mermaid.html -%}
32
+ {%- endif -%}
@@ -1,4 +1,3 @@
1
- {%- if site.chart == true or page.chart == true -%}
2
1
  {%- include snippets/get-sources.html -%}
3
2
  {%- assign _sources = __return -%}
4
3
  <script>
@@ -13,5 +12,4 @@
13
12
  (_ctx && _text) && (new Chart(_ctx, JSON.parse(_text)) && $this.attr('data-processed', true));
14
13
  });
15
14
  });
16
- </script>
17
- {%- endif -%}
15
+ </script>
@@ -1,14 +1,21 @@
1
- {%- if site.mathjax == true or page.mathjax == true -%}
2
1
  {%- include snippets/get-sources.html -%}
3
2
  {%- assign _sources = __return -%}
3
+
4
+ {%- assign __target = site.data.variables.default.mathjax_autoNumber -%}
5
+ {%- assign __source = site.mathjax_autoNumber -%}
6
+ {%- include snippets/assign.html -%}
7
+
8
+ {%- assign __target = __return -%}
9
+ {%- assign __source = page.mathjax_autoNumber -%}
10
+ {%- include snippets/assign.html -%}
11
+
4
12
  <script type="text/x-mathjax-config">
5
13
  var _config = { tex2jax: {
6
14
  inlineMath: [['$','$'], ['\\(','\\)']]
7
15
  }};
8
- {%- if site.mathjax_autoNumber == true or page.mathjax_autoNumber == true -%}
16
+ {%- if __return == true -%}
9
17
  _config.TeX = { equationNumbers: { autoNumber: "all" } };
10
18
  {%- endif -%}
11
19
  MathJax.Hub.Config(_config);
12
20
  </script>
13
- <script type="text/javascript" src="{{ _sources.mathjax }}" async></script>
14
- {%- endif -%}
21
+ <script type="text/javascript" src="{{ _sources.mathjax }}" async></script>
@@ -1,4 +1,3 @@
1
- {%- if site.mermaid == true or page.mermaid == true -%}
2
1
  {%- include snippets/get-sources.html -%}
3
2
  {%- assign _sources = __return -%}
4
3
  <script>
@@ -6,5 +5,4 @@
6
5
  mermaid.init(undefined, '.language-mermaid');
7
6
  mermaid.initialize({ startOnLoad: true });
8
7
  });
9
- </script>
10
- {%- endif -%}
8
+ </script>
File without changes
File without changes
File without changes
@@ -0,0 +1,35 @@
1
+ {%- include snippets/get-sources.html -%}
2
+ {%- assign _sources = __return -%}
3
+
4
+ {%- assign _LEANCLOUD_APP_ID = site.pageview.leancloud.app_id -%}
5
+ {%- assign _LEANCLOUD_APP_KEY = site.pageview.leancloud.app_key -%}
6
+ {%- assign _LEANCLOUD_APP_CLASS = site.pageview.leancloud.app_class -%}
7
+
8
+ {%- if _LEANCLOUD_APP_ID and
9
+ _LEANCLOUD_APP_KEY and
10
+ _LEANCLOUD_APP_CLASS -%}
11
+
12
+ <script>
13
+ {%- include pageview-providers/leancloud/leancloud.js -%}
14
+ </script>
15
+ <script>
16
+ window.Lazyload.js(['{{ _sources.jquery }}', '{{ _sources.leancloud_js_sdk}}'], function() {
17
+ var pageview = window.pageview(AV, {
18
+ appId: '{{ _LEANCLOUD_APP_ID }}',
19
+ appKey: '{{ _LEANCLOUD_APP_KEY }}',
20
+ appClass: '{{ _LEANCLOUD_APP_CLASS }}'
21
+ });
22
+ $('.js-pageview').each(function() {
23
+ var $this = $(this);
24
+ var key = $this.attr('data-page-key');
25
+ pageview.get(key, function(view) {
26
+ $this.attr('itemprop', 'userInteractionCount').attr('content', view).text(view);
27
+ });
28
+ });
29
+ });
30
+ </script>
31
+
32
+ {%- endif -%}
33
+
34
+
35
+