mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2025-05-21 02:15:09 -04:00
fix: correct partials path in layouts/partials/templates directory
This commit is contained in:
parent
149f12cea7
commit
085f8354a5
2 changed files with 2 additions and 2 deletions
|
@ -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 }}">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue