mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-11-26 16:46:19 +01:00
38 lines
1.5 KiB
HTML
38 lines
1.5 KiB
HTML
<div class="home-profile">
|
|
{{- $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" -}}
|
|
{{- end -}}
|
|
{{- with $avatar -}}
|
|
<div class="home-avatar">
|
|
<a href="/posts">
|
|
<img src={{ . | relURL }} alt="avatar" title="{{ T "home" }}">
|
|
</a>
|
|
</div>
|
|
{{- end -}}
|
|
|
|
{{- with .Site.Params.home.profile.subtitle -}}
|
|
<h2 class="home-description">
|
|
{{- if $.Site.Params.home.profile.typeit -}}
|
|
{{- $id := md5 . | printf "tp-%s" -}}
|
|
<div id={{ printf "r%s" $id }} hidden=true>
|
|
{{- /* FIXME: https://github.com/gohugoio/hugo/issues/6882 */ -}}
|
|
{{- /* . | $.RenderString | safeHTML */ -}}
|
|
{{- . | markdownify | safeHTML -}}
|
|
</div>
|
|
<div id={{ $id }} class="typeit"></div>
|
|
{{- $.Scratch.SetInMap "typeitMap" $id (slice $id) -}}
|
|
{{- else -}}
|
|
{{- /* FIXME: https://github.com/gohugoio/hugo/issues/6882 */ -}}
|
|
{{- /* . | $.RenderString | safeHTML */ -}}
|
|
{{- . | markdownify | safeHTML -}}
|
|
{{- end -}}
|
|
</h2>
|
|
{{- end -}}
|
|
|
|
<div class="home-social-links">
|
|
{{- if .Site.Params.home.profile.social -}}
|
|
{{- partial "plugin/social.html" . -}}
|
|
{{- end -}}
|
|
</div>
|
|
</div>
|