mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2025-06-02 23:59:51 -04:00
Implement fixes for refreshed template system for Hugo v0.146.0+ (#1726)
This commit is contained in:
parent
149f12cea7
commit
7cf752f864
8 changed files with 14 additions and 14 deletions
|
@ -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 -}}
|
||||
|
|
|
@ -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 }}
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<meta name="twitter:image" content="{{ (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 -}}
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta name="twitter:image" content="{{ .Permalink }}">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue