Compare commits

..
2 Commits
Author SHA1 Message Date
inherentlee e570d175b2 sitemap
continuous-integration/drone/push Build is passing
2026-09-23 14:58:23 -07:00
inherentlee 2a95c25d5e sitemap 2026-09-23 14:32:23 -07:00
2 changed files with 18 additions and 1 deletions

No files matched your search

+1 -1
View File
@@ -26,7 +26,7 @@ export default async function(eleventyConfig) {
/* All filters from _config/filters.js */ /* All filters from _config/filters.js */
eleventyConfig.addPlugin(pluginFilters); eleventyConfig.addPlugin(pluginFilters);
/* Pathprefix stuff */ /* HTML Base */
eleventyConfig.addPlugin(HtmlBasePlugin); eleventyConfig.addPlugin(HtmlBasePlugin);
/* `id` attributes */ /* `id` attributes */
+17
View File
@@ -0,0 +1,17 @@
---
permalink: sitemap.xml
layout: false
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 %}
{% if page.data.permalink != false %}
{% set absoluteUrl %}{{ page.url | htmlBaseUrl(metadata.url) }}{% endset %}
<url>
<loc>{{ absoluteUrl }}</loc>
<lastmod>{{ page.date | htmlDateString }}</lastmod>
</url>
{% endif %}
{% endfor %}
</urlset>