dalaran.fr/themes/dalaran/layouts/partials/profile.html

49 lines
1.1 KiB
HTML

{{ with .Site.Params }}
<aside class="profile">
{{ if .introduction }}
<div>{{ .introduction }}</div>
{{ end }}
{{ if (isset . "mail") }}
<div class="profile-entry">
<span class="profile-key">
Mail:
</span>
<span class="profile-value">
<a href="mailto:{{ .mail }}">{{ .mail }}</a>
</span>
</div>
{{ end }}
{{ if (isset . "forge_url") }}
<div class="profile-entry">
<span class="profile-key">
Forge:
</span>
<span class="profile-value">
<a href="https://{{ .forge_url }}">{{ .forge_url }}</a>
</span>
</div>
{{ end }}
{{ if (isset . "pgp_key") }}
<div class="profile-entry">
<span class="profile-key">
PGP:
</span>
<span class="profile-value">
<a href="/{{ .pgp_keyfile }}">{{ .pgp_key }}</a>
</span>
</div>
{{ end }}
{{ if and (isset . "fediverse_id") (isset . "fediverse_url") }}
<div class="profile-entry">
<span class="profile-key">
Fediverse:
</span>
<span class="profile-value">
<a rel="me" href="{{ .fediverse_url }}">{{ .fediverse_id }}</a>
</span>
</div>
{{ end }}
</aside>
{{ end }}