refactor: migrate tags and sitemap to /blog subdirectory

This commit is contained in:
2022-11-09 10:00:38 +01:00
parent 782f466ee6
commit ef6277b65c
6 changed files with 4 additions and 31 deletions

View File

@@ -0,0 +1,14 @@
---
permalink: /blog/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 %}
{% set absoluteUrl %}{{ page.url | htmlBaseUrl(metadata.url) }}{% endset %}
<url>
<loc>{{ absoluteUrl }}</loc>
<lastmod>{{ page.date | htmlDateString }}</lastmod>
</url>
{%- endfor %}
</urlset>

View File

@@ -12,7 +12,7 @@ pagination:
layout: home.njk
eleventyComputed:
title: Tags “{{ tag }}”
permalink: /tags/{{ tag | slugify }}/
permalink: /blog/tags/{{ tag | slugify }}/
---
<div class="main-content">
<h1>#{{ tag }}</h1>