mirror of
https://github.com/ckaczor/Blog.git
synced 2026-01-13 17:22:16 -05:00
Initial commit from template
This commit is contained in:
25
content/tag-pages.njk
Normal file
25
content/tag-pages.njk
Normal file
@@ -0,0 +1,25 @@
|
||||
---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) {
|
||||
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>
|
||||
Reference in New Issue
Block a user