commit e06649f8c8ad97548e6085a8f3effffcc349e58a
parent 94d8927676510493336a745a2861145889663dcd
Author: Florian <26717601+florianbieser@users.noreply.github.com>
Date:   Wed, 18 Jan 2023 16:55:33 +0100

option to set an attribute noindex in front-matter for some sites

Diffstat:
Mlayouts/partials/head.html | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/layouts/partials/head.html b/layouts/partials/head.html @@ -3,6 +3,9 @@ <meta name="description" content="{{ if .IsHome }}{{ $.Site.Params.Subtitle }}{{ else if .Description}}{{ .Description | plainify }}{{ else }}{{ .Summary | plainify }}{{ end }}" /> <meta name="keywords" content="{{ with .Params.Keywords }}{{ delimit . ", " }}{{ else }}{{ $.Site.Params.Keywords }}{{ end }}" /> <meta name="robots" content="noodp" /> +{{ if .Params.noindex }} +<meta name="robots" content="noindex" /> +{{ end }} <link rel="canonical" href="{{ .Permalink }}" /> {{ template "_internal/google_analytics.html" . }}