From ac9cb09c00e3d29d838f99ce18dc827c3721754e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dunglas?= Date: Mon, 9 Dec 2019 16:46:16 +0100 Subject: [PATCH] Twitter card --- config.toml | 4 ++-- themes/beautifulhugo/layouts/partials/seo/twitter.html | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/config.toml b/config.toml index 523b4d8..95b425f 100644 --- a/config.toml +++ b/config.toml @@ -4,5 +4,5 @@ languageCode = "fr-fr" title = "onestla.tech" theme = "beautifulhugo" -[Params] - share_img = "header.jpg" +[[Params]] + image = "header.jpg" diff --git a/themes/beautifulhugo/layouts/partials/seo/twitter.html b/themes/beautifulhugo/layouts/partials/seo/twitter.html index 0eb1e9b..97a48dc 100644 --- a/themes/beautifulhugo/layouts/partials/seo/twitter.html +++ b/themes/beautifulhugo/layouts/partials/seo/twitter.html @@ -4,6 +4,7 @@ {{- with .Description | default .Params.subtitle | default .Summary }} {{- end }} + {{- with .Params.share_img | default .Params.image | default .Site.Params.logo }} {{- end }}