Skip to content

Commit

Permalink
Making gravatarEmail work again
Browse files Browse the repository at this point in the history
  • Loading branch information
Mario Mohr committed Dec 28, 2016
1 parent 6e39afc commit c2bb48e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion i18n/en.yaml

This file was deleted.

8 changes: 4 additions & 4 deletions layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
{{ else }}
{{ .Scratch.Set "sidebarBehavior" .Site.Params.sidebarBehavior }}
{{ end }}
{{ if .Site.Author.gravatarEmail }}
{{ .Scratch.Set "authorPicture" (printf "//www.gravatar.com/avatar/%s" (urlize (md5 .Site.Author.gravatarEmail))) }}
{{ 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 }}
Expand Down Expand Up @@ -53,8 +53,8 @@
{{ end }}
{{ end }}

{{ if .Site.Author.gravatarEmail }}
<meta property="og:image" content="//www.gravatar.com/avatar/{{ (md5 .Site.Author.gravatarEmail) | urlize }}?s=640">
{{ if .Site.Author.gravataremail }}
<meta property="og:image" content="//www.gravatar.com/avatar/{{ (md5 .Site.Author.gravataremail) | urlize }}?s=640">
{{ else if .Site.Author.picture }}
<meta property="og:image" content="{{ .Site.Author.picture | absURL }}">
{{ end }}
Expand Down

0 comments on commit c2bb48e

Please sign in to comment.