Skip to content

Commit

Permalink
can rely on gravatar directly
Browse files Browse the repository at this point in the history
  • Loading branch information
badetitou committed Apr 8, 2024
1 parent 9aedb2a commit 1bb8147
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,14 @@ If you want to add other fields, please ask to the website maintainer.
"bio": "PhD Student at Berger-Levrault on GUI migration",
"github": "https://github.com/badetitou",
"twitter": "https://twitter.com/badetitou",
"image": "https://avatars.githubusercontent.com/u/6225039"
"image": "https://avatars.githubusercontent.com/u/6225039",
"gravatar-hash": "ab4070086241400a4a428bf8994f05e0"
}
}
```

> As for Benoit, you can use your gravatar-hash instead of a image.
#### Test your draft locally

When you ended to write your draft, you can start jekyll locally to visualize your draft as a post.
Expand Down
3 changes: 2 additions & 1 deletion _data/authors.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"linkedin": "https://www.linkedin.com/in/benoitverhaeghe/",
"personnal-website": "https://badetitou.github.io/",
"orcid": "https://orcid.org/0000-0002-4588-2698",
"image": "https://avatars.githubusercontent.com/u/6225039"
"image": "https://avatars.githubusercontent.com/u/6225039",
"gravatar-hash": "ab4070086241400a4a428bf8994f05e0"
},
"Anne Etien": {
"name": "Anne Etien",
Expand Down
6 changes: 5 additions & 1 deletion _includes/profile_card.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
<header>
<!-- here’s the avatar -->
<a target="_blank" href="#">
<img src="{{ author.image }}" class="hoverZoomLink no-lightense">
{% if author.gravatar-hash %}
<img src="https://gravatar.com/avatar/{{ author.gravatar-hash }}?size=256" class="hoverZoomLink no-lightense">
{% elsif author.image %}
<img src="{{ author.image }}" class="hoverZoomLink no-lightense">
{% endif %}
</a>

<!-- the username -->
Expand Down

0 comments on commit 1bb8147

Please sign in to comment.