From fb9d777958a93b0197e0ce1339244806802180ac Mon Sep 17 00:00:00 2001 From: kolaente Date: Mon, 20 Jan 2020 23:17:26 +0100 Subject: [PATCH] Add more meta tags --- layouts/partials/header.html | 49 +++++++++++++++++++++++++++++------- 1 file changed, 40 insertions(+), 9 deletions(-) diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 01a0cae..41c67bf 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -5,16 +5,47 @@ - - {{ if .IsPage }} - - {{ end }} - - - - {{ hugo.Generator }} - {{ if and (not .IsHome) .Title }}{{ .Title }} | {{ end }}{{ .Site.Title }} + + {{ $title := .Site.Title}} + {{ if and (not .IsHome) .Title }} + {{ $title = printf "%s | %s" .Title .Site.Title}} + {{ end }} + {{ $title }} + + + + + + + + + + + + + + + + + + + + {{ with .Params.image }} + + + + + {{ else }} + + + + + {{ end }} + + + + {{ hugo.Generator }} {{ range .AlternativeOutputFormats -}} {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}