taletype 0.1.8 → 0.1.9
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/comments.html +5 -1
- data/_includes/disqus_comments.html +6 -6
- data/_includes/giscus_comments.html +4 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc80bf42565f49c321c64f67296a46c8bea883b1379eb2290b42627132dad993
|
4
|
+
data.tar.gz: 3fb75f4a871c95b60ae27348dad81a998c0a207d4f2ba5fd64b4db37974f3bb4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d856fbdbdf2440bb37c750da672618ceefd2d046abde3ba7f153a82c245fd1e97b05d5925549bbb56c261fc138de594fb380a7fe6f2b85bb6e1d2331bd698fe
|
7
|
+
data.tar.gz: 3649e69d80cc4ef39d2c0c37d0e48b394da5597b7ca231bca7a8adfb9180c5ec5378aa5f15f1b240ff4d152ac7330de44d8728141c36e4c9e6c1f5fdfb67a9c4
|
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 -->
|
@@ -4,12 +4,12 @@ data-repo="{{ site.giscus.repo }}"
|
|
4
4
|
data-repo-id="{{ site.giscus.repo_id }}"
|
5
5
|
data-category="{{ site.giscus.category }}"
|
6
6
|
data-category-id="{{ site.giscus.category_id }}"
|
7
|
-
data-mapping="
|
7
|
+
data-mapping="{{ site.giscus.mapping }}"
|
8
8
|
data-reactions-enabled="1"
|
9
9
|
data-emit-metadata="0"
|
10
|
-
data-input-position="
|
11
|
-
data-theme="
|
12
|
-
data-lang="
|
10
|
+
data-input-position="{{ site.giscus.input_position }}"
|
11
|
+
data-theme="{{ site.giscus.theme }}"
|
12
|
+
data-lang="{{ site.giscus.lang }}"
|
13
13
|
crossorigin="anonymous"
|
14
14
|
async>
|
15
15
|
</script>
|