diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index 8c03b9b99..c712005bb 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -5,12 +5,19 @@ {{ .Site.Title }} - {{ with .Site.Params.authorimage }} - {{ $strippedSlash := ($.Site.Params.authorimage | replaceRE "^(/)+(.*)" "$2") }} - {{ $authorImage := (printf "%s/%s" $.Site.BaseURL $strippedSlash) }} -
- Author Image -
+ {{ if and (isset .Site.Params "authorimage") (not (isset .Site.Params.social "gravatar")) }} + {{ with .Site.Params.authorimage }} + {{ $strippedSlash := ($.Site.Params.authorimage | replaceRE "^(/)+(.*)" "$2") }} + {{ $authorImage := (printf "%s/%s" $.Site.BaseURL $strippedSlash) }} +
+ Author Image +
+ {{ end }} + {{ end }} + {{ with .Site.Params.social.gravatar}} +
+ gravatar +
{{ end }}

{{ with .Site.Params.description }} {{.}} {{end}}