2019-08-24 13:32:41 +02:00
|
|
|
<div class="home-intro">
|
2020-01-31 15:53:04 +01:00
|
|
|
{{- $avatar := "" -}}
|
|
|
|
{{- if .Site.Params.gravatar.email -}}
|
|
|
|
{{- $avatar = (printf "https://www.gravatar.com/avatar/%s?s=240&d=mp" (md5 .Site.Params.gravatar.email)) -}}
|
|
|
|
{{- else if .Site.Params.avatar -}}
|
|
|
|
{{- $avatar = .Site.Params.avatar -}}
|
|
|
|
{{- end -}}
|
|
|
|
{{- if $avatar -}}
|
2019-08-24 13:32:41 +02:00
|
|
|
<div class="home-avatar">
|
2019-11-20 14:39:04 +01:00
|
|
|
<a href="/posts">
|
|
|
|
<img src={{ $avatar | relURL }} alt="avatar">
|
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-01-31 15:53:04 +01:00
|
|
|
{{- with .Site.Params.subtitle -}}
|
2019-08-24 13:32:41 +02:00
|
|
|
<h2 class="home-description">
|
2020-01-31 15:53:04 +01:00
|
|
|
{{- $id := md5 . | printf "tp-%s" -}}
|
|
|
|
<div id={{ printf "r%s" $id }} hidden=true>
|
|
|
|
{{- . | safeHTML -}}
|
|
|
|
</div>
|
2019-08-10 21:26:03 +02:00
|
|
|
<div id={{ $id }} class="typeit"></div>
|
2020-01-31 15:53:04 +01:00
|
|
|
{{- with $.Scratch.Get "typeitMap" -}}
|
|
|
|
{{- $.Scratch.Set "typeitMap" (dict $id (slice $id) | merge .) -}}
|
|
|
|
{{- else -}}
|
|
|
|
{{- $.Scratch.Set "typeitMap" (dict $id (slice $id)) -}}
|
|
|
|
{{- 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-01-31 15:53:04 +01:00
|
|
|
{{- partial "home/social.html" . -}}
|
2019-08-10 21:26:03 +02:00
|
|
|
</div>
|
|
|
|
</div>
|