[feature] Use X-Robots-Tag headers to instruct scrapers/crawlers

This commit is contained in:
tobi 2025-02-05 12:16:31 +01:00
commit 419294704e
15 changed files with 309 additions and 142 deletions

View file

@ -47,7 +47,7 @@ image/webp
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="robots" content="{{- if .robotsMeta -}}{{- .robotsMeta -}}{{- else -}}noindex, nofollow{{- end -}}">
<meta name="robots" content="{{- if .robotsMeta -}}{{- .robotsMeta -}}{{- else -}}noindex, nofollow, noai, noimageai{{- end -}}">
{{- if .ogMeta }}
{{- include "page_ogmeta.tmpl" . | indent 2 }}
{{- else }}