Kanarie-functie gecorrigeerd en alternatieve teksten nu ook ingevuld voor footer

This commit is contained in:
Michael Boelen 2023-06-19 23:46:48 +02:00
parent b61b5747d6
commit ae8b60d8c3
2 changed files with 3 additions and 3 deletions

View file

@ -15,8 +15,8 @@
<h2>Volg ons</h2>
<nav aria-label="Social media">
{{ with .Site.Params.twitter_handle }}
<a class="icon" href="https://twitter.com/{{ . }}">{{ partial "show-svg-icon.html" (dict "context" . "icon" "twitter" "iconsize" $iconsize_footer "title" "Twitter mee") }}</a>
{{ if .Site.Params.twitter_handle }}
<a class="icon" href="https://twitter.com/{{ . }}">{{ partial "show-svg-icon.html" (dict "context" . "icon" "twitter" "iconsize" $iconsize_footer "alt" "Icoon van Twitter" "title" "Twitter mee") }}</a>
{{ end }}
{{ if and
(.Site.Params.mastodon_handle)

View file

@ -1 +1 @@
<img{{ if .class }} class="{{ .class }}"{{ end }} src="/afbeeldingen/iconen/{{ .icon }}.svg" height="{{ .iconsize | default 20 }}" width="{{ .iconsize | default 20 }}" alt="{{ .alt | default .Site.Params.textNoTitle }}"{{ with .title }} title="{{ . }}"{{ end }}>
<img{{ if .class }} class="{{ .class }}"{{ end }} src="/afbeeldingen/iconen/{{ .icon }}.svg" height="{{ .iconsize | default 20 }}" width="{{ .iconsize | default 20 }}" alt="{{ .alt | default $.context.Site.Params.textEmptyValue }}"{{ with .title }} title="{{ . }}"{{ end }}>