fix: tag list pages

This commit is contained in:
Cory Dransfeldt 2024-05-20 19:05:27 -07:00
parent a6a192d735
commit e7cc27ca5d
No known key found for this signature in database
4 changed files with 10 additions and 5 deletions

4
package-lock.json generated
View file

@ -1,12 +1,12 @@
{
"name": "coryd.dev",
"version": "16.5.6",
"version": "16.5.7",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "coryd.dev",
"version": "16.5.6",
"version": "16.5.7",
"license": "MIT",
"dependencies": {
"@cdransf/api-text": "^1.2.2",

View file

@ -1,6 +1,6 @@
{
"name": "coryd.dev",
"version": "16.5.6",
"version": "16.5.7",
"description": "The source for my personal site. Built using 11ty.",
"type": "module",
"scripts": {

View file

@ -1,3 +1,4 @@
body,
html {
color: var(--text-color);
@ -376,6 +377,10 @@ article {
margin-top: 0;
}
article.tag-post:last-of-type {
border-bottom: none;
}
.article-widget-wrapper {
border-bottom: 1px solid var(--gray-light);
margin-bottom: var(--sizing-base);

View file

@ -4,14 +4,14 @@ pagination:
data: collections
size: 1
alias: tag
permalink: "/tags/{% if pagination.pageNumber > 0 %}{{ pagination.pageNumber }}/{% endif %}index.html"
permalink: /tags/{{ tag }}/
eleventyComputed:
title: '{{ tag }}'
---
{% assign posts = collections[tag] | reverse %}
{% for post in posts %}
{% assign author = post.data.link | stripUtm | authorLookup %}
<article class="h-entry">
<article class="h-entry tag-post">
<div class="flex-centered gap-xs icon-small icon-light">
{% if author %}{% tablericon "link" "Link" %}{% endif %}
{% tablericon "calendar-month" "Date" %}