Skip to content

Commit 60f164b

Browse files
committed
Do some housekeeping
* Add post number in each year in writings * Remove Disqus forever.
1 parent 38e380c commit 60f164b

File tree

2 files changed

+18
-32
lines changed

2 files changed

+18
-32
lines changed

_layouts/post.html

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,18 @@ <h1 class="post__title">{{ page.title }}</h1>
1818
</footer>
1919
</article>
2020

21-
<div id="disqus_thread"></div>
22-
<script type="text/javascript">
23-
/* * * CONFIGURATION VARIABLES * * */
24-
var disqus_shortname = 'codegazegithubio';
25-
26-
/* * * DON'T EDIT BELOW THIS LINE * * */
27-
(function() {
28-
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
29-
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
30-
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
31-
})();
32-
</script>
33-
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
21+
<div id="disqus_thread"><script src="https://giscus.app/client.js"
22+
data-repo="codegaze/codegaze.github.io"
23+
data-repo-id="MDEwOlJlcG9zaXRvcnkzNTE1MjE0Nw=="
24+
data-category="Codegazerants.com"
25+
data-category-id="DIC_kwDOAhhhE84CTJFt"
26+
data-mapping="pathname"
27+
data-strict="0"
28+
data-reactions-enabled="1"
29+
data-emit-metadata="0"
30+
data-input-position="bottom"
31+
data-theme="light_tritanopia"
32+
data-lang="en"
33+
crossorigin="anonymous"
34+
async>
35+
</script></div>

writings.html

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010

1111
{%- for yearitem in groupedByYear -%}
1212
<yearlist>
13-
<h2>{{ yearitem.name }}</h2>
13+
<header class="posts-grid__header">
14+
<h2>{{ yearitem.name }}</h2> [{{yearitem.items|size}} posts]
15+
</header>
1416
<hr>
1517
<list>
1618
{%- for item in yearitem.items -%}
@@ -34,22 +36,4 @@ <h3 class="posts-grid__item-title">
3436
</list>
3537
</yearlist>
3638
{% endfor %}
37-
<!-- {% for post in site.posts %}
38-
<article class="posts-grid__item">
39-
<a href="{{ site.baseurl }}{{ post.url }}" class="posts-grid__link">
40-
<h3 class="posts-grid__item-title">
41-
{{ post.title }}
42-
</h3>
43-
</a>
44-
<p class="posts-grid__summary">{{ post.excerpt| strip_html }}</p>
45-
<div class="posts-grid__meta">
46-
<time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date_to_long_string }}</time>
47-
<span> -
48-
{% for category in post.categories %}
49-
<a href="{{site.baseurl}}/categories/#{{category|slugize}}">{{ category }}</a>
50-
{% endfor %}
51-
</span>
52-
</div>
53-
</article>
54-
{% endfor %} -->
5539
</section>

0 commit comments

Comments
 (0)