mirror of
https://github.com/LukeSmithxyz/based.cooking.git
synced 2026-01-09 12:35:17 +00:00
begin adding authors to metadata
This commit is contained in:
31
layouts/_default/single.html
Normal file
31
layouts/_default/single.html
Normal file
@@ -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" . }}
|
||||
Reference in New Issue
Block a user