mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2025-05-13 14:44:28 -04:00
Make things work in 0.146+
This commit is contained in:
parent
149f12cea7
commit
abe66c82be
4 changed files with 7 additions and 7 deletions
|
@ -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 -}}
|
||||||
|
|
|
@ -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 }}
|
||||||
|
|
|
@ -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 }}">
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue