mirror of
https://github.com/svemagie/blog-eleventy-indiekit.git
synced 2026-04-02 16:44:56 +02:00
Wire up @quasibit/eleventy-plugin-sitemap (already installed) with a sitemap.njk template and excludeFromSitemap filter. Excludes replies, feeds, categories, digest, debug pages, admin pages, and 404.
8 lines
171 B
Plaintext
8 lines
171 B
Plaintext
---
|
|
permalink: /sitemap.xml
|
|
layout: null
|
|
eleventyExcludeFromCollections: true
|
|
---
|
|
{% set sitemapItems = collections.all | excludeFromSitemap %}
|
|
{% sitemap sitemapItems %}
|