chug chug, working on post formatting and tag pages
This commit is contained in:
9
src/meta/404.md
Normal file
9
src/meta/404.md
Normal file
@ -0,0 +1,9 @@
|
||||
---
|
||||
layout: page.njk
|
||||
permalink: 404.html
|
||||
eleventyExcludeFromCollections: true
|
||||
---
|
||||
|
||||
# Sorry, can't find that
|
||||
|
||||
Head [home](/).
|
||||
16
src/meta/sitemap.xml
Normal file
16
src/meta/sitemap.xml
Normal file
@ -0,0 +1,16 @@
|
||||
---
|
||||
permalink: sitemap.xml
|
||||
eleventyExcludeFromCollections: true
|
||||
---
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml">
|
||||
{% for page in collections.all %}
|
||||
{% if page.data.permalink != false %}
|
||||
{% set absoluteUrl %}{{ page.url | htmlBaseUrl(metadata.url) }}{% endset %}
|
||||
<url>
|
||||
<loc>{{ absoluteUrl }}</loc>
|
||||
<lastmod>{{ page.date | htmlDateString }}</lastmod>
|
||||
</url>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</urlset>
|
||||
@ -17,3 +17,5 @@ This site is created [without the use of generative AI](https://declare-ai.org/1
|
||||
You can [find the accessibility statement for leecat.art here](/accessibility).
|
||||
|
||||
If you'd like, you can view the [site palette](/palette) or the [style overview](/style).
|
||||
|
||||
[The sitemap can be found here](/sitemap.xml).
|
||||
|
||||
24
src/pages/tag-pages.njk
Normal file
24
src/pages/tag-pages.njk
Normal file
@ -0,0 +1,24 @@
|
||||
---
|
||||
pagination:
|
||||
data: collections.doublePagination
|
||||
size: 1
|
||||
alias: tag
|
||||
eleventyComputed:
|
||||
permalink: /tag/{{ tag.tagName | slugify }}/{% if tag.pageNumber %}{{ tag.pageNumber + 1 }}/{% endif %}
|
||||
title: "Posts tagged {{ tag.tagName }}"
|
||||
---
|
||||
{% set postlist = tag.pageData %}
|
||||
{% include "postlist.njk" %}
|
||||
|
||||
{% if tag.pageNumber > 0 or tag.pageNumber < tag.pageSize - 1 %}
|
||||
<nav aria-label="pagination">
|
||||
<ol class="pagination">
|
||||
{% if tag.pageNumber > 0 %}
|
||||
<li class="prev"><a href="{{ pagination.href.previous }}"><< Previous</a></li>
|
||||
{% endif %}
|
||||
{% if tag.pageNumber < tag.pageSize - 1 %}
|
||||
<li class="next"><a href="{{ pagination.href.next }}">Next >></a></li>
|
||||
{% endif %}
|
||||
</ol>
|
||||
</nav>
|
||||
{% endif %}
|
||||
@ -2,8 +2,6 @@
|
||||
title: Sample
|
||||
date: 2026-02-17
|
||||
tags:
|
||||
- some
|
||||
- tags
|
||||
- gallery
|
||||
image:
|
||||
src: 2026/sample-0.jpg
|
||||
|
||||
Reference in New Issue
Block a user