tag pages, meta keywords
This commit is contained in:
parent
04e4b0e51e
commit
c008cedf7c
17 changed files with 61 additions and 15 deletions
24
site/pages/tag.njk
Normal file
24
site/pages/tag.njk
Normal file
|
@ -0,0 +1,24 @@
|
|||
---
|
||||
layout: "base.njk"
|
||||
eleventyComputed:
|
||||
title: "Posts tagged #{{ tag }}"
|
||||
pagination:
|
||||
data: collections
|
||||
size: 1
|
||||
alias: tag
|
||||
filter:
|
||||
- posts
|
||||
- recipes
|
||||
- timeline
|
||||
permalink: /tags/{{ tag | slugify }}/
|
||||
useTitle: true
|
||||
---
|
||||
{%- from "components/collectionList.njk" import collectionList with context -%}
|
||||
<main>
|
||||
<section data-pagefind-body>
|
||||
{{ content | safe }}
|
||||
</section>
|
||||
{% if collections[tag] %}
|
||||
{{ collectionList(collections[tag]) }}
|
||||
{% endif %}
|
||||
</main>
|
Loading…
Add table
Add a link
Reference in a new issue