Skip to content

Commit

Permalink
tags page
Browse files Browse the repository at this point in the history
  • Loading branch information
bluntspoon committed Jan 8, 2024
1 parent 1a62a41 commit 225b938
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion tags.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,28 @@

<h1>All Tags</h1>

<ul class="tag-list">
<!-- <ul class="tag-list">
{% for tag in site.tags %}
<li>
<a href="#{{ tag[0] | slugify }}">{{ tag[0] }} ({{ tag[1] | size }})</a>
</li>
{% endfor %}
</ul> -->


{% for tag in site.tags %}
{% assign t = tag | first %}
{% assign posts = tag | last %}

{{ t | downcase }}
<ul class="tag-list">
{% for post in posts %}
{% if post.tags contains t %}
<li>
<a href="{{ post.url }}">{{ post.title }}</a>
<span class="date">{{ post.date | date: "%B %-d, %Y" }}</span>
</li>
{% endif %}
{% endfor %}
</ul>
{% endfor %}

0 comments on commit 225b938

Please sign in to comment.