From b8c709e73559476677dfcd1c5ab4d33856d7c751 Mon Sep 17 00:00:00 2001 From: Alexandre Vicenzi Date: Mon, 10 Feb 2020 21:30:40 +0100 Subject: SEO --- layouts/_default/baseof.html | 29 +++++++++++----- layouts/partials/seo.html | 81 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 102 insertions(+), 8 deletions(-) create mode 100644 layouts/partials/seo.html (limited to 'layouts') diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 658c98e..194b19a 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -2,10 +2,8 @@ - - {{ hugo.Generator }} - + {{ hugo.Generator }} {{ if .IsHome -}} {{ .Site.Title }} @@ -15,9 +13,20 @@ - - - + {{ partial "seo.html" . }} + + + + + + {{ partial "theme-color.html" . }} @@ -25,14 +34,18 @@ {{- end}} - + - + + diff --git a/layouts/partials/seo.html b/layouts/partials/seo.html new file mode 100644 index 0000000..46b0c29 --- /dev/null +++ b/layouts/partials/seo.html @@ -0,0 +1,81 @@ + + + + {{ with .Site.Params.gravatar }} + + {{- else -}} + {{ with .Site.Params.profilePicture }} + + {{- end -}} + {{ end }} + + {{ if eq .Type "post" }} + + + + + + + + + + + {{ else }} + + + + {{- if .IsHome }} + + + + {{- else -}} + + + + {{- end -}} + + {{ end }} + + + + {{ if eq .Type "post" }} + + {{ end }} -- cgit v1.2.1