Files
based.cooking/layouts/partials/contributor.html
T
2026-08-28 23:43:12 +02:00

32 lines
956 B
HTML

{{ with .Params.author }}
{{ $author := index hugo.Data.authors . }}
<h2>Contributor(s)</h2>
<ul>
{{ with $author }}
<li>
{{- if $author.website -}}
<a href="{{ $author.website }}">{{ $author.name }}</a>
{{ else }}
{{ $author.name }}
{{- end -}}
<ul id="donation">
{{- if $author.xmr }}
<li><img alt="XMR Logo" src="/pix/xmr.svg">Monero: <code>{{ $author.xmr }}</code></li>
{{- end -}}
{{- if $author.btc }}
<li><img src="/pix/btc.svg" alt="BTC Logo">Bitcoin: <code>{{ $author.btc }}</code></li>
{{- end -}}
{{- if $author.eth }}
<li><img src="/pix/eth.svg" alt="ETH Logo">Ether: <code>{{ $author.eth }}</code></li>
{{- end -}}
{{- if $author.donate }}
<li><a href="{{ $author.donate }}">Donate/Tip</a></li>
{{- end -}}
</ul>
</li>
{{ else }}
<li>{{ . }}</li>
{{- end -}}
</ul>
{{ end }}