From 884c7caff7d50e3303e956f24d71345c9ed58025 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar=20N=C3=A1jera?= Date: Sun, 8 Jul 2018 21:45:52 +0200 Subject: Top navigation --- layouts/partials/header.html | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 layouts/partials/header.html (limited to 'layouts/partials/header.html') diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 0000000..fbcce87 --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1,20 @@ +{{ if .Site.Author.gravataremail }} + {{ .Scratch.Set "authorPicture" (printf "//www.gravatar.com/avatar/%s" (urlize (md5 (.Site.Author.gravataremail )))) }} +{{ else if .Site.Author.picture }} + {{ .Scratch.Set "authorPicture" (absURL .Site.Author.picture) }} +{{ end }} + + -- cgit v1.2.3