From 45ff6a9e1c213fa391347fc12a43145380f1b287 Mon Sep 17 00:00:00 2001 From: bash-stack <62184749+bash-stack@users.noreply.github.com> Date: Tue, 6 Oct 2020 14:32:14 +0200 Subject: [PATCH] Update head.html * add title tag , so search engines do not use first post's text * add twitter tags * --- layouts/partials/head.html | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 59233b6..0fcdf2a 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -3,6 +3,8 @@ + + {{ template "_internal/google_analytics.html" . }} @@ -29,12 +31,27 @@ {{ end }} - + {{ if (isset $.Site.Params "twitter") }} + + + + {{ if and (not .IsHome) (isset .Params "cover") }} + + {{ else }} + {{ if isset $.Site.Params "favicon" }} + + {{ else }} + + {{ end }} + {{ end }} + {{ if (isset $.Site.Params.Twitter "site") }} {{ end }} + + {{ end }}