---
layout: page-lists.njk
pagination:
  data: collections.tagPagination
  size: 1
  alias: tag
eleventyComputed:
  permalink: /tags/{{ tag.tagName | slugify }}/{% if tag.pageNumber %}{{ tag.pageNumber + 1 }}/{% endif %}
  title: "tag: {{ tag.tagName }}"
---

{% set postlist = tag.pageData %}
{% include "postlist.njk" %}

{# idk why these are backwards either #}
{% if tag.pageNumber > 0 %}
  {% set newerHref = pagination.href.previous %}
{% endif %}
{% if tag.pageNumber < tag.pageSize - 1 %}
  {% set olderHref = pagination.href.next %}
{% endif %}
{% include "pagination.njk" %}
