From d3517dadbf3f2feacf74b1ae1d4c26e81bbfcadf Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Thu, 17 Sep 2020 12:20:33 +0530 Subject: [PATCH] head : improve meta --- layouts/partials/head.html | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 63585c31..92fd29e5 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -4,13 +4,14 @@ {{ if .IsHome }}{{else}}{{ if .Title }}{{ .Title }} - {{ end }}{{end}}{{ .Site.Title }} -{{- if eq .Kind "page" }} +{{- if in site.Params.mainSections .Type }} - {{- else }} - - + {{- end }} + + {{ if .Site.Params.analytics.google.SiteVerificationTag }} {{end}} @@ -48,4 +49,6 @@ {{- if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }} {{- template "_internal/google_analytics_async.html" . }} {{- template "_internal/opengraph.html" . }} -{{- end }} +{{- template "_internal/twitter_cards.html" . }} +{{- template "_internal/schema.html" . }} +{{- end }} \ No newline at end of file