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 +4 -4
- data/_includes/analytics.html +6 -4
- data/_includes/baidu_statistic.html +1 -13
- data/_includes/cnzz_statistic.html +1 -1
- data/_includes/comments.html +5 -1
- data/_includes/disqus_comments.html +6 -6
- data/_includes/giscus_comments.html +13 -13
- data/_includes/head.html +1 -1
- data/_layouts/post.html +4 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1cc35fd6f7c4c7ca83e438fe61c7b8aba6dad4154f9b588065e14eaa21e2564d
|
4
|
+
data.tar.gz: ea9a61df2e88c5fdae67e576f5d10685c29607fba8551b22aa633256f29825f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 212954c3511cfbf2be94303574940f047918b3584abd2beb839ab70683ffed526b4268d65dd0d6ef96f7a84704bf56d460dd2da951fc1977ddec20a652c08124
|
7
|
+
data.tar.gz: e50c45d9426173115fac7561453639b03748015d3db2ab59bf93185bb642e654f4303be0780fc22e06894066a30fc7411b39a30d32e7c1a623adbe254efaf642
|
data/_includes/analytics.html
CHANGED
@@ -1,6 +1,8 @@
|
|
1
|
+
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script>
|
1
2
|
<script>
|
2
|
-
window.
|
3
|
-
|
4
|
-
|
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>
|
data/_includes/comments.html
CHANGED
@@ -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
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
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="
|
8
|
-
data-reactions-enabled="1"
|
9
|
-
data-emit-metadata="0"
|
10
|
-
data-input-position="
|
11
|
-
data-theme="
|
12
|
-
data-lang="
|
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
|
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
|
-
|
45
|
-
|
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.
|
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-
|
11
|
+
date: 2022-04-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|