taletype 0.1.8 → 0.1.11

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d57ea908a282d0a89070913679d61dcba659d14b8badf326387e275afed63194
4
- data.tar.gz: eb2e742a481bf0ed3ee1afdc70b8a4613fdec066f0591b2d9158904031df4381
3
+ metadata.gz: 1cc35fd6f7c4c7ca83e438fe61c7b8aba6dad4154f9b588065e14eaa21e2564d
4
+ data.tar.gz: ea9a61df2e88c5fdae67e576f5d10685c29607fba8551b22aa633256f29825f2
5
5
  SHA512:
6
- metadata.gz: 9842fa4c0d311892e8156e0ed94b7d4c5c4137486b84f6a44941e9ad8d97fd1114b9ffd5103a7d66daeb8a339cff10d7bdc555d4943231298a38f3a9f53971cc
7
- data.tar.gz: 3a14745e771e8e3e7971bc324a49759d7f8606fb9f40576cf9681a6639bfa434a980e6c4be62cac35eb8ec7b12fe492699080594426422f9e100ebbde52504f6
6
+ metadata.gz: 212954c3511cfbf2be94303574940f047918b3584abd2beb839ab70683ffed526b4268d65dd0d6ef96f7a84704bf56d460dd2da951fc1977ddec20a652c08124
7
+ data.tar.gz: e50c45d9426173115fac7561453639b03748015d3db2ab59bf93185bb642e654f4303be0780fc22e06894066a30fc7411b39a30d32e7c1a623adbe254efaf642
@@ -1,6 +1,8 @@
1
+ <script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script>
1
2
  <script>
2
- window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
3
- ga('create', '{{ site.google_analytics }}', 'auto');
4
- ga('send', 'pageview');
3
+ window.dataLayer = window.dataLayer || [];
4
+ function gtag(){dataLayer.push(arguments);}
5
+ gtag('js', new Date());
6
+
7
+ gtag('config', '{{ site.google_analytics }}');
5
8
  </script>
6
- <script async src='https://www.google-analytics.com/analytics.js'></script>
@@ -1,4 +1,4 @@
1
- <script>
1
+ <script async type="text/javascript">
2
2
  var _hmt = _hmt || [];
3
3
  (function() {
4
4
  var hm = document.createElement("script");
@@ -7,15 +7,3 @@
7
7
  s.parentNode.insertBefore(hm, s);
8
8
  })();
9
9
  </script>
10
-
11
- <!-- baidu auto push for seo -->
12
- <script>
13
- window.addEventListener('load', function () {
14
- var src = 'http://push.zhanzhang.baidu.com/push.js'
15
- var curProtocol = window.location.protocol.split(':')[0];
16
- if (curProtocol === 'https') {
17
- src = 'https://zz.bdstatic.com/linksubmit/push.js';
18
- }
19
- globalAddScript(src);
20
- })
21
- </script>
@@ -1,5 +1,5 @@
1
1
  <div>
2
2
  <center>
3
- <script type="text/javascript">document.write(unescape("%3Cspan id='cnzz_stat_icon_{{ site.cnzz_statistic }}'%3E%3C/span%3E%3Cscript src='https://s4.cnzz.com/z_stat.php%3Fid%3D{{ site.cnzz_statistic }}%26show%3Dpic' type='text/javascript'%3E%3C/script%3E"));</script>
3
+ <script async type="text/javascript">document.write(unescape("%3Cspan id='cnzz_stat_icon_{{ site.cnzz_statistic }}'%3E%3C/span%3E%3Cscript src='https://s4.cnzz.com/z_stat.php%3Fid%3D{{ site.cnzz_statistic }}%26show%3Dpic' type='text/javascript'%3E%3C/script%3E"));</script>
4
4
  </center>
5
5
  </div>
@@ -1,4 +1,3 @@
1
-
2
1
  <div class="commentation" onload="onSelectGiscus()">
3
2
  <div>对我博客最大的鼓励来自于你的评论,欢迎选择
4
3
  <button id="giscus-btn" onclick="onSelectGiscus()" class="active">giscus</button>
@@ -19,6 +18,7 @@
19
18
  </div>
20
19
 
21
20
  <script type="text/javascript">
21
+ var loadedDisqus = false;
22
22
  var giscusBtn = document.querySelector('#giscus-btn');
23
23
  var disqusBtn = document.querySelector('#disqus-btn')
24
24
  var giscusTab = document.querySelector('#giscus-tab');
@@ -30,6 +30,10 @@
30
30
  disqusTab.style.display = "none";
31
31
  }
32
32
  function onSelectDisqus() {
33
+ if (!loadedDisqus) {
34
+ loadedDisqus = true;
35
+ loadDisqus();
36
+ }
33
37
  giscusBtn.classList.remove('active');
34
38
  disqusBtn.classList.add('active');
35
39
  giscusTab.style.display = "none";
@@ -10,12 +10,12 @@
10
10
  this.page.identifier = PAGE_IDENTIFIER; // Replace PAGE_IDENTIFIER with your page's unique identifier variable
11
11
  };
12
12
  */
13
- (function() { // DON'T EDIT BELOW THIS LINE
14
- var d = document, s = d.createElement('script');
15
- s.src = 'https://{{ site.disqus }}.disqus.com/embed.js';
16
- s.setAttribute('data-timestamp', +new Date());
17
- (d.head || d.body).appendChild(s);
18
- })();
13
+ function loadDisqus() { // DON'T EDIT BELOW THIS LINE
14
+ var d = document, s = d.createElement('script');
15
+ s.src = 'https://{{ site.disqus }}.disqus.com/embed.js';
16
+ s.setAttribute('data-timestamp', +new Date());
17
+ (d.head || d.body).appendChild(s);
18
+ }
19
19
  </script>
20
20
  <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
21
21
  <!-- End disqus -->
@@ -1,15 +1,15 @@
1
1
  <!-- https://giscus.app/ -->
2
- <script src="https://giscus.app/client.js"
3
- data-repo="{{ site.giscus.repo }}"
4
- data-repo-id="{{ site.giscus.repo_id }}"
5
- data-category="{{ site.giscus.category }}"
6
- data-category-id="{{ site.giscus.category_id }}"
7
- data-mapping="pathname"
8
- data-reactions-enabled="1"
9
- data-emit-metadata="0"
10
- data-input-position="bottom"
11
- data-theme="light"
12
- data-lang="en"
13
- crossorigin="anonymous"
14
- async>
2
+ <script async src="https://giscus.app/client.js"
3
+ data-repo="{{ site.giscus.repo }}"
4
+ data-repo-id="{{ site.giscus.repo_id }}"
5
+ data-category="{{ site.giscus.category }}"
6
+ data-category-id="{{ site.giscus.category_id }}"
7
+ data-mapping="{{ site.giscus.mapping }}"
8
+ data-reactions-enabled="1"
9
+ data-emit-metadata="0"
10
+ data-input-position="{{ site.giscus.input_position }}"
11
+ data-theme="{{ site.giscus.theme }}"
12
+ data-lang="{{ site.giscus.lang }}"
13
+ crossorigin="anonymous"
14
+ async>
15
15
  </script>
data/_includes/head.html CHANGED
@@ -22,5 +22,5 @@
22
22
  {% endif %}
23
23
 
24
24
  <!-- Google AdSense-->
25
- <script data-ad-client="{{ site.google_adsense }}" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
25
+ <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client={{ site.google_adsense }}" crossorigin="anonymous"></script>
26
26
  </head>
data/_layouts/post.html CHANGED
@@ -41,5 +41,7 @@ layout: default
41
41
  <a href="#" class="top">Top</a>
42
42
  </div>
43
43
 
44
- <!-- Go to www.addthis.com/dashboard to customize your tools -->
45
- <script async type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-4fa6932104ee5f3f"></script>
44
+ {% if site.addthis %}
45
+ <!-- Go to www.addthis.com/dashboard to customize your tools -->
46
+ <script async type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid={{ site.addthis }}"></script>
47
+ {% endif %}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: taletype
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - hutusi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-03 00:00:00.000000000 Z
11
+ date: 2022-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll