taletype 0.1.6 → 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: 8d3e085454faf5fc1c02eb6c4c38b237d7ae59952a2d60d0aaab9d52fdf6af76
4
- data.tar.gz: 2df637177bd2d7684ec216646646cc1cf0a873a7da21a8a1e3a77c7e5039d375
3
+ metadata.gz: 3fedae7750e52dc20a1d8f8990ef3d83be8166e1a355d313ebb215c43a9fcdec
4
+ data.tar.gz: 838842aa575ff21ec7418918b0e4c9a8b08ee527089e630a459fede5532c3290
5
5
  SHA512:
6
- metadata.gz: 7a896b161bae4a1ebca089611c9b8c53e2517200fd073586a940a60115d6958a5b6403d545510aa12d10f54fdad7e2e0c6451662b21083074af1675a20dbe061
7
- data.tar.gz: eac39d1a39f0d8db5e49a72e9142e900eb23acd8df52e5fbb09558544b90fd19500d698bcbe437f7f65930884ccdb9dba32f2b6180fd215a1ee9486c8db9094b
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,9 +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
- {% assign cache_bust = site.time | date:'?v=%s' %}
7
- <script src="{{ "/assets/js/gitalk.min.js" | relative_url | append: cache_bust }}" /></script>
8
+ <script src="{{ '/assets/js/gitalk.min.js' | relative_url }}" ></script>
8
9
  <!-- <div id="disqus_thread"><h3>Discussion and feedback</h3></div> -->
9
10
  <div id="gitalk-container">
10
11
  <div class="gt-container text-center" style="margin-top: 50px;">
data/_includes/head.html CHANGED
@@ -3,10 +3,9 @@
3
3
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
4
4
 
5
5
  {% seo %}
6
-
6
+
7
7
  <!-- CSS -->
8
- {% assign cache_bust = site.time | date:'?v=%s' %}
9
- <link rel="stylesheet" href="{{ "/assets/main.css" | relative_url | append: cache_bust }}">
8
+ <link rel="stylesheet" href="{{ "/assets/main.css" | relative_url }}">
10
9
  <!-- <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Libre+Baskerville:400,400i,700"> -->
11
10
 
12
11
  <!-- Favicon -->
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';
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.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - hutusi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-03 00:00:00.000000000 Z
11
+ date: 2022-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -108,6 +108,7 @@ files:
108
108
  - _includes/cnzz_statistic.html
109
109
  - _includes/disqus_comments.html
110
110
  - _includes/footer.html
111
+ - _includes/giscus_comments.html
111
112
  - _includes/gitalk_comments.html
112
113
  - _includes/head.html
113
114
  - _includes/image.html
@@ -124,6 +125,7 @@ files:
124
125
  - _sass/tale/_base.scss
125
126
  - _sass/tale/_catalogue.scss
126
127
  - _sass/tale/_code.scss
128
+ - _sass/tale/_commentation.scss
127
129
  - _sass/tale/_layout.scss
128
130
  - _sass/tale/_pagination.scss
129
131
  - _sass/tale/_post.scss
@@ -161,7 +163,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
161
163
  - !ruby/object:Gem::Version
162
164
  version: '0'
163
165
  requirements: []
164
- rubygems_version: 3.2.3
166
+ rubygems_version: 3.2.22
165
167
  signing_key:
166
168
  specification_version: 4
167
169
  summary: TaleType(Tale redistributed) is a minimal Jekyll theme curated for storytellers.