28 lines
608 B
Plaintext
28 lines
608 B
Plaintext
![]() |
---js
|
||
|
// <script>
|
||
|
const pagination = {
|
||
|
data: "collections",
|
||
|
size: 1,
|
||
|
alias: "tag",
|
||
|
filter: ["all", "posts"],
|
||
|
// addAllPagesToCollections: true,
|
||
|
};
|
||
|
|
||
|
const eleventyExcludeFromCollections = true;
|
||
|
|
||
|
const eleventyComputed = {
|
||
|
title: "Tagged '{{ tag }}'",
|
||
|
permalink: function(data) {
|
||
|
// If DuplicatePermalinkOutputError occurs, check that no tag occurs
|
||
|
// with differing case, e.g. "RSS" and "rss".
|
||
|
return `/tags/${this.slugify(data.tag)}/`;
|
||
|
}
|
||
|
};
|
||
|
---
|
||
|
<h1>Tagged “{{ tag }}”</h1>
|
||
|
|
||
|
{% set postslist = collections[ tag ] %}
|
||
|
{% include "postslist.njk" %}
|
||
|
|
||
|
<p>See <a href="tags.njk">all tags</a>.</p>
|