hexo-theme-yet-the-books-optimize 1.0.3 → 1.0.5

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 (38) hide show
  1. package/LICENSE +21 -21
  2. package/index.js +2 -2
  3. package/languages/default.yml +4 -4
  4. package/languages/en.yml +4 -4
  5. package/languages/zh-CN.yml +4 -4
  6. package/layout/_partial/_analytics/baidu.ejs +8 -8
  7. package/layout/_partial/_analytics/cnzz.ejs +3 -3
  8. package/layout/_partial/_analytics/google.ejs +6 -6
  9. package/layout/_partial/_analytics/gtags.ejs +7 -7
  10. package/layout/_partial/_analytics/gtm-body.ejs +5 -5
  11. package/layout/_partial/_analytics/gtm-head.ejs +8 -8
  12. package/layout/_partial/_analytics/la.ejs +3 -3
  13. package/layout/_partial/_analytics/tencent.ejs +8 -8
  14. package/layout/_partial/_comment/DiscussBot.ejs +16 -16
  15. package/layout/_partial/_comment/changyan.ejs +13 -13
  16. package/layout/_partial/_comment/disqus.ejs +17 -17
  17. package/layout/_partial/_comment/disqusjs.ejs +16 -16
  18. package/layout/_partial/_comment/giscus.ejs +12 -12
  19. package/layout/_partial/_comment/gitalk.ejs +13 -13
  20. package/layout/_partial/_comment/gitment.ejs +13 -13
  21. package/layout/_partial/_comment/livere.ejs +11 -11
  22. package/layout/_partial/_comment/utteranc.ejs +9 -9
  23. package/layout/_partial/_comment/valine.ejs +9 -9
  24. package/layout/_partial/analytics.ejs +17 -17
  25. package/layout/_partial/head.ejs +28 -28
  26. package/layout/_partial/header.ejs +9 -9
  27. package/layout/_partial/post-nav.ejs +32 -32
  28. package/layout/archive.ejs +79 -79
  29. package/layout/category.ejs +24 -24
  30. package/layout/index.ejs +62 -62
  31. package/layout/layout.ejs +12 -12
  32. package/layout/post.ejs +39 -39
  33. package/move_config.js +17 -17
  34. package/package.json +17 -17
  35. package/scripts/helper/css_auto_version.js +17 -17
  36. package/scripts/helper/js_auto_version.js +17 -17
  37. package/source/css/style.css +623 -618
  38. package/source/js/core.js +24 -24
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2021 折影轻梦
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) 2021 折影轻梦
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.
package/index.js CHANGED
@@ -1,2 +1,2 @@
1
- // 这个文件用来防止 hexo 5.0.0 使用 "hexo clean" 命令报错。
2
- // This file is used to prevent hexo 5.0.0 from using "hexo clean" command error.
1
+ // 这个文件用来防止 hexo 5.0.0 使用 "hexo clean" 命令报错。
2
+ // This file is used to prevent hexo 5.0.0 from using "hexo clean" command error.
@@ -1,5 +1,5 @@
1
- search: 搜索
2
- archive: 文章归档
3
- category: 文章分类
4
- tag: 标签
1
+ search: 搜索
2
+ archive: 文章归档
3
+ category: 文章分类
4
+ tag: 标签
5
5
  placeholder: 在这里输入搜索关键词
package/languages/en.yml CHANGED
@@ -1,5 +1,5 @@
1
- search: Search
2
- archive: Archive
3
- category: Category
4
- tag: Tag
1
+ search: Search
2
+ archive: Archive
3
+ category: Category
4
+ tag: Tag
5
5
  placeholder: Enter your search terms here
@@ -1,5 +1,5 @@
1
- search: 搜索
2
- archive: 文章归档
3
- category: 文章分类
4
- tag: 标签
1
+ search: 搜索
2
+ archive: 文章归档
3
+ category: 文章分类
4
+ tag: 标签
5
5
  placeholder: 在这里输入搜索关键词
@@ -1,9 +1,9 @@
1
- <!-- baidu Analytics -->
2
- <script>
3
- var _hmt = _hmt || [];
4
- (function() {var hm = document.createElement('script');
5
- hm.src = 'https://hm.baidu.com/hm.js?<%= theme.analytics.baidu_site_id %>';
6
- var s = document.getElementsByTagName('script')[0];
7
- s.parentNode.insertBefore(hm, s);
8
- })();
1
+ <!-- baidu Analytics -->
2
+ <script>
3
+ var _hmt = _hmt || [];
4
+ (function() {var hm = document.createElement('script');
5
+ hm.src = 'https://hm.baidu.com/hm.js?<%= theme.analytics.baidu_site_id %>';
6
+ var s = document.getElementsByTagName('script')[0];
7
+ s.parentNode.insertBefore(hm, s);
8
+ })();
9
9
  </script>
@@ -1,4 +1,4 @@
1
- <!-- CNZZ Analytics -->
2
- <div hidden>
3
- <script src="//s95.cnzz.com/z_stat.php?id=<%= theme.analytics.cnzz_site_id %>&web_id=<%= theme.analytics.cnzz_site_id %>" language="JavaScript"></script>
1
+ <!-- CNZZ Analytics -->
2
+ <div hidden>
3
+ <script src="//s95.cnzz.com/z_stat.php?id=<%= theme.analytics.cnzz_site_id %>&web_id=<%= theme.analytics.cnzz_site_id %>" language="JavaScript"></script>
4
4
  </div>
@@ -1,7 +1,7 @@
1
- <!-- Google Analytics -->
2
- <script>
3
- window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
4
- ga('create', '<%= theme.analytics.google_site_id %>', 'auto');
5
- ga('send', 'pageview');
6
- </script>
1
+ <!-- Google Analytics -->
2
+ <script>
3
+ window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
4
+ ga('create', '<%= theme.analytics.google_site_id %>', 'auto');
5
+ ga('send', 'pageview');
6
+ </script>
7
7
  <script async src="https://www.google-analytics.com/analytics.js"></script>
@@ -1,8 +1,8 @@
1
- <!-- Global site tag (gtag.js) - Google Analytics -->
2
- <script async src="https://www.googletagmanager.com/gtag/js?id=<%= theme.analytics.gtags_site_id %>"></script>
3
- <script>
4
- window.dataLayer = window.dataLayer || [];
5
- function gtag(){dataLayer.push(arguments);}
6
- gtag('js', new Date());
7
- gtag('config', '<%= theme.analytics.gtags_site_id %>');
1
+ <!-- Global site tag (gtag.js) - Google Analytics -->
2
+ <script async src="https://www.googletagmanager.com/gtag/js?id=<%= theme.analytics.gtags_site_id %>"></script>
3
+ <script>
4
+ window.dataLayer = window.dataLayer || [];
5
+ function gtag(){dataLayer.push(arguments);}
6
+ gtag('js', new Date());
7
+ gtag('config', '<%= theme.analytics.gtags_site_id %>');
8
8
  </script>
@@ -1,6 +1,6 @@
1
- <% if(theme.analytics.gtm_container_id) { %>
2
- <!-- Google Tag Manager (noscript) -->
3
- <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=<%= theme.analytics.gtm_container_id %>"
4
- height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
5
- <!-- End Google Tag Manager (noscript) -->
1
+ <% if(theme.analytics.gtm_container_id) { %>
2
+ <!-- Google Tag Manager (noscript) -->
3
+ <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=<%= theme.analytics.gtm_container_id %>"
4
+ height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
5
+ <!-- End Google Tag Manager (noscript) -->
6
6
  <% } %>
@@ -1,9 +1,9 @@
1
- <% if(theme.analytics.gtm_container_id) { %>
2
- <!-- Google Tag Manager -->
3
- <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
4
- new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
5
- j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
6
- 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
7
- })(window,document,'script','dataLayer','<%= theme.analytics.gtm_container_id %>');</script>
8
- <!-- End Google Tag Manager -->
1
+ <% if(theme.analytics.gtm_container_id) { %>
2
+ <!-- Google Tag Manager -->
3
+ <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
4
+ new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
5
+ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
6
+ 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
7
+ })(window,document,'script','dataLayer','<%= theme.analytics.gtm_container_id %>');</script>
8
+ <!-- End Google Tag Manager -->
9
9
  <% } %>
@@ -1,4 +1,4 @@
1
- <!-- 51.La Analytics -->
2
- <div hidden>
3
- <script type="text/javascript" src="https://js.users.51.la/<%= theme.analytics.la_site_id %>.js"></script>
1
+ <!-- 51.La Analytics -->
2
+ <div hidden>
3
+ <script type="text/javascript" src="https://js.users.51.la/<%= theme.analytics.la_site_id %>.js"></script>
4
4
  </div>
@@ -1,9 +1,9 @@
1
- <!-- Tencent Analytics -->
2
- <script>
3
- (function() {
4
- var hm = document.createElement("script");
5
- hm.src = "//tajs.qq.com/stats?sId=<%= theme.analytics.tencent_site_id %>";
6
- var s = document.getElementsByTagName("script")[0];
7
- s.parentNode.insertBefore(hm, s);
8
- })();
1
+ <!-- Tencent Analytics -->
2
+ <script>
3
+ (function() {
4
+ var hm = document.createElement("script");
5
+ hm.src = "//tajs.qq.com/stats?sId=<%= theme.analytics.tencent_site_id %>";
6
+ var s = document.getElementsByTagName("script")[0];
7
+ s.parentNode.insertBefore(hm, s);
8
+ })();
9
9
  </script>
@@ -1,16 +1,16 @@
1
- <style>
2
- #nexmoe-content .nexmoe-comment {
3
- background-color: #fff;
4
- border-top: 20px solid #f5f6f5;
5
- }
6
- </style>
7
- <script
8
- async
9
- src="https://comments.app/js/widget.js?2"
10
- data-comments-app-website="<%- theme.DiscussBot.id %>"
11
- data-limit="<%- theme.DiscussBot.comments %>"
12
- data-color="<%- theme.DiscussBot.color %>"
13
- data-dislikes="<%- theme.DiscussBot.dislike %>"
14
- data-outlined="<%- theme.DiscussBot.icons %>"
15
- data-colorful="<%- theme.DiscussBot.diff %>"
16
- ></script>
1
+ <style>
2
+ #nexmoe-content .nexmoe-comment {
3
+ background-color: #fff;
4
+ border-top: 20px solid #f5f6f5;
5
+ }
6
+ </style>
7
+ <script
8
+ async
9
+ src="https://comments.app/js/widget.js?2"
10
+ data-comments-app-website="<%- theme.DiscussBot.id %>"
11
+ data-limit="<%- theme.DiscussBot.comments %>"
12
+ data-color="<%- theme.DiscussBot.color %>"
13
+ data-dislikes="<%- theme.DiscussBot.dislike %>"
14
+ data-outlined="<%- theme.DiscussBot.icons %>"
15
+ data-colorful="<%- theme.DiscussBot.diff %>"
16
+ ></script>
@@ -1,14 +1,14 @@
1
- <!-- 畅言公共 js 代码 start -->
2
- <script id="cy_cmt_num" src="https://changyan.sohu.com/upload/plugins/plugins.list.count.js?clientId=<%=theme.changyan.appid%>">
3
- </script>
4
- <!-- 畅言公共 js 代码 end -->
5
- <!--PC和WAP自适应版-->
6
- <div id="SOHUCS" sid="<% if(theme.changyan.thread_key_type == "id"){ %><%= page.id %><% } else { %><%= page.path %><% } %>"></div>
7
- <script>
8
- (function(){
9
- var appid = '<%= theme.changyan.appid %>';
10
- var conf = '<%= theme.changyan.conf %>';
11
- var width = window.innerWidth || document.documentElement.clientWidth;
12
- if (width < 960) {
13
- window.document.write('<script id="changyan_mobile_js" charset="utf-8" src="https://changyan.sohu.com/upload/mobile/wap-js/changyan_mobile.js?client_id=' + appid + '&conf=' + conf + '"><\/script>'); } else { var loadJs=function(d,a){var c=document.getElementsByTagName("head")[0]||document.head||document.documentElement;var b=document.createElement("script");b.setAttribute("type","text/javascript");b.setAttribute("charset","UTF-8");b.setAttribute("src",d);if(typeof a==="function"){if(window.attachEvent){b.onreadystatechange=function(){var e=b.readyState;if(e==="loaded"||e==="complete"){b.onreadystatechange=null;a()}}}else{b.onload=a}}c.appendChild(b)};loadJs("https://changyan.sohu.com/upload/changyan.js",function(){window.changyan.api.config({appid:appid,conf:conf})}); } })();
1
+ <!-- 畅言公共 js 代码 start -->
2
+ <script id="cy_cmt_num" src="https://changyan.sohu.com/upload/plugins/plugins.list.count.js?clientId=<%=theme.changyan.appid%>">
3
+ </script>
4
+ <!-- 畅言公共 js 代码 end -->
5
+ <!--PC和WAP自适应版-->
6
+ <div id="SOHUCS" sid="<% if(theme.changyan.thread_key_type == "id"){ %><%= page.id %><% } else { %><%= page.path %><% } %>"></div>
7
+ <script>
8
+ (function(){
9
+ var appid = '<%= theme.changyan.appid %>';
10
+ var conf = '<%= theme.changyan.conf %>';
11
+ var width = window.innerWidth || document.documentElement.clientWidth;
12
+ if (width < 960) {
13
+ window.document.write('<script id="changyan_mobile_js" charset="utf-8" src="https://changyan.sohu.com/upload/mobile/wap-js/changyan_mobile.js?client_id=' + appid + '&conf=' + conf + '"><\/script>'); } else { var loadJs=function(d,a){var c=document.getElementsByTagName("head")[0]||document.head||document.documentElement;var b=document.createElement("script");b.setAttribute("type","text/javascript");b.setAttribute("charset","UTF-8");b.setAttribute("src",d);if(typeof a==="function"){if(window.attachEvent){b.onreadystatechange=function(){var e=b.readyState;if(e==="loaded"||e==="complete"){b.onreadystatechange=null;a()}}}else{b.onload=a}}c.appendChild(b)};loadJs("https://changyan.sohu.com/upload/changyan.js",function(){window.changyan.api.config({appid:appid,conf:conf})}); } })();
14
14
  </script>
@@ -1,17 +1,17 @@
1
- <script id="dsq-count-scr" src="https://<%= theme.disqus.shortname %>.disqus.com/count.js" async></script>
2
- <div id="disqus_thread"></div>
3
- <script>
4
- var disqus_config = function () {
5
- this.page.url = '<%= page.permalink %>'; // Replace PAGE_URL with your page's canonical URL variable
6
- this.page.identifier = '<%= page.permalink %>'; // Replace PAGE_IDENTIFIER with your page's unique identifier variable
7
- };
8
- </script>
9
- <script id="disqus-thread-script">
10
- (function() { // DON'T EDIT BELOW THIS LINE
11
- var d = document;
12
- var s = d.createElement('script');
13
- s.src = '//<%= theme.disqus.shortname %>.disqus.com/embed.js';
14
- s.setAttribute('data-timestamp', + new Date());
15
- (d.head || d.body).appendChild(s);
16
- })();
17
- </script>
1
+ <script id="dsq-count-scr" src="https://<%= theme.disqus.shortname %>.disqus.com/count.js" async></script>
2
+ <div id="disqus_thread"></div>
3
+ <script>
4
+ var disqus_config = function () {
5
+ this.page.url = '<%= page.permalink %>'; // Replace PAGE_URL with your page's canonical URL variable
6
+ this.page.identifier = '<%= page.permalink %>'; // Replace PAGE_IDENTIFIER with your page's unique identifier variable
7
+ };
8
+ </script>
9
+ <script id="disqus-thread-script">
10
+ (function() { // DON'T EDIT BELOW THIS LINE
11
+ var d = document;
12
+ var s = d.createElement('script');
13
+ s.src = '//<%= theme.disqus.shortname %>.disqus.com/embed.js';
14
+ s.setAttribute('data-timestamp', + new Date());
15
+ (d.head || d.body).appendChild(s);
16
+ })();
17
+ </script>
@@ -1,17 +1,17 @@
1
- <!-- Unpkg -->
2
- <link rel="stylesheet" href="<%- theme.cdn.disqusjs.css %>">
3
- <script src="<%- theme.cdn.disqusjs.js %>"></script>
4
- <div id="disqus_thread"></div>
5
- <script>
6
- var dsqjs = new DisqusJS({
7
- shortname: '<%= theme.disqusjs.shortname %>',
8
- siteName: '<%= theme.disqusjs.sitename %>',
9
- identifier: '<%= page.permalink %>',
10
- url: '<%= page.permalink %>',
11
- title: '<%= page.title %>',
12
- api: '<%= theme.disqusjs.api %>',
13
- apikey: '<%= theme.disqusjs.apikey %>',
14
- admin: '<%= theme.disqusjs.admin %>',
15
- adminLabel: '<%= theme.disqusjs.adminLabel %>'
16
- });
1
+ <!-- Unpkg -->
2
+ <link rel="stylesheet" href="<%- theme.cdn.disqusjs.css %>">
3
+ <script src="<%- theme.cdn.disqusjs.js %>"></script>
4
+ <div id="disqus_thread"></div>
5
+ <script>
6
+ var dsqjs = new DisqusJS({
7
+ shortname: '<%= theme.disqusjs.shortname %>',
8
+ siteName: '<%= theme.disqusjs.sitename %>',
9
+ identifier: '<%= page.permalink %>',
10
+ url: '<%= page.permalink %>',
11
+ title: '<%= page.title %>',
12
+ api: '<%= theme.disqusjs.api %>',
13
+ apikey: '<%= theme.disqusjs.apikey %>',
14
+ admin: '<%= theme.disqusjs.admin %>',
15
+ adminLabel: '<%= theme.disqusjs.adminLabel %>'
16
+ });
17
17
  </script>
@@ -1,13 +1,13 @@
1
- <script src="https://giscus.app/client.js"
2
- data-repo="<%= theme.giscus.repo %>"
3
- data-repo-id="<%= theme.giscus.repo_id %>="
4
- data-category="<%= theme.giscus.category %>"
5
- data-category-id="<%= theme.giscus.category_id %>"
6
- data-mapping="<%= theme.giscus.mapping %>"
7
- data-reactions-enabled="<%= theme.giscus.reactions_enabled %>"
8
- data-emit-metadata="0"
9
- data-theme="<%= theme.giscus.theme %>"
10
- data-lang="<%= theme.giscus.lang %>"
11
- crossorigin="anonymous"
12
- async>
1
+ <script src="https://giscus.app/client.js"
2
+ data-repo="<%= theme.giscus.repo %>"
3
+ data-repo-id="<%= theme.giscus.repo_id %>="
4
+ data-category="<%= theme.giscus.category %>"
5
+ data-category-id="<%= theme.giscus.category_id %>"
6
+ data-mapping="<%= theme.giscus.mapping %>"
7
+ data-reactions-enabled="<%= theme.giscus.reactions_enabled %>"
8
+ data-emit-metadata="0"
9
+ data-theme="<%= theme.giscus.theme %>"
10
+ data-lang="<%= theme.giscus.lang %>"
11
+ crossorigin="anonymous"
12
+ async>
13
13
  </script>
@@ -1,14 +1,14 @@
1
- <link rel="stylesheet" href="<%- theme.cdn.gitalk.css %>">
2
- <div id="gitalk"></div>
3
- <script src="<%- theme.cdn.gitalk.js %>"></script>
4
- <script type="text/javascript">
5
- var gitalk = new Gitalk({
6
- clientID: '<%= theme.gitalk.clientID %>',
7
- clientSecret: '<%= theme.gitalk.clientSecret %>',
8
- id: window.location.pathname,
9
- repo: '<%= theme.gitalk.repo %>',
10
- owner: '<%= theme.gitalk.owner %>',
11
- admin: '<%= theme.gitalk.admin %>'
12
- })
13
- gitalk.render('gitalk')
1
+ <link rel="stylesheet" href="<%- theme.cdn.gitalk.css %>">
2
+ <div id="gitalk"></div>
3
+ <script src="<%- theme.cdn.gitalk.js %>"></script>
4
+ <script type="text/javascript">
5
+ var gitalk = new Gitalk({
6
+ clientID: '<%= theme.gitalk.clientID %>',
7
+ clientSecret: '<%= theme.gitalk.clientSecret %>',
8
+ id: window.location.pathname,
9
+ repo: '<%= theme.gitalk.repo %>',
10
+ owner: '<%= theme.gitalk.owner %>',
11
+ admin: '<%= theme.gitalk.admin %>'
12
+ })
13
+ gitalk.render('gitalk')
14
14
  </script>
@@ -1,14 +1,14 @@
1
- <div id="gitment"></div>
2
- <link rel="stylesheet" href="https://imsun.github.io/gitment/style/default.css">
3
- <script src="https://imsun.github.io/gitment/dist/gitment.browser.js"></script>
4
- <script>
5
- var gitment = new Gitment({
6
- owner: '<%= theme.gitment.owner %>', // 你的 GitHub ID
7
- repo: '<%= theme.gitment.repo %>', // 存储评论的 repo
8
- oauth: {
9
- client_id: '<%= theme.gitment.clientID %>', // 你的 client ID
10
- client_secret: '<%= theme.gitment.clientSecret %>' // 你的 client secret
11
- },
12
- })
13
- gitment.render('gitment')
1
+ <div id="gitment"></div>
2
+ <link rel="stylesheet" href="https://imsun.github.io/gitment/style/default.css">
3
+ <script src="https://imsun.github.io/gitment/dist/gitment.browser.js"></script>
4
+ <script>
5
+ var gitment = new Gitment({
6
+ owner: '<%= theme.gitment.owner %>', // 你的 GitHub ID
7
+ repo: '<%= theme.gitment.repo %>', // 存储评论的 repo
8
+ oauth: {
9
+ client_id: '<%= theme.gitment.clientID %>', // 你的 client ID
10
+ client_secret: '<%= theme.gitment.clientSecret %>' // 你的 client secret
11
+ },
12
+ })
13
+ gitment.render('gitment')
14
14
  </script>
@@ -1,12 +1,12 @@
1
- <div id="lv-container" data-id="city" data-uid="<%= theme.livere.data_uid %>">
2
- <script id="livere-comment-js">
3
- (function(d, s) {
4
- var j, e = d.getElementsByTagName(s)[0];
5
- if (typeof LivereTower === 'function') { return; }
6
- j = d.createElement(s);
7
- j.src = 'https://cdn-city.livere.com/js/embed.dist.js';
8
- j.async = true;
9
- e.parentNode.insertBefore(j, e);
10
- })(document, 'script');
11
- </script>
1
+ <div id="lv-container" data-id="city" data-uid="<%= theme.livere.data_uid %>">
2
+ <script id="livere-comment-js">
3
+ (function(d, s) {
4
+ var j, e = d.getElementsByTagName(s)[0];
5
+ if (typeof LivereTower === 'function') { return; }
6
+ j = d.createElement(s);
7
+ j.src = 'https://cdn-city.livere.com/js/embed.dist.js';
8
+ j.async = true;
9
+ e.parentNode.insertBefore(j, e);
10
+ })(document, 'script');
11
+ </script>
12
12
  </div>
@@ -1,9 +1,9 @@
1
- <script
2
- src="https://utteranc.es/client.js"
3
- repo="<%= theme.utteranc.repo %>"
4
- issue-term="<%= theme.utteranc.issue_term %>"
5
- label="<%= theme.utteranc.label %>"
6
- theme="<%= theme.utteranc.theme %>"
7
- crossorigin="anonymous"
8
- async
9
- ></script>
1
+ <script
2
+ src="https://utteranc.es/client.js"
3
+ repo="<%= theme.utteranc.repo %>"
4
+ issue-term="<%= theme.utteranc.issue_term %>"
5
+ label="<%= theme.utteranc.label %>"
6
+ theme="<%= theme.utteranc.theme %>"
7
+ crossorigin="anonymous"
8
+ async
9
+ ></script>
@@ -1,10 +1,10 @@
1
- <div class="valine"></div>
2
- <script src='<%- theme.cdn.valine.js %>'></script>
3
- <script>
4
- // 使用方法 https://valine.js.org/quickstart.html
5
- new Valine({
6
- el: '.valine',
7
- appId: '<%= theme.valine.appId %>',
8
- appKey: '<%= theme.valine.appKey %>'
9
- })
1
+ <div class="valine"></div>
2
+ <script src='<%- theme.cdn.valine.js %>'></script>
3
+ <script>
4
+ // 使用方法 https://valine.js.org/quickstart.html
5
+ new Valine({
6
+ el: '.valine',
7
+ appId: '<%= theme.valine.appId %>',
8
+ appKey: '<%= theme.valine.appKey %>'
9
+ })
10
10
  </script>
@@ -1,18 +1,18 @@
1
- <% if (theme.analytics.google_site_id) { %>
2
- <%- partial('_analytics/google') %>
3
- <% } %>
4
- <% if (theme.analytics.gtags_site_id) { %>
5
- <%- partial('_analytics/gtags') %>
6
- <% } %>
7
- <% if (theme.analytics.cnzz_site_id) { %>
8
- <%- partial('_analytics/cnzz') %>
9
- <% } %>
10
- <% if (theme.analytics.tencent_site_id) { %>
11
- <%- partial('_analytics/tencent') %>
12
- <% } %>
13
- <% if (theme.analytics.la_site_id) { %>
14
- <%- partial('_analytics/la') %>
15
- <% } %>
16
- <% if (theme.analytics.baidu_site_id) { %>
17
- <%- partial('_analytics/baidu') %>
1
+ <% if (theme.analytics.google_site_id) { %>
2
+ <%- partial('_analytics/google') %>
3
+ <% } %>
4
+ <% if (theme.analytics.gtags_site_id) { %>
5
+ <%- partial('_analytics/gtags') %>
6
+ <% } %>
7
+ <% if (theme.analytics.cnzz_site_id) { %>
8
+ <%- partial('_analytics/cnzz') %>
9
+ <% } %>
10
+ <% if (theme.analytics.tencent_site_id) { %>
11
+ <%- partial('_analytics/tencent') %>
12
+ <% } %>
13
+ <% if (theme.analytics.la_site_id) { %>
14
+ <%- partial('_analytics/la') %>
15
+ <% } %>
16
+ <% if (theme.analytics.baidu_site_id) { %>
17
+ <%- partial('_analytics/baidu') %>
18
18
  <% } %>
@@ -1,33 +1,33 @@
1
- <%
2
- var title = page.title;
3
-
4
- if (is_archive()){
5
- title = __('archive');
6
-
7
- if (is_month()){
8
- title += ':' + page.year + '/' + page.month;
9
- } else if (is_year()){
10
- title += ':' + page.year;
11
- }
12
- } else if (is_category()){
13
- title = __('category') + ':' + page.category;
14
- } else if (is_tag()){
15
- title = __('tag') + ':' + page.tag;
16
- }
17
- %>
18
- <title><% if (title){ %><%= title %> - <% } %><%= config.title %></title>
19
- <meta charset="utf-8" />
20
- <meta name="keywords" content="<%= config.keywords %>" />
21
- <meta
22
- name="viewport"
23
- content="width=device-width, initial-scale=1, maximum-scale=5"
24
- />
25
- <%- meta_generator() %>
26
- <%- css_auto_version('css/style') %>
27
- <link rel="shortcut icon" href="<%= theme.favicon.href %>" type="<%= theme.favicon.type %>" />
1
+ <%
2
+ var title = page.title;
3
+
4
+ if (is_archive()){
5
+ title = __('archive');
6
+
7
+ if (is_month()){
8
+ title += ':' + page.year + '/' + page.month;
9
+ } else if (is_year()){
10
+ title += ':' + page.year;
11
+ }
12
+ } else if (is_category()){
13
+ title = __('category') + ':' + page.category;
14
+ } else if (is_tag()){
15
+ title = __('tag') + ':' + page.tag;
16
+ }
17
+ %>
18
+ <title><% if (title){ %><%= title %> - <% } %><%= config.title %></title>
19
+ <meta charset="utf-8" />
20
+ <meta name="keywords" content="<%= config.keywords %>" />
21
+ <meta
22
+ name="viewport"
23
+ content="width=device-width, initial-scale=1, maximum-scale=5"
24
+ />
25
+ <%- meta_generator() %>
26
+ <%- css_auto_version('css/style') %>
27
+ <link rel="shortcut icon" href="<%= theme.favicon.href %>" type="<%= theme.favicon.type %>" />
28
28
  <link rel="stylesheet" href="/styles/github.min.css">
29
29
  <script src="/styles/highlight.min.js"></script>
30
30
  <script>
31
31
  hljs.initHighlightingOnLoad();
32
- </script>
32
+ </script>
33
33
  <%- theme.head %>
@@ -1,10 +1,10 @@
1
- <div class="header <% if(is_home()){ %>home<% } %> ">
2
- <div class="container">
3
- <a class="logo" href="<%- url_for() %>" title="<%= config.title%>"><%= config.title%></a>
4
- <ul class="nav">
5
- <% for (name in theme.menu) { %>
6
- <li class="nav-item"><a href="<%- url_for(theme.menu[name]) %>"><%= name %></a></li>
7
- <% } %>
8
- </ul>
9
- </div>
1
+ <div class="header <% if(is_home()){ %>home<% } %> ">
2
+ <div class="container">
3
+ <a class="logo" href="<%- url_for() %>" title="<%= config.title%>"><%= config.title%></a>
4
+ <ul class="nav">
5
+ <% for (name in theme.menu) { %>
6
+ <li class="nav-item"><a href="<%- url_for(theme.menu[name]) %>"><%= name %></a></li>
7
+ <% } %>
8
+ </ul>
9
+ </div>
10
10
  </div>