taletype 0.1.9 → 0.1.12
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/README.md +1 -1
- data/_includes/analytics.html +6 -4
- data/_includes/baidu_statistic.html +1 -13
- data/_includes/cnzz_statistic.html +1 -1
- data/_includes/giscus_comments.html +13 -13
- data/_includes/head.html +1 -1
- data/_layouts/post.html +4 -2
- data/_layouts/relics.html +75 -0
- data/_sass/tale/_relic.scss +116 -0
- data/_sass/tale.scss +1 -0
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e241d9f86f49f114d09bf50067ae689d586b9efbb137269f139d030ffaf0fbf
|
4
|
+
data.tar.gz: abd623a4d2898acfe72bb633610512daf1d51c670f29b232960f6696c603759d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7302f907b673931f6ad717f3dbe6f2f236a5e8dd768e47220ee746d19d8abb610f90c45f1b9831ee76d8fb0aa5ddea5fca1fffdec74aabb7a9dafa6fcaa66c5
|
7
|
+
data.tar.gz: aef6408ee299591292c3f7c837382d5d8c1c0ce35668f8c73e2c196348fdcdada73f4f48c89454043dc3c183c2df56df1d89441ebd55dd1c3f14757764f83224
|
data/README.md
CHANGED
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>
|
@@ -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="{{ 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>
|
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 %}
|
@@ -0,0 +1,75 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
<div class="relic">
|
6
|
+
<h1 class="relic-title">{{ page.title }}</h1>
|
7
|
+
<h2 class="relic-subtitle">{{ page.subtitle }}</h2>
|
8
|
+
|
9
|
+
<div class="relic-meta">
|
10
|
+
{% if page.type %}
|
11
|
+
<div class="relic-meta-item">
|
12
|
+
类型: {{ page.type }}
|
13
|
+
</div>
|
14
|
+
{% endif %}
|
15
|
+
|
16
|
+
{% if page.opendate %}
|
17
|
+
<div class="relic-meta-item">
|
18
|
+
上线日期: {{ page.opendate | date: "%Y-%m-%d" }}
|
19
|
+
</div>
|
20
|
+
{% endif %}
|
21
|
+
|
22
|
+
{% if page.closedate %}
|
23
|
+
<div class="relic-meta-item">
|
24
|
+
下线日期: {{ page.closedate | date: "%Y-%m-%d" }}
|
25
|
+
</div>
|
26
|
+
{% endif %}
|
27
|
+
|
28
|
+
{% if page.website %}
|
29
|
+
<div class="relic-meta-item">
|
30
|
+
原网址: {{ page.website }}
|
31
|
+
</div>
|
32
|
+
{% endif %}
|
33
|
+
|
34
|
+
{% if page.archive %}
|
35
|
+
<div class="relic-meta-item">
|
36
|
+
互联网档案馆存档: <a href='https://{{ page.archive }}'>{{ page.archive }}</a>
|
37
|
+
</div>
|
38
|
+
{% endif %}
|
39
|
+
</div>
|
40
|
+
|
41
|
+
<div class="relic-line"></div>
|
42
|
+
|
43
|
+
{{ content }}
|
44
|
+
</div>
|
45
|
+
|
46
|
+
<div class='tags'>
|
47
|
+
{% for tag in page.tags %}
|
48
|
+
<a href='{{ site.baseurl }}/tag/{{ tag }}'>{{ tag }}</a>
|
49
|
+
{% endfor %}
|
50
|
+
</div>
|
51
|
+
|
52
|
+
<br />
|
53
|
+
|
54
|
+
<div>本文采用<a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/deed.zh">「CC BY-SA 4.0」</a>知识共享许可协议,如果还喜欢其他文章,
|
55
|
+
欢迎<a href="/subscription">订阅“胡涂说”博客</a>。
|
56
|
+
<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>
|
57
|
+
</div>
|
58
|
+
|
59
|
+
{% include comments.html %}
|
60
|
+
|
61
|
+
<div class="pagination">
|
62
|
+
{% if page.next.url %}
|
63
|
+
<a href="{{ page.next.url | prepend: site.baseurl }}" class="left arrow">←</a>
|
64
|
+
{% endif %}
|
65
|
+
{% if page.previous.url %}
|
66
|
+
<a href="{{ page.previous.url | prepend: site.baseurl }}" class="right arrow">→</a>
|
67
|
+
{% endif %}
|
68
|
+
|
69
|
+
<a href="#" class="top">Top</a>
|
70
|
+
</div>
|
71
|
+
|
72
|
+
{% if site.addthis %}
|
73
|
+
<!-- Go to www.addthis.com/dashboard to customize your tools -->
|
74
|
+
<script async type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid={{ site.addthis }}"></script>
|
75
|
+
{% endif %}
|
@@ -0,0 +1,116 @@
|
|
1
|
+
.relic {
|
2
|
+
padding: 3rem 0;
|
3
|
+
font-size: 18px;
|
4
|
+
line-height: 20px;
|
5
|
+
// @media (min-width: 600px) {
|
6
|
+
// font-size: 19px;
|
7
|
+
// }
|
8
|
+
|
9
|
+
&-info {
|
10
|
+
color: $default-tint;
|
11
|
+
font-family: $serif-secondary;
|
12
|
+
letter-spacing: 0.5px;
|
13
|
+
text-align: center;
|
14
|
+
margin-bottom: 25px;
|
15
|
+
|
16
|
+
span {
|
17
|
+
font-style: italic;
|
18
|
+
}
|
19
|
+
}
|
20
|
+
|
21
|
+
&-title {
|
22
|
+
color: $default-shade;
|
23
|
+
font-family: $sans-serif;
|
24
|
+
font-size: 2rem;
|
25
|
+
margin: 1rem 0;
|
26
|
+
text-align: center;
|
27
|
+
}
|
28
|
+
|
29
|
+
&-subtitle {
|
30
|
+
color: $default-shade;
|
31
|
+
font-family: $serif-secondary;
|
32
|
+
font-size: 18px;
|
33
|
+
text-align: center;
|
34
|
+
}
|
35
|
+
|
36
|
+
&-line {
|
37
|
+
border-top: 0.4rem solid $default-shade;
|
38
|
+
display: block;
|
39
|
+
margin: 0 auto 3rem;
|
40
|
+
width: 5rem;
|
41
|
+
}
|
42
|
+
|
43
|
+
&-meta {
|
44
|
+
color: $default-shade;
|
45
|
+
font-family: $serif-secondary;
|
46
|
+
font-size: 18px;
|
47
|
+
text-align: center;
|
48
|
+
&-item {
|
49
|
+
// display: inline-block;
|
50
|
+
margin: 0.5rem 5rem 1rem 5rem;
|
51
|
+
}
|
52
|
+
}
|
53
|
+
|
54
|
+
p {
|
55
|
+
margin: 0 0 1rem;
|
56
|
+
text-align: justify;
|
57
|
+
}
|
58
|
+
|
59
|
+
a:hover {
|
60
|
+
text-decoration: underline;
|
61
|
+
}
|
62
|
+
|
63
|
+
img {
|
64
|
+
margin: 0 auto 0.5rem;
|
65
|
+
}
|
66
|
+
|
67
|
+
img + em {
|
68
|
+
color: $default-tint;
|
69
|
+
display: block;
|
70
|
+
font-family: $sans-serif;
|
71
|
+
font-size: 0.9rem;
|
72
|
+
font-style: normal;
|
73
|
+
text-align: center;
|
74
|
+
}
|
75
|
+
|
76
|
+
// CSS for making emoji inline
|
77
|
+
img.emoji {
|
78
|
+
display: inline-block;
|
79
|
+
left: 0;
|
80
|
+
transform: none;
|
81
|
+
width: 1rem;
|
82
|
+
height: 1rem;
|
83
|
+
vertical-align: text-top;
|
84
|
+
padding: 0;
|
85
|
+
margin: 0;
|
86
|
+
}
|
87
|
+
|
88
|
+
.footnotes {
|
89
|
+
margin-top: 30px;
|
90
|
+
font-size: 14px;
|
91
|
+
}
|
92
|
+
}
|
93
|
+
|
94
|
+
.tags {
|
95
|
+
a {
|
96
|
+
display: inline-block;
|
97
|
+
padding: quarter($base-spacing-unit) $base-spacing-unit;
|
98
|
+
margin: 0 $base-spacing-unit quarter($base-spacing-unit) 0;
|
99
|
+
|
100
|
+
font-size: $font-size-small;
|
101
|
+
font-family: $font-base;
|
102
|
+
line-height: $line-height-medium;
|
103
|
+
|
104
|
+
background-color: $bg-color-gray;
|
105
|
+
transition: $global-transition;
|
106
|
+
|
107
|
+
@include attention() {
|
108
|
+
text-decoration: none;
|
109
|
+
background-color: $bg-color-gray;
|
110
|
+
}
|
111
|
+
}
|
112
|
+
|
113
|
+
@include mq($until: tablet) {
|
114
|
+
margin-bottom: $line-height-medium - half(quarter($line-height-medium));
|
115
|
+
}
|
116
|
+
}
|
data/_sass/tale.scss
CHANGED
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.12
|
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-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -120,6 +120,7 @@ files:
|
|
120
120
|
- _layouts/home.html
|
121
121
|
- _layouts/page.html
|
122
122
|
- _layouts/post.html
|
123
|
+
- _layouts/relics.html
|
123
124
|
- _layouts/tag-archive.html
|
124
125
|
- _layouts/tag_page.html
|
125
126
|
- _sass/tale.scss
|
@@ -130,6 +131,7 @@ files:
|
|
130
131
|
- _sass/tale/_layout.scss
|
131
132
|
- _sass/tale/_pagination.scss
|
132
133
|
- _sass/tale/_post.scss
|
134
|
+
- _sass/tale/_relic.scss
|
133
135
|
- _sass/tale/_syntax.scss
|
134
136
|
- _sass/tale/_variables.scss
|
135
137
|
- _sass/type/__all.scss
|
@@ -145,7 +147,7 @@ files:
|
|
145
147
|
- assets/js/disqusLoader.js
|
146
148
|
- assets/js/gitalk.min.js
|
147
149
|
- assets/main.scss
|
148
|
-
homepage: https://github.com/hutusi/
|
150
|
+
homepage: https://github.com/hutusi/taletype
|
149
151
|
licenses:
|
150
152
|
- MIT
|
151
153
|
metadata: {}
|
@@ -167,5 +169,5 @@ requirements: []
|
|
167
169
|
rubygems_version: 3.2.22
|
168
170
|
signing_key:
|
169
171
|
specification_version: 4
|
170
|
-
summary: TaleType(Tale redistributed) is a minimal Jekyll theme curated for
|
172
|
+
summary: TaleType(Tale redistributed) is a minimal Jekyll theme curated for [hutusi.com](https://hutusi.com/).
|
171
173
|
test_files: []
|