tag pages are structured out, most formatting is in place
This commit is contained in:
22
src/meta/tag-pages.njk
Normal file
22
src/meta/tag-pages.njk
Normal 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" %}
|
||||
Reference in New Issue
Block a user