From 8576d3cb9debf0f8a2ae837721466cd9cb1f61a0 Mon Sep 17 00:00:00 2001 From: Simon C Date: Wed, 16 Feb 2022 12:50:05 +0100 Subject: [PATCH] feat: Update twitter card --- layouts/partials/social_metadata.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/layouts/partials/social_metadata.html b/layouts/partials/social_metadata.html index 3929dab..f3188db 100644 --- a/layouts/partials/social_metadata.html +++ b/layouts/partials/social_metadata.html @@ -28,7 +28,7 @@ - + {{ else }} {{ .Title }} · {{ .Site.Title }} @@ -45,9 +45,9 @@ {{ end }} {{ if .Params.SocialImage }} - + {{ else }} - + {{ end }} {{ end }} {{ if .Params.tags }} @@ -63,7 +63,7 @@ "@context": "http://schema.org/", "@type": "WebSite", "name": "{{ default .site.Title .Title }}", - "image": "{{ .Site.Params.SocialImage }}", - "about": "{{ $.Site.Params.description }}" + "image": "{{ .Site.BaseURL}}{{ default .Site.Params.SocialImage .Params.SocialImage }}", + "about": "{{ .Site.Params.description }}" }