LoveIt/layouts/partials/home/profile.html

32 lines
1 KiB
HTML
Raw Normal View History

2019-08-10 21:26:03 +02:00
<div class="intro">
{{ $avatar := "" }}
{{ if or .Params.gravatar.Email (and .Site.Params.gravatar.Email (ne .Params.gravatar.Email false)) }}
{{ $avatar = (printf "https://www.gravatar.com/avatar/%s?s=240&d=mp" (md5 .Site.Params.gravatar.email)) }}
{{ else if .Site.Params.avatar }}
2019-08-11 19:36:19 +02:00
{{ $avatar = .Site.Params.avatar }}
2019-08-10 21:26:03 +02:00
{{ end }}
{{ if $avatar }}
<div class="avatar">
<a href="/posts/">
<img src={{ $avatar }} alt="avatar">
</a>
</div>
{{ end }}
{{ with .Site.Params.subtitle }}
<h2 class="description">
{{ $id := md5 . | printf "tp-%s" }}
<div id={{ printf "r%s" $id }} hidden=true>{{ . | safeHTML }}</div>
<div id={{ $id }} class="typeit"></div>
<script>
var typeitMap = window.typeitMap || {};
2019-08-11 19:36:19 +02:00
typeitMap["{{ $id }}"] = true;
2019-08-10 21:26:03 +02:00
</script>
</h2>
{{ end }}
<div class="social-links">
2019-08-11 19:36:19 +02:00
{{ partial "home/social.html" . }}
2019-08-10 21:26:03 +02:00
</div>
</div>