taletype 0.1.1 → 0.1.6

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: 1ec5d20203e5f77694e336a2f0260f050ee3632e8213582201cb841225556671
4
- data.tar.gz: b00eb38e5dc2c0ad98000f41262dd6c8bf28a1a63ee8f545e2c93aee5e782476
3
+ metadata.gz: 8d3e085454faf5fc1c02eb6c4c38b237d7ae59952a2d60d0aaab9d52fdf6af76
4
+ data.tar.gz: 2df637177bd2d7684ec216646646cc1cf0a873a7da21a8a1e3a77c7e5039d375
5
5
  SHA512:
6
- metadata.gz: c4fb23ddb319fcd2f00172e8f53e08e5b505452781baeb915fbf021aef6922dca9c8c22bccce42053e46252129fa6343d106e6cebd651cf09fa57c8a60bd19f4
7
- data.tar.gz: 58faa2a81e590efc7c87e94e5efc1f54ed325a748de1308e0f51ef459eb8a981efdfe902359feb21667dab425f5c6a8cc335d816216260d37a5195d6ed8abea4
6
+ metadata.gz: 7a896b161bae4a1ebca089611c9b8c53e2517200fd073586a940a60115d6958a5b6403d545510aa12d10f54fdad7e2e0c6451662b21083074af1675a20dbe061
7
+ data.tar.gz: eac39d1a39f0d8db5e49a72e9142e900eb23acd8df52e5fbb09558544b90fd19500d698bcbe437f7f65930884ccdb9dba32f2b6180fd215a1ee9486c8db9094b
@@ -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>
@@ -1,6 +1,43 @@
1
1
  <footer>
2
2
  <span>
3
- &copy; <time>{{ site.time | date: '%Y' }}</time> {{ site.copyright }} {{ site.icp_info }} <br />
4
- Made with Jekyll using the <a href="https://github.com/hutusi/tale/" target="_blank">TaleType</a> theme.
3
+ &copy; <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 />
5
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
+
6
43
  </footer>
@@ -1,19 +1,88 @@
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
- <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"></div>
6
+ {% assign cache_bust = site.time | date:'?v=%s' %}
7
+ <script src="{{ "/assets/js/gitalk.min.js" | relative_url | append: cache_bust }}" /></script>
8
+ <!-- <div id="disqus_thread"><h3>Discussion and feedback</h3></div> -->
9
+ <div id="gitalk-container">
10
+ <div class="gt-container text-center" style="margin-top: 50px;">
11
+ <button class="gt-btn gt-btn-public"><span class="gt-btn-text">去 Github 评论</span></button>
12
+ </div>
13
+ </div>
14
+
15
+ <div id="gitalk-related"></div>
16
+
5
17
  <script>
6
- const gitalk = new Gitalk({
7
- clientID: '{{ site.gitalk.client_id }}',
8
- clientSecret: '{{ site.gitalk.client_secret }}',
9
- repo: '{{ site.gitalk.repo }}',
10
- owner: '{{ site.gitalk.owner }}',
11
- admin: '{{ site.gitalk.admin }}',
12
- id: location.pathname, // Ensure uniqueness and length less than 50
13
- distractionFreeMode: false // Facebook-like distraction free mode
14
- })
18
+ window.addEventListener('load', function () {
19
+ function renderCommentUrl(data) {
20
+ var url = (data[window.location.pathname] || {}).url
21
+ url && getDom('#gitalk-container button').addEventListener('click', function (e) { window.open(url)})
22
+ url || (getDom('#gitalk-container').style.display = 'none')
23
+ }
24
+ function getDom(str) { return document.querySelector(str) }
25
+
26
+ const gitalk = new Gitalk({
27
+ clientID: '{{ site.gitalk.client_id }}',
28
+ clientSecret: '{{ site.gitalk.client_secret }}',
29
+ repo: '{{ site.gitalk.repo }}',
30
+ owner: '{{ site.gitalk.owner }}',
31
+ admin: '{{ site.gitalk.admin }}',
32
+ id: location.pathname, // Ensure uniqueness and length less than 50
33
+ distractionFreeMode: false // Facebook-like distraction free mode
34
+ })
15
35
 
16
- gitalk.render('gitalk-container')
36
+ fetch("https://api.github.com/user").then(function(resp){
37
+ gitalk.render('gitalk-container');
38
+ }).catch(function(e){
39
+ fetch('/assets/data/issues.json').then(function (r) { return r.json() }).then(renderCommentUrl).catch(function (e) { })
40
+ })
41
+ getDom('#gitalk-container').addEventListener('click', function (e) {
42
+ e && e.stopPropagation && e.stopPropagation();
43
+ });
44
+ })
17
45
  </script>
18
46
  <noscript>Please enable JavaScript to view the <a href="https://gitalk.github.io/">comments powered by gitalk.</a></noscript>
19
47
  <!-- End gitalk -->
48
+
49
+ <!-- gitalk plus -->
50
+ <script>
51
+ window.addEventListener('load', function () {
52
+ function render(comments) {
53
+ var template = '<a href="${comment.url}?utm_source=gitalk" class="dis-item-url"><h3 class="dis-item-title">${comment.title}</h3>' +
54
+ '<p class="dis-item-des">${comment.count} 评论 ● ${comment.date}</p>' +
55
+ '<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>&nbsp;——&nbsp;${comment.body}</p></div>' +
56
+ '</a>'
57
+
58
+ var wrapper = getDom('#gitalk-related');
59
+ comments = shuffle(comments);
60
+ comments.slice(0, 4).forEach(function (c) {
61
+ var div = document.createElement('div');
62
+ div.classList.add('dis-item');
63
+ div.innerHTML = template.replace("${comment.url}", c.url)
64
+ .replace("${comment.title}", c.title)
65
+ .replace("${comment.count}", c.count)
66
+ .replace("${comment.date}", c.date)
67
+ .replace("${comment.icon}", c.icon)
68
+ .replace("${comment.user}", c.user)
69
+ .replace("${comment.body}", c.body)
70
+ wrapper.appendChild(div)
71
+ })
72
+ var p = document.createElement('p')
73
+ p.innerHTML = '<a href="https://geektutu.com/post/blog-experience-7.html">Gitalk Plus</a>';
74
+ p.classList.add('dis-divide');
75
+ wrapper.appendChild(p);
76
+ wrapper.classList.add('dis-wrapper')
77
+ }
78
+ function shuffle(a) {
79
+ for (var i = a.length - 1; i > 0; i--) {
80
+ var j = Math.floor(Math.random() * (i + 1));
81
+ [a[i], a[j]] = [a[j], a[i]];
82
+ }
83
+ return a;
84
+ }
85
+ function getDom(str) { return document.querySelector(str) }
86
+ fetch('/assets/data/comments.json').then(function (r) { return r.json() }).then(render).catch(function (e) { })
87
+ })
88
+ </script>
data/_includes/head.html CHANGED
@@ -3,9 +3,10 @@
3
3
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
4
4
 
5
5
  {% seo %}
6
-
6
+
7
7
  <!-- CSS -->
8
- <link rel="stylesheet" href="{{ "/assets/main.css" | relative_url }}">
8
+ {% assign cache_bust = site.time | date:'?v=%s' %}
9
+ <link rel="stylesheet" href="{{ "/assets/main.css" | relative_url | append: cache_bust }}">
9
10
  <!-- <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Libre+Baskerville:400,400i,700"> -->
10
11
 
11
12
  <!-- Favicon -->
@@ -17,7 +18,10 @@
17
18
  {% feed_meta %}
18
19
 
19
20
  <!-- Google Analytics-->
20
- {% if site.google_analytics and jekyll.environment == 'production' %}
21
- {% include analytics.html %}
21
+ {% if site.google_analytics %}
22
+ {% include analytics.html %}
22
23
  {% endif %}
24
+
25
+ <!-- Google AdSense-->
26
+ <script data-ad-client="{{ site.google_adsense }}" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
23
27
  </head>
@@ -0,0 +1,6 @@
1
+ <!-- usage: {% include image.html file="img.jpg" caption="Image caption" %} -->
2
+
3
+ <figure>
4
+ <img src="{{site.url}}/{{page.img_path}}/{{ include.file }}" alt="{{ include.caption}}">
5
+ <figcaption>{{ include.caption }}</figcaption>
6
+ </figure>
@@ -5,19 +5,29 @@
5
5
  </a>
6
6
 
7
7
  <ul>
8
- {% for page in site.pages %}
9
- {% unless page.name == '404.md' %}
10
- {% if page.title %}
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
- <li class='nav-item' role='presentation'>
19
- <a class='nav-link' href='{{ site.baseurl }}/feed.xml' target='_blank'>Feed</a>
20
- </li>
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">&#8592;</a>
24
+ <a href="{{ paginator.previous_page_path | prepend: site.baseurl }}" class="left arrow">&#8592; 上一页</a>
25
25
  {% endif %}
26
26
  {% if paginator.next_page %}
27
- <a href="{{ paginator.next_page_path | prepend: site.baseurl }}" class="right arrow">&#8594;</a>
27
+ <a href="{{ paginator.next_page_path | prepend: site.baseurl }}" class="right arrow">下一页 &#8594;</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.comments %}
13
- {% include disqus_comments.html %}
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
@@ -10,3 +10,4 @@
10
10
  @import 'tale/catalogue';
11
11
 
12
12
  @import 'vendor/gitalk';
13
+ @import 'vendor/gitalk-plus';
@@ -64,3 +64,13 @@ img {
64
64
  td {
65
65
  vertical-align: top;
66
66
  }
67
+
68
+ @media (max-width: 600px) {
69
+ .hidden-mobile {
70
+ visibility: hidden;
71
+ display: none;
72
+ clear: both;
73
+ float: left;
74
+ width: 100%;
75
+ }
76
+ }
@@ -58,6 +58,11 @@ footer,
58
58
  &:focus {
59
59
  opacity: 1;
60
60
  }
61
+
62
+ .center {
63
+ height: 15px;
64
+ position: relative;
65
+ }
61
66
  }
62
67
 
63
68
  a {
@@ -26,6 +26,13 @@
26
26
  text-align: center;
27
27
  }
28
28
 
29
+ &-subtitle {
30
+ color: $default-shade;
31
+ font-family: $serif-secondary;
32
+ font-size: 18px;
33
+ text-align: center;
34
+ }
35
+
29
36
  &-line {
30
37
  border-top: 0.4rem solid $default-shade;
31
38
  display: block;
@@ -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
+ }