taletype 0.1.4 → 0.1.7

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: 7f0c7af9b7e919ae549e1d11d2fc3cd072d3b3dfe389421c7045855bd883269b
4
- data.tar.gz: 0e21f9d84bde77c556c55458f4cf71f3d5e63d75bb8e5ddd5ad4232bd5994139
3
+ metadata.gz: 3fedae7750e52dc20a1d8f8990ef3d83be8166e1a355d313ebb215c43a9fcdec
4
+ data.tar.gz: 838842aa575ff21ec7418918b0e4c9a8b08ee527089e630a459fede5532c3290
5
5
  SHA512:
6
- metadata.gz: 34afd3c663156b686ce3442c39f8be347eadd0f8c649718af726047bf81d5729be94bb3cc82142ba51e0d59fb805d1878f2e07c2fabc50925ea3ebebc919003e
7
- data.tar.gz: 80f2f568e286fbf1a878413a050526005e728696d94d4575d3d0c1962351b7bb5e55562eb3a70965087e145869abb7f17ee86508003c67960a592805cbaefed5
6
+ metadata.gz: ce025d52d350b5bd4baf6138e428bd684d02e72b147abbb9a9de75fa16f7cfe44807c11693b7ec1b1246fe3fd4dc331adef9aa3484e555a9a86f8068d1808bef
7
+ data.tar.gz: 887f6d4cb4548a027bd4148c0742d1bf74be12d06464a8fe251e2fc2a1cc74765584a36ef94be9ddf0d18a8649140bd5c3267cf81f54c1bda8b8804234ed9f68
@@ -0,0 +1,22 @@
1
+
2
+ <div class="commentation">
3
+ <div>欢迎留下你的宝贵评论,也可以在 <a href="https://github.com/{{ site.giscus.repo }}/discussions/{{ page.gh_discussion }}" target="_blank">GitHub discussion</a> 留言。</div>
4
+
5
+ <br />
6
+
7
+ <!-- https://giscus.app/ -->
8
+ <script src="https://giscus.app/client.js"
9
+ data-repo="{{ site.giscus.repo }}"
10
+ data-repo-id="{{ site.giscus.repo_id }}"
11
+ data-category="{{ site.giscus.category }}"
12
+ data-category-id="{{ site.giscus.category_id }}"
13
+ data-mapping="pathname"
14
+ data-reactions-enabled="1"
15
+ data-emit-metadata="0"
16
+ data-input-position="bottom"
17
+ data-theme="light"
18
+ data-lang="en"
19
+ crossorigin="anonymous"
20
+ async>
21
+ </script>
22
+ </div>
@@ -2,8 +2,10 @@
2
2
  <!-- https://github.com/geektutu/hexo-theme-geektutu/blob/master/layout/_widget/comments.ejs#L31 -->
3
3
  <!-- ref: https://geektutu.com/post/blog-experience-7.html -->
4
4
 
5
+ <div>欢迎留言,请在下面评论框或直接在 <a href="https://github.com/{{ site.gitalk.owner }}/{{ site.gitalk.repo }}/issues/{{ page.gh_issue }}" target="_blank">GitHub issue</a> 评论。</div>
6
+
5
7
  <!-- Start gitalk -->
6
- <script src="{{ "/assets/js/gitalk.min.js" | relative_url }}" /></script>
8
+ <script src="{{ '/assets/js/gitalk.min.js' | relative_url }}" ></script>
7
9
  <!-- <div id="disqus_thread"><h3>Discussion and feedback</h3></div> -->
8
10
  <div id="gitalk-container">
9
11
  <div class="gt-container text-center" style="margin-top: 50px;">
data/_layouts/page.html CHANGED
@@ -15,6 +15,8 @@ layout: default
15
15
  {% include disqus_comments.html %}
16
16
  {% elsif site.comments_engine == 'gitalk' %}
17
17
  {% include gitalk_comments.html %}
18
+ {% elsif site.comments_engine == 'giscus' %}
19
+ {% include giscus_comments.html %}
18
20
  {% else %}
19
21
  {% endif %}
20
22
 
data/_layouts/post.html CHANGED
@@ -23,12 +23,17 @@ layout: default
23
23
 
24
24
  <br />
25
25
 
26
- <div>欢迎<a href="/subscription">订阅“胡涂说”博客</a>;欢迎留言,请在下面评论框或直接在 <a href="https://github.com/{{ site.gitalk.owner }}/{{ site.gitalk.repo }}/issues/{{ page.gh_issue }}" target="_blank">GitHub issue</a> 评论。</div>
26
+ <div>本文采用<a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/deed.zh">「CC BY-SA 4.0」</a>知识共享许可协议,如果还喜欢其他文章,
27
+ 欢迎<a href="/subscription">订阅“胡涂说”博客</a>。
28
+ <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/"><img alt="知识共享许可协议" style="border-width:0" src="https://i.creativecommons.org/l/by-sa/4.0/80x15.png" /></a>
29
+ </div>
27
30
 
28
31
  {% if site.comments_engine == 'disqus' %}
29
32
  {% include disqus_comments.html %}
30
33
  {% elsif site.comments_engine == 'gitalk' %}
31
34
  {% include gitalk_comments.html %}
35
+ {% elsif site.comments_engine == 'giscus' %}
36
+ {% include giscus_comments.html %}
32
37
  {% else %}
33
38
  {% endif %}
34
39
 
@@ -0,0 +1,8 @@
1
+ .commentation {
2
+ border-top: .5px solid $grey-2;
3
+ font-family: $serif-secondary;
4
+ padding-top: 2rem;
5
+ margin-top: 1rem;
6
+ position: relative;
7
+ text-align: center;
8
+ }
data/_sass/tale.scss CHANGED
@@ -8,6 +8,7 @@
8
8
  @import 'tale/layout';
9
9
  @import 'tale/pagination';
10
10
  @import 'tale/catalogue';
11
+ @import 'tale/commentation';
11
12
 
12
13
  @import 'vendor/gitalk';
13
14
  @import 'vendor/gitalk-plus';
@@ -835,6 +835,7 @@
835
835
  .gt-container .gt-avatar-github {
836
836
  width: 3em;
837
837
  height: 3em;
838
+ cursor: pointer;
838
839
  }
839
840
  @media (max-width: 479px) {
840
841
  .gt-container .gt-avatar-github {