all but posts omg

This commit is contained in:
2026-02-19 12:07:10 -08:00
parent 1913d9c46e
commit 96049f57ee
40 changed files with 1030 additions and 192 deletions
+25
View File
@@ -0,0 +1,25 @@
---
layout: page-lists.njk
permalink: gallery/index.html
pagination:
data: collections["gallery"]
size: 13
reverse: true
alias: postlist
eleventyNavigation:
key: gallery
order: 2
title: gallery
icon: fa-regular fa-images
label: view the gallery
---
<p class="centered">the gallery page is for finished art</p>
<p class="centered">(or <a href="/tags/">browse by tags</a>)</p>
{% include "postlist.njk" %}
{# idk why these are backwards either #}
{% set newerHref = pagination.href.previous %}
{% set olderHref = pagination.href.next %}
{% include "pagination.njk" %}
+25
View File
@@ -0,0 +1,25 @@
---
layout: page-lists.njk
permalink: reference/index.html
pagination:
data: collections["reference"]
size: 13
reverse: true
alias: postlist
eleventyNavigation:
key: reference
order: 1
title: reference
icon: fa-regular fa-folder-open
label: read reference posts
---
<p class="centered">the reference page is for informational posts</p>
<p class="centered">(or <a href="/tags/">browse by tags</a>)</p>
{% include "postlist.njk" %}
{# idk why these are backwards either #}
{% set newerHref = pagination.href.previous %}
{% set olderHref = pagination.href.next %}
{% include "pagination.njk" %}
+2 -2
View File
@@ -1,11 +1,11 @@
---
layout: page.njk
layout: page-lists.njk
pagination:
data: collections.tagPagination
size: 1
alias: tag
eleventyComputed:
permalink: /tag/{{ tag.tagName | slugify }}/{% if tag.pageNumber %}{{ tag.pageNumber + 1 }}/{% endif %}
permalink: /tags/{{ tag.tagName | slugify }}/{% if tag.pageNumber %}{{ tag.pageNumber + 1 }}/{% endif %}
title: "tag: {{ tag.tagName }}"
---
+27
View File
@@ -0,0 +1,27 @@
---
layout: page-lists.njk
permalink: tags/index.html
title: all tags
---
<ul id="taglist">
{% for tag in collections | getKeys | removeBasicTags | sortAlphabetically %}
{% set tagUrl %}/tags/{{ tag | slugify }}/{% endset %}
<li class="tag">
<a href="{{ tagUrl }}" class="taglink">
<div class="tag-imgs">
{% for i in range(0, 4) %}
{% if collections[tag][i].data.image %}
<img src="/img/{{ collections[tag][i].data.image.src }}" alt="{{ collections[tag][i].data.image.alt }}">
{% else %}
<div class="missing-image"></div>
{% endif %}
{% endfor %}
</div>
<h2>{{ tag }}</h2>
{% set numPosts = collections[tag].length %}
<p><span class="tagcount">({{ numPosts }} post{% if numPosts > 1 %}s{% endif %})</span></p>
</a>
</li>
{% endfor %}
</ul>