From b6b79b766386db444df1703dd295a87acd5f6157 Mon Sep 17 00:00:00 2001 From: digitalcraftsman Date: Fri, 19 May 2017 22:34:25 +0200 Subject: Add Gravatar as alternative for profile picture Closes #51 --- exampleSite/config.toml | 3 +++ layouts/partials/profile.html | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index ee11f32..8c9f2bc 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -25,6 +25,9 @@ themesDir = "../.." site_description = "" copyright = "Powered by [Hugo](//gohugo.io). Theme by [PPOffice](http://github.com/ppoffice)." avatar = "css/images/avatar.png" + # Enter your email address to display your Gravatar icon in the profile. If not set the theme + # will fallback to the avatar. + gravatar = "you@example.com" logo = "css/images/logo.png" disable_mathjax = false # set to true to disable MathJax diff --git a/layouts/partials/profile.html b/layouts/partials/profile.html index 8b4089c..0b42087 100644 --- a/layouts/partials/profile.html +++ b/layouts/partials/profile.html @@ -1,7 +1,11 @@