mirror of
https://github.com/LukeSmithxyz/based.cooking.git
synced 2024-10-30 15:20:11 +00:00
move contributor to partial file (#869)
This commit is contained in:
parent
6243f3b7cc
commit
6c78a57c8c
@ -4,30 +4,6 @@
|
|||||||
|
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
|
|
||||||
{{ $author := index .Site.Data.authors (.Params.author | default "default") }}
|
{{ partial "contributor.html" . }}
|
||||||
{{- 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></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>
|
|
||||||
</ul>
|
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
{{ partial "footer.html" . }}
|
{{ partial "footer.html" . }}
|
||||||
|
25
layouts/partials/contributor.html
Normal file
25
layouts/partials/contributor.html
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
{{ $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></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>
|
||||||
|
</ul>
|
||||||
|
{{- end -}}
|
Loading…
Reference in New Issue
Block a user