From 6f39c346d90161705cb5d1de44d22003e94f6d1a Mon Sep 17 00:00:00 2001 From: FantasticMao Date: Thu, 9 Apr 2020 01:41:21 +0800 Subject: [PATCH 1/2] Support two SEO friendly tags: and . --- CONTRIBUTORS.md | 1 + layouts/_default/baseof.html | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 2254e5789..3c3c5361a 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -64,3 +64,4 @@ - [Santiago González](https://github.com/netrules) - [Codruț Constantin Gușoi](https://www.sdwolfz.pro) - [Clément Pannetier](https://clementpannetier.dev) +- [FantasticMao](https://github.com/FantasticMao) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 2c6f232ac..056bc3227 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -6,8 +6,8 @@ {{ with .Site.Params.author }}{{ end }} - {{ with .Site.Params.description }}{{ end }} - {{ with .Site.Params.keywords }}{{ end }} + + {{ template "_internal/twitter_cards.html" . }} {{ template "_internal/opengraph.html" . }} From 7249b8ac5a9846e72b8944d963cf8f7d71dbf472 Mon Sep 17 00:00:00 2001 From: FantasticMao Date: Mon, 27 Apr 2020 00:03:52 +0800 Subject: [PATCH 2/2] Support two SEO friendly tags: and . --- layouts/_default/baseof.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 056bc3227..cd47ddcfa 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -6,8 +6,8 @@ {{ with .Site.Params.author }}{{ end }} - - + + {{ template "_internal/twitter_cards.html" . }} {{ template "_internal/opengraph.html" . }}