From 3c870667109fad676fd929122c36101ccd477c31 Mon Sep 17 00:00:00 2001 From: remeh Date: Tue, 8 Nov 2016 21:18:36 +0100 Subject: [PATCH] header: add Gravatar support. --- exampleSite/config.toml | 1 + layouts/partials/header.html | 3 +++ static/css/main.css | 4 ++++ 3 files changed, 8 insertions(+) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 465cd5d..affd18a 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -30,4 +30,5 @@ Initials = "ad" # Displayed on single post page; DEPRECATED in v0.3.0. Lang = "en" LinkedIn = "//linkedin.com/in/you" Twitter = "//twitter.com/you" +Gravatar = "abcdef" ExtraCssFiles = [ "/css/override.css" ] # In your `static/css`, add/remove files as necessary. diff --git a/layouts/partials/header.html b/layouts/partials/header.html index c1445c8..633d175 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -8,6 +8,9 @@
+ {{ if .Site.Param "Gravatar" }} + + {{ end }}
{{ .Site.Param "Author" }}