From 2e1a9232ccc9fd5eede6129094cdaac0ee452146 Mon Sep 17 00:00:00 2001 From: remeh Date: Tue, 8 Nov 2016 21:56:08 +0100 Subject: [PATCH] header: support for static avatar. --- exampleSite/config.toml | 4 +++- layouts/partials/header.html | 4 +++- static/css/main.css | 3 ++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index affd18a..14c3c34 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -17,6 +17,8 @@ blog = "blog/:slug/" [params] Author = "Arthur Dent" +# Gravatar = "" # do not use in the same time as Avatar +# Avatar = "" # path to image in static dir e.g img/avatar.png (do not use in the same time as Gravatar) CacheBuster = true DateForm = "Jan 2, 2006" DateFormFull = "Mon Jan 2 2006 15:04:05 MST" @@ -30,5 +32,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 633d175..7e82ea7 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -9,7 +9,9 @@
{{ if .Site.Param "Gravatar" }} - + + {{ else if .Site.Param "Avatar" }} + {{ end }}
{{ .Site.Param "Author" }}