Make things work in 0.146+

This commit is contained in:
Jake Bailey 2025-04-14 17:46:51 -07:00
parent 149f12cea7
commit abe66c82be
4 changed files with 7 additions and 7 deletions

View file

@ -150,8 +150,8 @@
{{- /* Misc */}} {{- /* Misc */}}
{{- if hugo.IsProduction | or (eq site.Params.env "production") }} {{- if hugo.IsProduction | or (eq site.Params.env "production") }}
{{- template "_internal/google_analytics.html" . }} {{- partial "google_analytics.html" . }}
{{- template "partials/templates/opengraph.html" . }} {{- partial "templates/opengraph.html" . }}
{{- template "partials/templates/twitter_cards.html" . }} {{- partial "templates/twitter_cards.html" . }}
{{- template "partials/templates/schema_json.html" . }} {{- partial "templates/schema_json.html" . }}
{{- end -}} {{- end -}}

View file

@ -85,7 +85,7 @@
{{ (path.Join .RelPermalink .Params.cover.image ) | absURL }}, {{ (path.Join .RelPermalink .Params.cover.image ) | absURL }},
{{- end}} {{- end}}
{{- else }} {{- else }}
{{- $images := partial "partials/templates/_funcs/get-page-images" . -}} {{- $images := partial "templates/_funcs/get-page-images" . -}}
{{- with index $images 0 -}} {{- with index $images 0 -}}
"image": {{ .Permalink }}, "image": {{ .Permalink }},
{{- end }} {{- end }}

View file

@ -6,7 +6,7 @@
<meta name="twitter:image" content="{{ (path.Join .RelPermalink .Params.cover.image ) | absURL }}"> <meta name="twitter:image" content="{{ (path.Join .RelPermalink .Params.cover.image ) | absURL }}">
{{- end}} {{- end}}
{{- else }} {{- else }}
{{- $images := partial "partials/templates/_funcs/get-page-images" . -}} {{- $images := partial "templates/_funcs/get-page-images" . -}}
{{- with index $images 0 -}} {{- with index $images 0 -}}
<meta name="twitter:card" content="summary_large_image"> <meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image" content="{{ .Permalink }}"> <meta name="twitter:image" content="{{ .Permalink }}">

View file

@ -38,7 +38,7 @@ features = [
"scroll-to-top", "scroll-to-top",
"search" "search"
] ]
min_version = "0.125.7" min_version = "0.146.0"
[author] [author]
name = "Aditya Telange" name = "Aditya Telange"