2019-08-05 15:15:01 +02:00
|
|
|
{{ $cdn_url := .Scratch.Get "cdn_url" }}
|
|
|
|
|
2019-02-03 12:30:44 +01:00
|
|
|
<div class="intro">
|
2019-08-05 15:15:01 +02:00
|
|
|
{{ $avatar := "" }}
|
2019-03-27 10:48:55 +01:00
|
|
|
{{ with .Site.Params.avatar}}
|
2019-08-05 15:15:01 +02:00
|
|
|
{{ $avatar = (printf "%s%s" $cdn_url .) }}
|
2019-03-27 10:48:55 +01:00
|
|
|
{{ end }}
|
|
|
|
{{ if or .Params.gravatar.Email (and .Site.Params.gravatar.Email (ne .Params.gravatar.Email false)) }}
|
2019-08-05 15:15:01 +02:00
|
|
|
{{ $avatar = (printf "https://www.gravatar.com/avatar/%s?s=240&d=mp" (md5 .Site.Params.gravatar.email)) }}
|
|
|
|
{{ end }}
|
|
|
|
{{ if $avatar }}
|
|
|
|
<div class="avatar"><a href="/posts/"> <img src={{ $avatar }} alt="avatar"></a></div>
|
|
|
|
{{ end }}
|
|
|
|
|
2019-02-03 12:30:44 +01:00
|
|
|
{{ with .Site.Params.subtitle}}
|
2019-08-05 15:15:01 +02:00
|
|
|
<h2 class="description">{{ . }}</h2>
|
2019-02-03 12:30:44 +01:00
|
|
|
{{ end }}
|
2019-08-05 15:15:01 +02:00
|
|
|
|
2019-02-03 12:30:44 +01:00
|
|
|
<div class="social-links">
|
2019-08-05 15:15:01 +02:00
|
|
|
{{ partial "social.html" . }}
|
2019-02-03 12:30:44 +01:00
|
|
|
</div>
|
2019-08-04 15:53:35 +02:00
|
|
|
</div>
|