From d64429377f9b978ba028741dda091fdaf4cde416 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Mon, 23 May 2022 14:35:25 +0200 Subject: [PATCH] theme: use proper file extension for page-meta.go #246 --- layouts/_default/rss.xml | 2 +- layouts/_default/sitemap.xml | 2 +- layouts/partials/meta.html | 2 +- layouts/partials/{page-meta.go => page-meta.hugo} | 0 4 files changed, 3 insertions(+), 3 deletions(-) rename layouts/partials/{page-meta.go => page-meta.hugo} (100%) diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index 445be9c278..f2bde74493 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -1,5 +1,5 @@ {{- printf "" | safeHTML }} -{{- partial "page-meta.go" . }} +{{- partial "page-meta.hugo" . }} {{- $pages := .Page.Pages }} {{- if .Page.IsHome }} {{- $pages = .Page.Sections }} diff --git a/layouts/_default/sitemap.xml b/layouts/_default/sitemap.xml index 7ac5f64c4c..86c52db036 100644 --- a/layouts/_default/sitemap.xml +++ b/layouts/_default/sitemap.xml @@ -1,5 +1,5 @@ {{ printf "" | safeHTML }} -{{- partial "page-meta.go" . }} +{{- partial "page-meta.hugo" . }} {{- range .Data.Pages }} {{- if and .Title (or (ne (.Scratch.Get "relearnIsHiddenStem") true) (ne .Site.Params.disableSeoHiddenPages true) ) }} diff --git a/layouts/partials/meta.html b/layouts/partials/meta.html index e2ed678258..1d1cd80904 100644 --- a/layouts/partials/meta.html +++ b/layouts/partials/meta.html @@ -6,7 +6,7 @@ {{- $ver := partial "version.html" }} {{- $ver = replaceRE "\\s*(\\S*)" "${1}" $ver }} - {{- partial "page-meta.go" . }} + {{- partial "page-meta.hugo" . }} {{- if not (and .Title (or (ne (.Scratch.Get "relearnIsHiddenStem") true) (ne .Site.Params.disableSeoHiddenPages true) ) ) }} {{- end }} diff --git a/layouts/partials/page-meta.go b/layouts/partials/page-meta.hugo similarity index 100% rename from layouts/partials/page-meta.go rename to layouts/partials/page-meta.hugo