From af6d0bc278d0335ad7faad17cd7549f2f380353c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Sch=C3=BCrmann?= Date: Wed, 1 Aug 2018 23:37:03 +0200 Subject: [PATCH] Exclude all widgets from the sitemap (#613) Previously, widgets outside of the `home` folder may have appeared in the sitemap. --- layouts/sitemap.xml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/layouts/sitemap.xml b/layouts/sitemap.xml index c70c004f..67f3f650 100644 --- a/layouts/sitemap.xml +++ b/layouts/sitemap.xml @@ -1,7 +1,6 @@ {{ range (where .Data.Pages "Section" "!=" "home") }} - {{ $perm := add $.Site.LanguagePrefix "/home/" }} - {{ if ne .RelPermalink $perm }} + {{ if not .Params.widget }} {{ if .IsTranslated }} {{ range .Translations }}