add option to exclude pages from indexing
All checks were successful
ci/woodpecker/push/deploy-netlify Pipeline was successful

This commit is contained in:
Adora Laura Kalb 2023-08-31 11:46:54 +02:00
parent 14aba263f8
commit f2e6f36ce6
Signed by: adoralaura
GPG key ID: 7A4552166FC8C056
2 changed files with 2 additions and 0 deletions

View file

@ -1,6 +1,7 @@
--- ---
title: Impressum und Datenschutzerklärung title: Impressum und Datenschutzerklärung
description: Impressum und Datenschutzerklärung description: Impressum und Datenschutzerklärung
noindex: true
--- ---
## Impressum ## Impressum

View file

@ -6,4 +6,5 @@
{{ $summary := or .Page.Params.Description .Site.Params.Description }} {{ $summary := or .Page.Params.Description .Site.Params.Description }}
<meta property="og:description" content="{{ $summary }}" /> <meta property="og:description" content="{{ $summary }}" />
<meta name="description" content="{{ $summary }}" /> <meta name="description" content="{{ $summary }}" />
{{ if .Page.Params.Noindex }}<meta name="robots" content="noindex">{{end}}
{{ hugo.Generator }} {{ hugo.Generator }}