Add gravatar

This commit is contained in:
Mickael 2019-05-20 21:54:01 +02:00
parent 04b24a37ea
commit bbd71e6796
4 changed files with 15 additions and 2 deletions

View file

@ -5,3 +5,4 @@ github: mckmonster
gitlab: mckmonster gitlab: mckmonster
crapaudfou: trenty crapaudfou: trenty
email: mckmonster@mailo.com email: mckmonster@mailo.com
gravatar: 13dac7dbbf38756e6b11fe35e1f1db44

View file

@ -0,0 +1,5 @@
<!--
If you want to include any custom html just before </head>, put it in /layouts/head_custom.html
Do not put anything in this file - it's only here so that hugo won't throw an error if /layouts/head_custom.html doesn't exist.
-->
<link rel="stylesheet" href="{{ "css/tisseurs.css" | absURL }}" />

7
static/css/tisseurs.css Normal file
View file

@ -0,0 +1,7 @@
.avatar {
display: inline;
vertical-align: middle;
/* width: 50px;
height: 50px; */
border-radius: 50%;
}

View file

@ -4,7 +4,7 @@
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1"> <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
{{ range $tisseur := .Site.Data.tisseurs }} {{ range $tisseur := .Site.Data.tisseurs }}
<div class="well"> <div class="well">
<h3>{{ $tisseur.nom }}</h3> <h3><img class="avatar" src="https://www.gravatar.com/avatar/{{ $tisseur.gravatar }}?d=robohash&r=g"/>{{ $tisseur.nom }}</h3>
{{ if $tisseur.info }} {{ if $tisseur.info }}
<p>{{ $tisseur.info }}</p> <p>{{ $tisseur.info }}</p>
{{ end }} {{ end }}