mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-30 03:03:09 +00:00
theme: use proper file extension for page-meta.go #246
This commit is contained in:
parent
d23058e369
commit
d64429377f
4 changed files with 3 additions and 3 deletions
|
@ -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 }}
|
||||
|
|
|
@ -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) ) }}
|
||||
|
|
|
@ -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 }}
|
||||
|
|
Loading…
Reference in a new issue