summaryrefslogtreecommitdiff
path: root/posts/tags.njk
blob: f984630ebeaf94cac91a59c78ea5a6991b642345 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
---
layout: page
eleventyExcludeFromCollections: true
pagination:
  data: collections
  size: 1
  alias: tag
  filter:
    - all
    - posts
permalink: /{{ tag | slug }}/
eleventyComputed:
  title: "#{{ tag }}"
  pageTitle: "{{ title }} – {{ metadata.title | safe }}"
---
      <a id="up" title="Home" aria-label="Home" href="/"></a>
      <a id="back" title="Back" aria-label="Back" href="javascript:history.back()"></a>
      <h1>{{ title }}</h1>
      <hr>
{% set taglist = collections[ tag ] -%}
{% for post in taglist | reverse %}
      <section>
      <h2><a href="{{ post.url }}">{{ post.data.title }}</a></h2>
      {%- set postDate = post.date.toISOString().slice(0,10) %}
      <p class="post-date"><time datetime="{{ postDate }}">{{ postDate }}</time></p>
      {{ post | excerpt | safe }}
      </section>
      <hr>
{% endfor -%}