This repository has been archived on 2024-11-13. You can view files and clone it, but cannot push or open issues or pull requests.
fediversity_website/themes/nluug/layouts/person/single.html

34 lines
1.1 KiB
HTML
Raw Normal View History

{{ define "main" }}
2023-05-08 15:48:32 +02:00
{{ $icon_size := 20 }}
{{ $text := .Content }}
{{ with (index .Site.Data.personen (substr $.File.LogicalName 0 -4)) }}
{{ if .thumbnail }}<img src="{{ .thumbnail }}" alt="Foto van {{ .name }}">{{ end }}
2023-05-08 15:48:32 +02:00
{{ $text }}
<h3>Contact</h3>
<ul>
{{ if .email }}<li>E-mail: {{ .email }}</li>{{ end }}
2023-05-08 09:51:38 +02:00
{{ if .websites }}
{{ range .websites }}
<li><a href="{{ .url }}" rel="nofollow">{{ .name }}</a></li>
{{ end }}
{{ end }}
</ul>
2023-05-08 15:48:32 +02:00
{{ if or
(.social.mastodon)
(.social.twitter)
}}
<h3>Social media</h3>
<ul class="list">
{{ if .social.mastodon }}
<li><a href="{{ .social.mastodon_url }}"><img src="/afbeeldingen/iconen/mastodon.svg" height="{{ $icon_size }}" width="{{ $icon_size }}" alt="Mastodon" /> {{ .social.mastodon }}</a></li>
{{ end }}
{{ if .social.twitter }}
<li><a href="https://twitter.com/{{ .social.twitter }}"><img src="/afbeeldingen/iconen/twitter.svg" height="{{ $icon_size }}" width="{{ $icon_size }}" alt="Twitter" /> {{ .social.twitter }}</a></li>
{{ end }}
</ul>
{{ end }}
2023-05-08 15:48:32 +02:00
{{ end }}
{{ end }}