Updates to use newest alpha release with on-request image optimization during --serve. Cleans up config and data

This commit is contained in:
Zach Leatherman
2024-04-24 17:04:24 -05:00
parent b52d70845e
commit 56d15576a2
16 changed files with 87 additions and 117 deletions

View File

@@ -1,18 +1,19 @@
---
pagination:
data: collections
size: 1
alias: tag
filter:
- all
- post
- posts
- tagList
addAllPagesToCollections: true
layout: layouts/home.njk
eleventyComputed:
title: Tagged “{{ tag }}”
permalink: /tags/{{ tag | slugify }}/
---node
// <script>
const pagination = {
data: "collections",
size: 1,
alias: "tag",
filter: ["all", "posts"],
addAllPagesToCollections: true,
};
const eleventyComputed = {
title: "Tagged '{{ tag }}'",
permalink: function(data) {
return `/tags/${this.slugify(data.tag)}/`;
}
};
---
<h1>Tagged “{{ tag }}”</h1>