1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2025-12-18 05:41:31 +00:00

Using jekyll-archives to create category/tag pages.

This commit is contained in:
Cotes Chung
2020-11-18 23:16:09 +08:00
parent aac29d43e5
commit 1889b6b4e0
4 changed files with 17 additions and 7 deletions

View File

@@ -11,10 +11,10 @@ layout: page
<h1 class="pl-lg-2">
<i class="fa fa-tag fa-fw text-muted"></i>
{{ page.title }}
<span class="lead text-muted pl-2">{{ site.tags[page.tag] | size }}</span>
<span class="lead text-muted pl-2">{{ page.posts | size }}</span>
</h1>
<ul class="post-content pl-0">
{% for post in site.tags[page.tag] %}
{% for post in page.posts %}
<li class="d-flex justify-content-between pl-md-3 pr-md-3">
<a href="{{ post.url | relative_url }}">{{ post.title }}</a>
<span class="dash flex-grow-1"></span>
@@ -22,4 +22,4 @@ layout: page
</li>
{% endfor %}
</ul>
</div>
</div>