From f2e6f36ce611d45d4247c5ba47e4405528dce824 Mon Sep 17 00:00:00 2001 From: lauralani Date: Thu, 31 Aug 2023 11:46:54 +0200 Subject: [PATCH] add option to exclude pages from indexing --- content/impressum.md | 1 + layouts/partials/head/meta.html | 1 + 2 files changed, 2 insertions(+) diff --git a/content/impressum.md b/content/impressum.md index 1c41b83..95f2294 100644 --- a/content/impressum.md +++ b/content/impressum.md @@ -1,6 +1,7 @@ --- title: Impressum und Datenschutzerklärung description: Impressum und Datenschutzerklärung +noindex: true --- ## Impressum diff --git a/layouts/partials/head/meta.html b/layouts/partials/head/meta.html index 93688de..c4c8953 100644 --- a/layouts/partials/head/meta.html +++ b/layouts/partials/head/meta.html @@ -6,4 +6,5 @@ {{ $summary := or .Page.Params.Description .Site.Params.Description }} +{{ if .Page.Params.Noindex }}{{end}} {{ hugo.Generator }}