use pdr's contributor edits

This commit is contained in:
Luke Smith
2026-08-28 23:43:12 +02:00
parent b164c3180e
commit d539cce6ec
2 changed files with 28 additions and 27 deletions
-5
View File
@@ -1,5 +0,0 @@
{
"name": "mttwdevelops",
"website": "https://github.com/mttwdevelops",
"xmr": "46ZkjzFHDFZfys75kQ1dYw52rZPG2a1amAmV39itnRuSfoqGg3bWXdtWRs5EDzq2z1giqNiK971dQBz216C2PywJRNB1rz8"
}
+28 -22
View File
@@ -1,25 +1,31 @@
{{ $author := index hugo.Data.authors (.Params.author | default "default") }} {{ with .Params.author }}
{{- if $author -}} {{ $author := index hugo.Data.authors . }}
<h2>Contributor(s)</h2> <h2>Contributor(s)</h2>
<ul> <ul>
<li> {{ with $author }}
{{- if $author.website -}}<a href="{{ $author.website }}">{{- end -}} <li>
{{ $author.name }} {{- if $author.website -}}
{{- if $author.website -}}</a>{{- end -}} <a href="{{ $author.website }}">{{ $author.name }}</a>
<ul> {{ else }}
{{- if $author.xmr }} {{ $author.name }}
<li><img alt="XMR Logo" src="/pix/xmr.svg">Monero: <code style="overflow-wrap:break-word;font-size:xx-small">{{ $author.xmr }}</code></li> {{- end -}}
{{- end -}} <ul id="donation">
{{- if $author.btc }} {{- if $author.xmr }}
<li><img src="/pix/btc.svg" alt="BTC Logo">Bitcoin: <code>{{ $author.btc }}</code></li> <li><img alt="XMR Logo" src="/pix/xmr.svg">Monero: <code>{{ $author.xmr }}</code></li>
{{- end -}} {{- end -}}
{{- if $author.eth }} {{- if $author.btc }}
<li><img src="/pix/eth.svg" alt="ETH Logo">Ether: <code>{{ $author.eth }}</code></li> <li><img src="/pix/btc.svg" alt="BTC Logo">Bitcoin: <code>{{ $author.btc }}</code></li>
{{- end -}} {{- end -}}
{{- if $author.donate }} {{- if $author.eth }}
<li><a href="{{ $author.donate }}">Donate/Tip</a></li> <li><img src="/pix/eth.svg" alt="ETH Logo">Ether: <code>{{ $author.eth }}</code></li>
{{- end -}} {{- end -}}
{{- if $author.donate }}
<li><a href="{{ $author.donate }}">Donate/Tip</a></li>
{{- end -}}
</ul>
</li>
{{ else }}
<li>{{ . }}</li>
{{- end -}}
</ul> </ul>
</li> {{ end }}
</ul>
{{- end -}}