Skip to content

Commit

Permalink
Add tags page
Browse files Browse the repository at this point in the history
  • Loading branch information
hteumeuleu committed Jun 22, 2022
1 parent e8a0127 commit e2b91bf
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions pages/tags.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
layout: default
title: Features tagged on Can I email…
permalink: /tags/
---
{% assign tags = site.features | map:"tags" | join: ',' | split: ',' | uniq %}
{% assign tags = tags | sort_natural %}
{% for tag in tags %}
<h1 class="list-title" id="title-{{ tag | slugify }}">{{ site.data.nicenames.tags[tag] | default: tag }}</h1>
{% assign features-by-tag = site.features | where:"tags", tag %}
<ul class="list list--features">
{% for feature in features-by-tag %}
<li><a href="{{ feature.url }}">{{ feature.title | escape_once }}</a></li>
{% endfor %}
</ul>
{% endfor %}

0 comments on commit e2b91bf

Please sign in to comment.