LoveIt/layouts/partials/home/profile.html

35 lines
1.2 KiB
HTML
Raw Normal View History

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">
<a href="/posts">
2020-02-02 11:18:06 +01:00
<img src={{ $avatar | 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-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>