Template: Add robots meta-tag, set noindex on staging
All checks were successful
/ build (push) Successful in 13s

Stolen from https://github.com/dereckcurry/hugo-robots-meta-tags
This commit is contained in:
jtbx 2024-01-22 22:33:14 +01:00
commit 765b727cc7
4 changed files with 44 additions and 1 deletions

View file

@ -3,6 +3,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="utf-8">
{{- partial "robots.html" . -}}
{{- with resources.GetRemote "https://cdn.jsdelivr.net/npm/@picocss/pico@1/css/pico.min.css" }}
<link rel="stylesheet" href="{{ .RelPermalink }}" crossorigin="anonymous">
{{ end }}
@ -17,7 +18,7 @@
{{- end }}
{{- end }}
{{ range .AlternativeOutputFormats -}}
{{- range .AlternativeOutputFormats -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }}
{{- end }}