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 225b938 commit 88d3508
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions tags.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,17 @@
permalink: /tags/
---

<h1>All Tags</h1>

<!-- <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 %}

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

0 comments on commit 88d3508

Please sign in to comment.