From 146f20ee3f477d05f6f63836f3148c57a780a7da Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Wed, 24 May 2023 14:46:39 +0200 Subject: [PATCH] Pagina's met 'noindex: true' worden opgenomen in Disallow --- themes/nluug/layouts/robots.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/themes/nluug/layouts/robots.txt b/themes/nluug/layouts/robots.txt index db9ed43..847fc04 100644 --- a/themes/nluug/layouts/robots.txt +++ b/themes/nluug/layouts/robots.txt @@ -1,2 +1,5 @@ User-agent: * +{{ range where .Site.Pages "Params.noindex" true -}} +Disallow: {{ .Permalink }} +{{- end }} Sitemap: {{ absURL site.Home.Sitemap.Filename }}