theme: use proper file extension for page-meta.go #246

This commit is contained in:
Sören Weber 2022-05-23 14:35:25 +02:00
parent d23058e369
commit d64429377f
No known key found for this signature in database
GPG key ID: 07D17FF580AE7589
4 changed files with 3 additions and 3 deletions

View file

@ -1,5 +1,5 @@
{{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
{{- partial "page-meta.go" . }}
{{- partial "page-meta.hugo" . }}
{{- $pages := .Page.Pages }}
{{- if .Page.IsHome }}
{{- $pages = .Page.Sections }}

View file

@ -1,5 +1,5 @@
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\" ?>" | safeHTML }}
{{- partial "page-meta.go" . }}
{{- partial "page-meta.hugo" . }}
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml">
{{- range .Data.Pages }}
{{- if and .Title (or (ne (.Scratch.Get "relearnIsHiddenStem") true) (ne .Site.Params.disableSeoHiddenPages true) ) }}

View file

@ -6,7 +6,7 @@
{{- $ver := partial "version.html" }}
{{- $ver = replaceRE "\\s*(\\S*)" "${1}" $ver }}
<meta name="generator" content="Relearn {{ $ver }}">
{{- partial "page-meta.go" . }}
{{- partial "page-meta.hugo" . }}
{{- if not (and .Title (or (ne (.Scratch.Get "relearnIsHiddenStem") true) (ne .Site.Params.disableSeoHiddenPages true) ) ) }}
<meta name="robots" content="noindex, nofollow, noarchive, noimageindex">
{{- end }}