fix: wrong site url and sitemap

This commit is contained in:
Stefan Imhoff
2022-03-08 10:21:50 +01:00
parent a5fefd6084
commit 4a8d6f4458
2 changed files with 2 additions and 2 deletions

View File

@@ -8,7 +8,7 @@ module.exports = {
buildTime: new Date(), buildTime: new Date(),
title: 'Exploring Hamburg', title: 'Exploring Hamburg',
description: 'Street by Street, District by District', description: 'Street by Street, District by District',
url: 'https://www.kogakure.de', url: 'https://hamburg.stefanimhoff.de',
author: 'Stefan Imhoff', author: 'Stefan Imhoff',
twitter: '@kogakure', twitter: '@kogakure',
faviconPath: '/assets/images/branding/favicons/', faviconPath: '/assets/images/branding/favicons/',

View File

@@ -7,7 +7,7 @@ eleventyExcludeFromCollections: true
{%- for item in collections.all -%} {%- for item in collections.all -%}
{%- if not item.data.excludeFromSitemap and item.url -%} {%- if not item.data.excludeFromSitemap and item.url -%}
<url> <url>
<loc>{{ item.url | url | absoluteUrl(meta.url) }}</loc> <loc>{{ site.url }}{{ item.url | url | absoluteUrl(meta.url) }}</loc>
<lastmod>{{ item.date | dateToFormat('yyyy-MM-DD') }}</lastmod> <lastmod>{{ item.date | dateToFormat('yyyy-MM-DD') }}</lastmod>
</url> </url>
{%- endif -%} {%- endif -%}