From abe66c82bebee9dae5fb91df429a16f1fd5c363c Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Mon, 14 Apr 2025 17:46:51 -0700 Subject: [PATCH] Make things work in 0.146+ --- layouts/partials/head.html | 8 ++++---- layouts/partials/templates/schema_json.html | 2 +- layouts/partials/templates/twitter_cards.html | 2 +- theme.toml | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 3e55c670..ae6450ab 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -150,8 +150,8 @@ {{- /* Misc */}} {{- if hugo.IsProduction | or (eq site.Params.env "production") }} -{{- template "_internal/google_analytics.html" . }} -{{- template "partials/templates/opengraph.html" . }} -{{- template "partials/templates/twitter_cards.html" . }} -{{- template "partials/templates/schema_json.html" . }} +{{- partial "google_analytics.html" . }} +{{- partial "templates/opengraph.html" . }} +{{- partial "templates/twitter_cards.html" . }} +{{- partial "templates/schema_json.html" . }} {{- end -}} diff --git a/layouts/partials/templates/schema_json.html b/layouts/partials/templates/schema_json.html index dc3bfd6a..8a4efb41 100644 --- a/layouts/partials/templates/schema_json.html +++ b/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/layouts/partials/templates/twitter_cards.html b/layouts/partials/templates/twitter_cards.html index 6b0d59bd..a6e1d05d 100644 --- a/layouts/partials/templates/twitter_cards.html +++ b/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 -}} diff --git a/theme.toml b/theme.toml index 391b2485..e4352b96 100644 --- a/theme.toml +++ b/theme.toml @@ -38,7 +38,7 @@ features = [ "scroll-to-top", "search" ] -min_version = "0.125.7" +min_version = "0.146.0" [author] name = "Aditya Telange"