summaryrefslogtreecommitdiff
path: root/layouts/partials/head.html
diff options
context:
space:
mode:
authorAditya Telange <21258296+adityatelange@users.noreply.github.com>2020-09-17 12:20:33 +0530
committerAditya Telange <21258296+adityatelange@users.noreply.github.com>2020-09-17 14:03:57 +0530
commitd3517dadbf3f2feacf74b1ae1d4c26e81bbfcadf (patch)
treec83a0e9ef6d7d101bcdabce062950313c0eaa322 /layouts/partials/head.html
parentc7885d62a27ad2f5cc6c6c2645ef523bfed6f9a9 (diff)
head : improve meta
Diffstat (limited to 'layouts/partials/head.html')
-rw-r--r--layouts/partials/head.html13
1 files changed, 8 insertions, 5 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 63585c3..92fd29e 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -4,13 +4,14 @@
<!-- Title -->
<title>{{ if .IsHome }}{{else}}{{ if .Title }}{{ .Title }} - {{ end }}{{end}}{{ .Site.Title }}</title>
<!-- Meta -->
-{{- if eq .Kind "page" }}
+{{- if in site.Params.mainSections .Type }}
<meta name="description" content="{{ .Summary }}">
-<meta name="author" content="{{ .Params.author | default .Site.Params.author }}">
{{- else }}
-<meta name="description" content="{{if .IsHome}}{{ .Site.Params.description }}{{else}}{{ .Title }}{{end}}">
-<meta name="author" content="{{ .Site.Params.author }}">
+<meta name="description"
+ content="{{if .IsHome}}{{ .Site.Params.description }}{{else}}{{ .Title }} - {{ .Site.Title }}{{end}}">
{{- end }}
+<meta name="author" content="{{ .Params.author | default .Site.Params.author }}">
+<link rel="canonical" href="{{ .Permalink }}" />
{{ if .Site.Params.analytics.google.SiteVerificationTag }}
<meta name="google-site-verification" content="{{ .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