add noindex parameter

This commit is contained in:
Christian Stankowic 2024-03-29 08:31:57 +01:00
parent 51e697bea7
commit 604a8375c6

View file

@ -1,5 +1,8 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="ie=edge"> <meta http-equiv="X-UA-Compatible" content="ie=edge">
{{ if .Params.noindex }}
<meta name="robots" content="noindex" />
{{ end }}
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="author" content="{{ if .Params.author }}{{ .Params.author }}{{ else }}{{ range .Site.Author }}{{ . }} {{ end }}{{ end }}"> <meta name="author" content="{{ if .Params.author }}{{ .Params.author }}{{ else }}{{ range .Site.Author }}{{ . }} {{ end }}{{ end }}">
<meta name="description" content="{{ if .IsHome }}{{ .Site.Params.homeSubtitle }}{{ else }}{{ if .Params.Description }}{{ .Params.Description }}{{ else }}{{ .Summary | plainify }}{{ end }}{{ end }}" /> <meta name="description" content="{{ if .IsHome }}{{ .Site.Params.homeSubtitle }}{{ else }}{{ if .Params.Description }}{{ .Params.Description }}{{ else }}{{ .Summary | plainify }}{{ end }}{{ end }}" />
@ -66,7 +69,12 @@
<!-- Google Analytics internal template --> <!-- Google Analytics internal template -->
{{- if .Site.GoogleAnalytics }} {{- if .Site.GoogleAnalytics }}
{{ template "_internal/google_analytics.html" . }} {{ template "_internal/google_analytics.html" . }}
{{- end}} {{- end }}
<!-- Matomo Analytics -->
{{- if .Site.Params.matomo.enable }}
{{- partial "matomo.html" . }}
{{- end }}
<!-- Plausible.io --> <!-- Plausible.io -->
{{- if $.Site.Params.plausibleDataDomain }} {{- if $.Site.Params.plausibleDataDomain }}