tag pages are structured out, most formatting is in place

This commit is contained in:
2026-02-19 07:44:29 -08:00
parent f2face01a7
commit 1913d9c46e
22 changed files with 211 additions and 109 deletions

22
src/meta/tag-pages.njk Normal file
View File

@ -0,0 +1,22 @@
---
layout: page.njk
pagination:
data: collections.tagPagination
size: 1
alias: tag
eleventyComputed:
permalink: /tag/{{ 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" %}