mirror of
https://gitlab.com/ansol/web-ansol.org.git
synced 2024-11-21 22:01:31 +00:00
Fix sharing image URL
This commit is contained in:
parent
f5c9599a98
commit
e886ef3014
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 44 KiB |
@ -12,7 +12,7 @@
|
|||||||
{{- else if .Params.header.image -}}
|
{{- else if .Params.header.image -}}
|
||||||
{{- $og_image = printf "images/%s" .Params.header.image | absURL -}}
|
{{- $og_image = printf "images/%s" .Params.header.image | absURL -}}
|
||||||
{{- else if site.Params.sharing_image -}}
|
{{- else if site.Params.sharing_image -}}
|
||||||
{{- $og_image = printf "images/%s" site.Params.sharing_image | absURL -}}
|
{{- $og_image = printf "img/%s" site.Params.sharing_image | absURL -}}
|
||||||
{{- else if $has_logo -}}
|
{{- else if $has_logo -}}
|
||||||
{{- $og_image = (partial "functions/get_logo" (dict "constraint" "fit" "size" 300)).Permalink -}}
|
{{- $og_image = (partial "functions/get_logo" (dict "constraint" "fit" "size" 300)).Permalink -}}
|
||||||
{{- $twitter_card = "summary" -}}
|
{{- $twitter_card = "summary" -}}
|
||||||
|
Loading…
Reference in New Issue
Block a user