From b0c8dfa5402d67dbadde6a4658a24569ca704e40 Mon Sep 17 00:00:00 2001 From: gribse Date: Mon, 28 Apr 2025 19:08:45 +0200 Subject: [PATCH] fix prefix for ['warning-partial-superfluous-prefix'] after Hugo 0.146.0 --- themes/PaperMod/layouts/partials/templates/schema_json.html | 2 +- themes/PaperMod/layouts/partials/templates/twitter_cards.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/PaperMod/layouts/partials/templates/schema_json.html b/themes/PaperMod/layouts/partials/templates/schema_json.html index dc3bfd6..8a4efb4 100644 --- a/themes/PaperMod/layouts/partials/templates/schema_json.html +++ b/themes/PaperMod/layouts/partials/templates/schema_json.html @@ -85,7 +85,7 @@ {{ (path.Join .RelPermalink .Params.cover.image ) | absURL }}, {{- end}} {{- else }} - {{- $images := partial "partials/templates/_funcs/get-page-images" . -}} + {{- $images := partial "templates/_funcs/get-page-images" . -}} {{- with index $images 0 -}} "image": {{ .Permalink }}, {{- end }} diff --git a/themes/PaperMod/layouts/partials/templates/twitter_cards.html b/themes/PaperMod/layouts/partials/templates/twitter_cards.html index 6b0d59b..a6e1d05 100644 --- a/themes/PaperMod/layouts/partials/templates/twitter_cards.html +++ b/themes/PaperMod/layouts/partials/templates/twitter_cards.html @@ -6,7 +6,7 @@ {{- end}} {{- else }} -{{- $images := partial "partials/templates/_funcs/get-page-images" . -}} +{{- $images := partial "templates/_funcs/get-page-images" . -}} {{- with index $images 0 -}}