diff options
author | Luke Smith <luke@lukesmith.xyz> | 2022-04-15 13:45:10 -0400 |
---|---|---|
committer | Luke Smith <luke@lukesmith.xyz> | 2022-04-15 13:45:10 -0400 |
commit | ab251b0fd01db72362ab0db65ecda7ae404e3001 (patch) | |
tree | b77a6b5083995e9943b18aacbfdfc2d9c71bde0e /layouts/_default/single.html | |
parent | 2ede678529b25496b3d4a3782f1561b69ce93653 (diff) |
begin adding authors to metadata
Diffstat (limited to 'layouts/_default/single.html')
-rw-r--r-- | layouts/_default/single.html | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..38f5805 --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,31 @@ +{{ partial "header.html" . }} + +<header><h1>{{ .Title }}</h1></header> + +{{ .Content }} + +{{ $author := index .Site.Data.authors (.Params.author | default "default") }} +{{- if $author -}} +<h2>Contributor(s)</h2> +<ul> +<li> +{{- if $author.website -}}<a href="{{ $author.website }}">{{- end -}} + {{ $author.name }} +{{- if $author.website -}}</a>{{- end -}} +<ul> +{{- if $author.xmr }} +<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 -}} +{{- if $author.btc }} +<li><img src="/pix/btc.svg" alt="BTC Logo">Bitcoin: +<code>{{ $author.btc }}</code> +{{- end -}} +{{- if $author.donate }} +<li><a href="{{ $author.donate }}">Donate/Tip</a></li> +{{- end -}} +</ul> +</li> +</ul> +{{- end -}} + +{{ partial "footer.html" . }} |