Links en iconen voor social media toevoegen en corrigeren
This commit is contained in:
parent
6672f95745
commit
517629f575
3 changed files with 25 additions and 9 deletions
|
@ -1,5 +1,4 @@
|
|||
{{ define "main" }}
|
||||
{{ $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 }}
|
||||
|
@ -9,7 +8,7 @@
|
|||
{{ if .email }}<li>E-mail: {{ .email }}</li>{{ end }}
|
||||
{{ if .websites }}
|
||||
{{ range .websites }}
|
||||
<li><a href="{{ .url }}" rel="nofollow">{{ .name }}</a></li>
|
||||
<li><a href="{{ .url }}" rel="nofollow noopener">{{ .name }}</a></li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
@ -19,12 +18,13 @@
|
|||
(.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>
|
||||
<li><img src="/afbeeldingen/iconen/mastodon.svg" height="{{ $.Site.Params.smallIconSize }}" width="{{ $.Site.Params.smallIconSize }}" alt="Mastodon"> <a href="{{ .social.mastodon_url }}">{{ .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>
|
||||
<li><img src="/afbeeldingen/iconen/twitter.svg" height="{{ $.Site.Params.smallIconSize }}" width="{{ $.Site.Params.smallIconSize }}" alt="Twitter"> <a href="https://twitter.com/{{ .social.twitter }}">{{ .social.twitter }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue