Sommige pagina's hebben geen tekst. In dat geval 'Deel feedback' als tekst

This commit is contained in:
Michael Boelen 2023-05-21 01:17:59 +02:00
parent ab2a8a5e0a
commit f196966ad8

View file

@ -4,7 +4,11 @@
<div class="three-column-grid"> <div class="three-column-grid">
<div> <div>
<h2>Help mee</h2> <h2>Help mee</h2>
{{ with .File }}<a class="btn btn-cta" href="https://github.com/NLUUG/website/edit/main/content/{{ .Path }}" target="_blank" rel="noopener">Verbeter deze pagina</a>{{ end }} {{ if .File }}
<a class="btn btn-cta" href="https://github.com/NLUUG/website/edit/main/content/{{ .File.Path }}" target="_blank" rel="noopener">Verbeter deze pagina</a>
{{ else }}
<a class="btn btn-cta" href="{{ relURL "website/feedback/" }}">Deel feedback</a>
{{ end }}
</div> </div>
<div> <div>
{{ $iconsize := .Site.Params.mediumIconSize }} {{ $iconsize := .Site.Params.mediumIconSize }}