From 524fef2551c3a44ae960798e18232960dce5055e Mon Sep 17 00:00:00 2001 From: Reorx Date: Mon, 9 May 2022 22:26:45 +0800 Subject: [PATCH] use small card for twitter when no cover in page --- layouts/partials/head.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index cdae3e5..9b50504 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -78,12 +78,13 @@ {{- /* https://developer.twitter.com/en/docs/twitter-for-websites/cards/guides/getting-started */}} {{- if .Params.cover.image }} + {{- else }} {{- with site.Params.images -}} + {{- end }} {{- end }} -