taletype 0.1.0 → 0.1.5
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/baidu_statistic.html +21 -0
- data/_includes/cnzz_statistic.html +5 -0
- data/_includes/footer.html +39 -1
- data/_includes/gitalk_comments.html +80 -12
- data/_includes/head.html +5 -2
- data/_includes/image.html +6 -0
- data/_includes/navigation.html +19 -9
- data/_includes/tag_cloud.html +12 -0
- data/_layouts/archive.html +13 -0
- data/_layouts/home.html +2 -2
- data/_layouts/page.html +9 -2
- data/_layouts/post.html +9 -1
- data/_layouts/tag-archive.html +17 -0
- data/_sass/tale.scss +1 -0
- data/_sass/tale/_base.scss +10 -0
- data/_sass/tale/_layout.scss +5 -0
- data/_sass/tale/_post.scss +7 -0
- data/_sass/vendor/_gitalk-plus.scss +76 -0
- data/_sass/vendor/{gitalk.css → _gitalk.scss} +1 -0
- data/assets/js/gitalk.min.js +6 -6
- metadata +29 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 12cbdae39e8dcf1cab7996327e34dc236fe3d58fc06bc30e19732db68c197977
|
4
|
+
data.tar.gz: ee88312cd663e7f19dd22792ab434fc3d00bbd4f4332b2ba98be95c2a91d43e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 23fbb70d43ccca85c91ee216eab5a39574024db1acd494813a3ba21f474ee3c2339cec1de747663ebb518f2f71fab15c7394c1b291de690b93f749b4828164e4
|
7
|
+
data.tar.gz: 15f60a6349a57e5a07fe0e70debddbaacf3675580ae371f33178753f736e5717db05f68f63e43a4dc60c70d118239da5c24198fb84980a87416b51d6ac01a176
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<script>
|
2
|
+
var _hmt = _hmt || [];
|
3
|
+
(function() {
|
4
|
+
var hm = document.createElement("script");
|
5
|
+
hm.src = "https://hm.baidu.com/hm.js?{{ site.baidu_statistic }}";
|
6
|
+
var s = document.getElementsByTagName("script")[0];
|
7
|
+
s.parentNode.insertBefore(hm, s);
|
8
|
+
})();
|
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>
|
@@ -0,0 +1,5 @@
|
|
1
|
+
<div>
|
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>
|
4
|
+
</center>
|
5
|
+
</div>
|
data/_includes/footer.html
CHANGED
@@ -1,5 +1,43 @@
|
|
1
1
|
<footer>
|
2
2
|
<span>
|
3
|
-
© <time
|
3
|
+
© <time>{{ site.time | date: '%Y' }}</time> {{ site.copyright }} <br />
|
4
|
+
<a href="https://beian.miit.gov.cn/" target="_blank">{{ site.icp_info }}</a><br />
|
5
|
+
Made with Jekyll using the <a href="https://github.com/hutusi/tale/" target="_blank">TaleType</a> theme,
|
6
|
+
CDN for images sponsored by <a href="https://www.dogedoge.com/" target="_blank">多吉搜索</a>
|
7
|
+
<br />
|
4
8
|
</span>
|
9
|
+
|
10
|
+
|
11
|
+
<div class="busuanzi-count">
|
12
|
+
<script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
|
13
|
+
|
14
|
+
<span class="post-meta-item" id="busuanzi_container_site_uv" style="display: none;">
|
15
|
+
<span class="post-meta-item-icon">
|
16
|
+
<i class="fa fa-user">UV </i>
|
17
|
+
</span>
|
18
|
+
<span class="site-uv" title="总访客量">
|
19
|
+
<span id="busuanzi_value_site_uv"></span>
|
20
|
+
</span>
|
21
|
+
</span>
|
22
|
+
<span class="post-meta-divider">|</span>
|
23
|
+
<span class="post-meta-item" id="busuanzi_container_site_pv" style="display: none;">
|
24
|
+
<span class="post-meta-item-icon">
|
25
|
+
<i class="fa fa-eye">PV </i>
|
26
|
+
</span>
|
27
|
+
<span class="site-pv" title="总访问量">
|
28
|
+
<span id="busuanzi_value_site_pv"></span>
|
29
|
+
</span>
|
30
|
+
</span>
|
31
|
+
</div>
|
32
|
+
|
33
|
+
<!-- Baidu Statistic-->
|
34
|
+
{% if site.baidu_statistic %}
|
35
|
+
{% include baidu_statistic.html %}
|
36
|
+
{% endif %}
|
37
|
+
|
38
|
+
<!-- cnzz Statistic-->
|
39
|
+
{% if site.cnzz_statistic %}
|
40
|
+
{% include cnzz_statistic.html %}
|
41
|
+
{% endif %}
|
42
|
+
|
5
43
|
</footer>
|
@@ -1,19 +1,87 @@
|
|
1
|
+
<!-- ref: gitalk -->
|
2
|
+
<!-- https://github.com/geektutu/hexo-theme-geektutu/blob/master/layout/_widget/comments.ejs#L31 -->
|
3
|
+
<!-- ref: https://geektutu.com/post/blog-experience-7.html -->
|
4
|
+
|
1
5
|
<!-- Start gitalk -->
|
2
6
|
<script src="{{ "/assets/js/gitalk.min.js" | relative_url }}" /></script>
|
3
|
-
<div id="disqus_thread"><h3>Discussion and feedback</h3></div>
|
4
|
-
<div id="gitalk-container"
|
7
|
+
<!-- <div id="disqus_thread"><h3>Discussion and feedback</h3></div> -->
|
8
|
+
<div id="gitalk-container">
|
9
|
+
<div class="gt-container text-center" style="margin-top: 50px;">
|
10
|
+
<button class="gt-btn gt-btn-public"><span class="gt-btn-text">去 Github 评论</span></button>
|
11
|
+
</div>
|
12
|
+
</div>
|
13
|
+
|
14
|
+
<div id="gitalk-related"></div>
|
15
|
+
|
5
16
|
<script>
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
17
|
+
window.addEventListener('load', function () {
|
18
|
+
function renderCommentUrl(data) {
|
19
|
+
var url = (data[window.location.pathname] || {}).url
|
20
|
+
url && getDom('#gitalk-container button').addEventListener('click', function (e) { window.open(url)})
|
21
|
+
url || (getDom('#gitalk-container').style.display = 'none')
|
22
|
+
}
|
23
|
+
function getDom(str) { return document.querySelector(str) }
|
24
|
+
|
25
|
+
const gitalk = new Gitalk({
|
26
|
+
clientID: '{{ site.gitalk.client_id }}',
|
27
|
+
clientSecret: '{{ site.gitalk.client_secret }}',
|
28
|
+
repo: '{{ site.gitalk.repo }}',
|
29
|
+
owner: '{{ site.gitalk.owner }}',
|
30
|
+
admin: '{{ site.gitalk.admin }}',
|
31
|
+
id: location.pathname, // Ensure uniqueness and length less than 50
|
32
|
+
distractionFreeMode: false // Facebook-like distraction free mode
|
33
|
+
})
|
15
34
|
|
16
|
-
|
35
|
+
fetch("https://api.github.com/user").then(function(resp){
|
36
|
+
gitalk.render('gitalk-container');
|
37
|
+
}).catch(function(e){
|
38
|
+
fetch('/assets/data/issues.json').then(function (r) { return r.json() }).then(renderCommentUrl).catch(function (e) { })
|
39
|
+
})
|
40
|
+
getDom('#gitalk-container').addEventListener('click', function (e) {
|
41
|
+
e && e.stopPropagation && e.stopPropagation();
|
42
|
+
});
|
43
|
+
})
|
17
44
|
</script>
|
18
45
|
<noscript>Please enable JavaScript to view the <a href="https://gitalk.github.io/">comments powered by gitalk.</a></noscript>
|
19
46
|
<!-- End gitalk -->
|
47
|
+
|
48
|
+
<!-- gitalk plus -->
|
49
|
+
<script>
|
50
|
+
window.addEventListener('load', function () {
|
51
|
+
function render(comments) {
|
52
|
+
var template = '<a href="${comment.url}?utm_source=gitalk" class="dis-item-url"><h3 class="dis-item-title">${comment.title}</h3>' +
|
53
|
+
'<p class="dis-item-des">${comment.count} 评论 ● ${comment.date}</p>' +
|
54
|
+
'<div class="dis-item-content"><img class="dis-item-img" src="${comment.icon}" alt="icon"><p><b><span class="dis-item-user">${comment.user}</span></b> —— ${comment.body}</p></div>' +
|
55
|
+
'</a>'
|
56
|
+
|
57
|
+
var wrapper = getDom('#gitalk-related');
|
58
|
+
comments = shuffle(comments);
|
59
|
+
comments.slice(0, 4).forEach(function (c) {
|
60
|
+
var div = document.createElement('div');
|
61
|
+
div.classList.add('dis-item');
|
62
|
+
div.innerHTML = template.replace("${comment.url}", c.url)
|
63
|
+
.replace("${comment.title}", c.title)
|
64
|
+
.replace("${comment.count}", c.count)
|
65
|
+
.replace("${comment.date}", c.date)
|
66
|
+
.replace("${comment.icon}", c.icon)
|
67
|
+
.replace("${comment.user}", c.user)
|
68
|
+
.replace("${comment.body}", c.body)
|
69
|
+
wrapper.appendChild(div)
|
70
|
+
})
|
71
|
+
var p = document.createElement('p')
|
72
|
+
p.innerHTML = '<a href="https://geektutu.com/post/blog-experience-7.html">Gitalk Plus</a>';
|
73
|
+
p.classList.add('dis-divide');
|
74
|
+
wrapper.appendChild(p);
|
75
|
+
wrapper.classList.add('dis-wrapper')
|
76
|
+
}
|
77
|
+
function shuffle(a) {
|
78
|
+
for (var i = a.length - 1; i > 0; i--) {
|
79
|
+
var j = Math.floor(Math.random() * (i + 1));
|
80
|
+
[a[i], a[j]] = [a[j], a[i]];
|
81
|
+
}
|
82
|
+
return a;
|
83
|
+
}
|
84
|
+
function getDom(str) { return document.querySelector(str) }
|
85
|
+
fetch('/assets/data/comments.json').then(function (r) { return r.json() }).then(render).catch(function (e) { })
|
86
|
+
})
|
87
|
+
</script>
|
data/_includes/head.html
CHANGED
@@ -17,7 +17,10 @@
|
|
17
17
|
{% feed_meta %}
|
18
18
|
|
19
19
|
<!-- Google Analytics-->
|
20
|
-
{% if site.google_analytics
|
21
|
-
|
20
|
+
{% if site.google_analytics %}
|
21
|
+
{% include analytics.html %}
|
22
22
|
{% endif %}
|
23
|
+
|
24
|
+
<!-- Google AdSense-->
|
25
|
+
<script data-ad-client="{{ site.google_adsense }}" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
|
23
26
|
</head>
|
data/_includes/navigation.html
CHANGED
@@ -5,19 +5,29 @@
|
|
5
5
|
</a>
|
6
6
|
|
7
7
|
<ul>
|
8
|
-
{
|
9
|
-
{
|
10
|
-
|
8
|
+
{%- for page_name in site.nav_page_names -%}
|
9
|
+
{%- for page in site.pages -%}
|
10
|
+
|
11
|
+
{%- if page.title and page.name == page_name -%}
|
12
|
+
|
11
13
|
<li class='nav-item' role='presentation'>
|
12
14
|
<a class='nav-link' href='{{ page.url | prepend: site.baseurl }}'>{{ page.title }}</a>
|
13
15
|
</li>
|
14
|
-
{% endif %}
|
15
|
-
{% endunless %}
|
16
|
-
{% endfor %}
|
17
16
|
|
18
|
-
|
19
|
-
|
20
|
-
|
17
|
+
{%- endif -%}
|
18
|
+
|
19
|
+
{%- endfor -%}
|
20
|
+
{%- endfor -%}
|
21
|
+
|
22
|
+
{% if site.nav_feed == 'feeds.pub' %}
|
23
|
+
<li class='nav-item hidden-mobile' role='presentation'>
|
24
|
+
<a class='nav-link' href="https://feeds.pub/feed/https%3A%2F%2Fhutusi.com%2Ffeed.xml" target='_blank'><div class="center"><img src="https://img.shields.io/badge/dynamic/json?label=follow&query=%24.data.feed.followerCount&url=https%3A%2F%2Fapi.feeds.pub%2Fgraphql%3Fquery%3Dquery%2520feed%28%2524id%253A%2520String%21%29%257B%2520feed%28id%253A%2520%2524id%29%2520%257B%2520followerCount%2520%257D%2520%257D%26variables%3D%257B%2522id%2522%253A%2520%2522https%3A%2F%2Fhutusi.com%2Ffeed.xml%2522%257D%26operationName%3Dfeed&style=social&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEUAAABFCAYAAAAcjSspAAAACXBIWXMAAAInAAACJwG+ElQIAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAASkSURBVHgB7Ztdcts2EMf/oDyeNO5MnBOUN4hzAtNvrZ0H8QSimwPEPoHlE9g5gZkTSJ46mU77YPYEVd/6yN5AnWkzrVNxuxAhN3UA0YL46eA3Y30AkDT8c7FY7MKAw+FwlIfAAyAafe2rl/w8m8bhjxOsQedEiUbBNrAVeQLPCBTwJfiaYROiWRiH36ewYAMdIBfiUV+I3oDfBrKN5j3Ge7rDYy/4eQ8WtFoUOS08zxsQiSN+u73ap7EDS1opCosR8J0+4ZcBEWyZwpJWiRKN9tnsxRnUFFkHIjqFJa1wtNJneN7WCVvFEexgqyD+E1MBkWaUXcbhuxiWNC7Ky8sXrzKiIVbzGVO2hDeANwb+mMRhYj1VdDQmytw6xJcXvKz2V/hYwk73NA6vElRII6Io3zHCPNgqhK1CvGaLOC/bIkzU7mij0TccbwgZQxRNl9rFWFCrpby8PBhkhLhoHPsLFuP9sG4xFtQmioo9rguGcXgujqv2GUX0UAMyMmVBpA8xThllHYdx+MOvaJhafIqyEN/Qzb7DY+v4LkZLqFwUFYf4hm4Zb+yxIGtt9cumUp+ipo3RSliQ5xx5tkoQiYdK8QIYBcFxGwWRVCoKxyMnhi4Ozd+eo6VUJopKEfq6PqKbQ7SYCh3txs4iP3aHqRCbZ4fjA16eSS3RIp0/CkyyjH4BssQ2lVgGFYqS7Rj8uBQiyF/e9vvygf0MB3iyrYdvxwdxRrPTJsSpZPrkq47YxRqwjUW8cv0sN4+omdJFkXGJvBiUkD1jtlnc649KGLVQ2vTJ8yOPzzhQi1AuPN08mZGzzcqtTCmWIgURYuuaICJUAFvLADWydkS7EAT3LClwFPsT3wuOUbIU2OTUwI20BOl85WrEuRYM9J/782lnkkwq4XxvZ8h3/auL/tXY0D0+HO/v6qp+vc3HT7BG2WIV1po+vDJEFhl4P6/4mRDaC5/dfHiKmlhLlCVhvIw5ONtOqb73i0DXGo36UiyD1X1IURPWokgrgXn3+5r3NlHuPzQ/anCcPe8fk0NN60xNWouyxEr4At6pKSUS3QBepYK7U0jGIqr+oxmPBDViJYqKMn1dH+dYP9rsbUqHqrvD84rgf993m3fR+xoSb1AjVktyNDo44qXzTNM1uei/ff7/sfvnbFWvdN8jRG4ZBacKEv5OqyMVtlgtyewTdkmzAybKNHc045ikpxWFxRiiAKJZ7WkGq+lDt1v+u/Q+yaTJXW5e1LL4nXl2rjO7ZFMi+m/DCrEx5IcUq/zCvGbcTHbOUhTh61pNB/DicMxZ+5n0CynuQW4hV0M0xMqiqABLx9I4Ip9Gsz1ejsdLhiV5hr/Z/K2Fo/1r21BYLAyulH8Io9GLgB2wLLQ/ExzWZ5T9Js+aNF0uXdDI8S518Qlaio1P8Q3tKR4IFRfDuokTRYONKKmh3ccDwVmKBieKBieKBgtRHpmCtKLTjp1hZVHkPsbQ9fmK8jlgK4rWWpaXLrqDbT5FK4oqWHUeN300OFE0OFE02KYjU13r7Ob973gA2GXziY5xZwXKE83N/NdF2VifT8mPXHlHXAN6knEFry2pRIfD4XA4usm//qauBcoh1b8AAAAASUVORK5CYII=" alt="Follow on Feeds Pub"/></div></a>
|
25
|
+
</li>
|
26
|
+
{% elsif site.nav_feed == 'xml' %}
|
27
|
+
<li class='nav-item hidden-mobile' role='presentation'>
|
28
|
+
<a class='nav-link' href='{{ site.baseurl }}/feed.xml' target='_blank'>Feed</a>
|
29
|
+
</li>
|
30
|
+
{% endif %}
|
21
31
|
</ul>
|
22
32
|
</div>
|
23
33
|
</nav>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<!-- ref: https://longqian.me/2017/02/09/github-jekyll-tag/ -->
|
2
|
+
{% capture temptags %}
|
3
|
+
{% for tag in site.tags %}
|
4
|
+
{{ tag[1].size | plus: 1000 }}#{{ tag[0] }}#{{ tag[1].size }}
|
5
|
+
{% endfor %}
|
6
|
+
{% endcapture %}
|
7
|
+
{% assign sortedtemptags = temptags | split:' ' | sort | reverse %}
|
8
|
+
{% for temptag in sortedtemptags %}
|
9
|
+
{% assign tagitems = temptag | split: '#' %}
|
10
|
+
{% capture tagname %}{{ tagitems[1] }}{% endcapture %}
|
11
|
+
<a href="/tag/{{ tagname }}">{{ tagname }}</a>
|
12
|
+
{% endfor %}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
<h2>Archive of posts with {{ page.type }} '{{ page.title }}'</h2>
|
6
|
+
<ul class="posts">
|
7
|
+
{% for post in page.posts %}
|
8
|
+
<li>
|
9
|
+
<span class="post-date">{{ post.date | date: "%b %-d, %Y" }}</span>
|
10
|
+
<a class="post-link" href="{{ post.url | relative_url }}">{{ post.title }}</a>
|
11
|
+
</li>
|
12
|
+
{% endfor %}
|
13
|
+
</ul>
|
data/_layouts/home.html
CHANGED
@@ -21,10 +21,10 @@ layout: default
|
|
21
21
|
|
22
22
|
<div class="pagination">
|
23
23
|
{% if paginator.previous_page %}
|
24
|
-
<a href="{{ paginator.previous_page_path | prepend: site.baseurl }}" class="left arrow">←
|
24
|
+
<a href="{{ paginator.previous_page_path | prepend: site.baseurl }}" class="left arrow">← 上一页</a>
|
25
25
|
{% endif %}
|
26
26
|
{% if paginator.next_page %}
|
27
|
-
<a href="{{ paginator.next_page_path | prepend: site.baseurl }}" class="right arrow"
|
27
|
+
<a href="{{ paginator.next_page_path | prepend: site.baseurl }}" class="right arrow">下一页 →</a>
|
28
28
|
{% endif %}
|
29
29
|
|
30
30
|
<span>{{ paginator.page }}</span>
|
data/_layouts/page.html
CHANGED
@@ -9,8 +9,15 @@ layout: default
|
|
9
9
|
{{ content }}
|
10
10
|
</div>
|
11
11
|
|
12
|
-
{% if page.
|
13
|
-
|
12
|
+
{% if page.commentable %}
|
13
|
+
|
14
|
+
{% if site.comments_engine == 'disqus' %}
|
15
|
+
{% include disqus_comments.html %}
|
16
|
+
{% elsif site.comments_engine == 'gitalk' %}
|
17
|
+
{% include gitalk_comments.html %}
|
18
|
+
{% else %}
|
19
|
+
{% endif %}
|
20
|
+
|
14
21
|
{% endif %}
|
15
22
|
|
16
23
|
<div class="pagination">
|
data/_layouts/post.html
CHANGED
@@ -4,6 +4,7 @@ layout: default
|
|
4
4
|
|
5
5
|
<div class="post">
|
6
6
|
<h1 class="post-title">{{ page.title }}</h1>
|
7
|
+
<h2 class="post-subtitle">{{ page.subtitle }}</h2>
|
7
8
|
|
8
9
|
<div class="post-info">
|
9
10
|
{% if page.date %}
|
@@ -20,6 +21,10 @@ layout: default
|
|
20
21
|
{% endfor %}
|
21
22
|
</div>
|
22
23
|
|
24
|
+
<br />
|
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>
|
27
|
+
|
23
28
|
{% if site.comments_engine == 'disqus' %}
|
24
29
|
{% include disqus_comments.html %}
|
25
30
|
{% elsif site.comments_engine == 'gitalk' %}
|
@@ -36,4 +41,7 @@ layout: default
|
|
36
41
|
{% endif %}
|
37
42
|
|
38
43
|
<a href="#" class="top">Top</a>
|
39
|
-
</div>
|
44
|
+
</div>
|
45
|
+
|
46
|
+
<!-- Go to www.addthis.com/dashboard to customize your tools -->
|
47
|
+
<script async type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-4fa6932104ee5f3f"></script>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
<h2>{{ page.title }}</h2>
|
6
|
+
<ul>
|
7
|
+
{% for post in page.posts %}
|
8
|
+
<!-- <li><a href="{{ post.url }}">{{ post.title }}</a> ({{ post.date | date_to_string }} | Tags: {{ post.tags | array_to_sentence_string: "" }})</li> -->
|
9
|
+
<li><a href="{{ post.url }}">{{ post.title }}</a> ({{ post.date | date_to_string }})</li>
|
10
|
+
{% endfor %}
|
11
|
+
</ul>
|
12
|
+
|
13
|
+
<h2>All tags</h2>
|
14
|
+
|
15
|
+
<div id="tag-cloud" class='tags'>
|
16
|
+
{% include tag_cloud.html %}
|
17
|
+
</div>
|
data/_sass/tale.scss
CHANGED
data/_sass/tale/_base.scss
CHANGED
data/_sass/tale/_layout.scss
CHANGED
data/_sass/tale/_post.scss
CHANGED
@@ -0,0 +1,76 @@
|
|
1
|
+
/* https://gist.github.com/geektutu/f379d87767787979507a0e4a20da64ba */
|
2
|
+
|
3
|
+
#gitalk-related.dis-wrapper {
|
4
|
+
font-size: 14px;
|
5
|
+
margin: 70px 0;
|
6
|
+
overflow: hidden;
|
7
|
+
padding-bottom: 10px;
|
8
|
+
}
|
9
|
+
|
10
|
+
#gitalk-related * {
|
11
|
+
margin: 0;
|
12
|
+
padding: 0;
|
13
|
+
box-sizing: border-box;
|
14
|
+
text-decoration: none;
|
15
|
+
transform: none;
|
16
|
+
-webkit-transform: none;
|
17
|
+
}
|
18
|
+
|
19
|
+
#gitalk-related .dis-divide {
|
20
|
+
border-top: 2px solid #e7e9ee;
|
21
|
+
width: 100%;
|
22
|
+
float: left;
|
23
|
+
padding: 5px 10px;
|
24
|
+
margin-top: 20px;
|
25
|
+
text-align: center;
|
26
|
+
}
|
27
|
+
|
28
|
+
#gitalk-related .dis-item {
|
29
|
+
width: 50%;
|
30
|
+
float: left;
|
31
|
+
padding: 0px 10px;
|
32
|
+
margin-top: 20px;
|
33
|
+
height: 108px;
|
34
|
+
overflow: hidden;
|
35
|
+
}
|
36
|
+
|
37
|
+
#gitalk-related .dis-item-title {
|
38
|
+
font-size: 16px;
|
39
|
+
color: #6190e8;
|
40
|
+
font-weight: 500;
|
41
|
+
max-height: 3em;
|
42
|
+
line-height: 1.5;
|
43
|
+
overflow: hidden;
|
44
|
+
}
|
45
|
+
|
46
|
+
#gitalk-related .dis-item-des {
|
47
|
+
font-size: 0.85em;
|
48
|
+
}
|
49
|
+
|
50
|
+
#gitalk-related .dis-divide a,
|
51
|
+
#gitalk-related .dis-item-des,
|
52
|
+
#gitalk-related .dis-item-user {
|
53
|
+
color: rgba(30, 55, 70, .4);
|
54
|
+
}
|
55
|
+
|
56
|
+
#gitalk-related .dis-item-img {
|
57
|
+
width: 30px;
|
58
|
+
height: 30px;
|
59
|
+
margin-top: 3px;
|
60
|
+
}
|
61
|
+
|
62
|
+
#gitalk-related .dis-item-content {
|
63
|
+
display: flex;
|
64
|
+
}
|
65
|
+
|
66
|
+
#gitalk-related .dis-item-content>p {
|
67
|
+
padding-left: 10px;
|
68
|
+
color: #333;
|
69
|
+
line-height: 1.4em;
|
70
|
+
max-height: 4.2em;
|
71
|
+
overflow: hidden;
|
72
|
+
}
|
73
|
+
|
74
|
+
.text-center {
|
75
|
+
text-align: center !important;
|
76
|
+
}
|