2020-02-13 18:30:33 +01:00
|
|
|
<div class="home-profile">
|
2020-02-16 19:19:55 +01:00
|
|
|
{{- $avatar := .Site.Params.home.profile.avatarURL -}}
|
|
|
|
{{- with .Site.Params.home.profile.gravatarEmail -}}
|
|
|
|
{{- $avatar = md5 . | printf "https://www.gravatar.com/avatar/%s?s=240&d=mp" -}}
|
2020-01-31 15:53:04 +01:00
|
|
|
{{- end -}}
|
2020-02-16 19:19:55 +01:00
|
|
|
{{- with $avatar -}}
|
2019-08-24 13:32:41 +02:00
|
|
|
<div class="home-avatar">
|
2019-11-20 14:39:04 +01:00
|
|
|
<a href="/posts">
|
2020-02-16 19:19:55 +01:00
|
|
|
<img src={{ . | relURL }} alt="avatar" title="{{ T "home" }}">
|
2019-08-10 21:26:03 +02:00
|
|
|
</a>
|
|
|
|
</div>
|
2020-01-31 15:53:04 +01:00
|
|
|
{{- end -}}
|
2019-08-10 21:26:03 +02:00
|
|
|
|
2020-02-16 19:19:55 +01:00
|
|
|
{{- with .Site.Params.home.profile.subtitle -}}
|
2019-08-24 13:32:41 +02:00
|
|
|
<h2 class="home-description">
|
2020-02-16 19:19:55 +01:00
|
|
|
{{- if $.Site.Params.home.profile.typeit -}}
|
|
|
|
{{- $id := md5 . | printf "tp-%s" -}}
|
|
|
|
<div id={{ printf "r%s" $id }} hidden=true>
|
2020-02-18 09:22:24 +01:00
|
|
|
{{- /* FIXME: https://github.com/gohugoio/hugo/issues/6882 */ -}}
|
|
|
|
{{- /* . | $.RenderString | safeHTML */ -}}
|
|
|
|
{{- . | markdownify | safeHTML -}}
|
2020-02-16 19:19:55 +01:00
|
|
|
</div>
|
|
|
|
<div id={{ $id }} class="typeit"></div>
|
2020-02-17 14:02:27 +01:00
|
|
|
{{- $.Scratch.SetInMap "typeitMap" $id (slice $id) -}}
|
2020-01-31 15:53:04 +01:00
|
|
|
{{- else -}}
|
2020-02-18 09:22:24 +01:00
|
|
|
{{- /* FIXME: https://github.com/gohugoio/hugo/issues/6882 */ -}}
|
|
|
|
{{- /* . | $.RenderString | safeHTML */ -}}
|
|
|
|
{{- . | markdownify | safeHTML -}}
|
2020-01-31 15:53:04 +01:00
|
|
|
{{- end -}}
|
2019-08-10 21:26:03 +02:00
|
|
|
</h2>
|
2020-01-31 15:53:04 +01:00
|
|
|
{{- end -}}
|
2019-08-10 21:26:03 +02:00
|
|
|
|
2019-08-24 13:32:41 +02:00
|
|
|
<div class="home-social-links">
|
2020-02-16 19:19:55 +01:00
|
|
|
{{- if .Site.Params.home.profile.social -}}
|
|
|
|
{{- partial "home/social.html" . -}}
|
|
|
|
{{- end -}}
|
2019-08-10 21:26:03 +02:00
|
|
|
</div>
|
|
|
|
</div>
|