donation links support
This commit is contained in:
parent
a2e39ee834
commit
6b098dc663
2 changed files with 36 additions and 17 deletions
|
@ -1,20 +1,36 @@
|
||||||
<section class="metadata" id="metadata">
|
<section class="metadata" id="metadata" style="display:flex;flex-direction:column;flex-wrap:nowrap">
|
||||||
{{$author := index .Site.Data.details.staff (.Params.author | default "default")}}
|
{{$author := index .Site.Data.details.staff (.Params.author | default "default")}}
|
||||||
|
<div style="flex-direction: row;align-items: flex-end;">
|
||||||
<div style="flex-direction: row;"><a href="{{$author.url}}"><img src="{{$author.image}}" style="max-width:64px;border-radius:64px;"></a>
|
<div>
|
||||||
<h2>{{$author.name}}</h2>
|
<a href="{{$author.url}}">
|
||||||
{{if .Date }}
|
<img src="{{$author.image}}" style="max-width:64px;border-radius:64px;">
|
||||||
</div>
|
</a>
|
||||||
<p><strong>Published:</strong> <a href="{{.Permalink}}#metadata">{{.Date | time.Format "Jan 02 2006"}}</a>
|
<h2>{{$author.name}}</h2>
|
||||||
|
</div>
|
||||||
|
<div style="justify-content: space-between;">
|
||||||
|
<strong>Support</strong>
|
||||||
|
{{ if $author.donate}}
|
||||||
|
<a href="{{$author.donate}}">Donate</a>
|
||||||
|
{{end}}
|
||||||
|
{{ if $author.bitcoin}}
|
||||||
|
<a href="bitcoin:{{$author.bitcoin}}?label=Gabriel">Bitcoin</a>
|
||||||
|
{{end}}
|
||||||
|
{{ if $author.monero}}
|
||||||
|
<a href="monero:{{$author.monero}}">Monero</a>
|
||||||
|
{{end}}
|
||||||
|
</div>
|
||||||
|
<p>
|
||||||
|
{{if .Date }}<strong>Published:</strong> <a href="{{.Permalink}}#metadata">{{.Date | time.Format "Jan 02 2006"}}</a>
|
||||||
|
{{end}}
|
||||||
|
{{if .Params.updated}}
|
||||||
|
<br><strong>Updated:</strong> {{.Params.updated | time.Format "Jan 02 2006"}}
|
||||||
|
{{end}}
|
||||||
|
{{if .GetTerms "tags"}}<br>
|
||||||
|
<strong>Tags:</strong>
|
||||||
|
{{ range (.GetTerms "tags")}}
|
||||||
|
<a href="{{.Permalink}}" class="tag">{{.LinkTitle}}</a>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{if .Params.updated}}
|
{{end}}
|
||||||
<br><strong>Updated:</strong> {{.Params.updated | time.Format "Jan 02 2006"}}
|
</p>
|
||||||
{{end}}<br/><br/>
|
</div>
|
||||||
{{if .GetTerms "tags"}}
|
|
||||||
<strong>Tags:</strong>
|
|
||||||
{{ range (.GetTerms "tags")}}
|
|
||||||
<a href="{{.Permalink}}" class="tag">{{.LinkTitle}}</a>
|
|
||||||
{{end}}
|
|
||||||
{{end}}
|
|
||||||
</p>
|
|
||||||
</section>
|
</section>
|
||||||
|
|
|
@ -230,6 +230,9 @@ audio {
|
||||||
.metadata>* {
|
.metadata>* {
|
||||||
margin: 5px;
|
margin: 5px;
|
||||||
}
|
}
|
||||||
|
.metadata h2{
|
||||||
|
margin: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
.metadata>div>* {
|
.metadata>div>* {
|
||||||
margin: 5px;
|
margin: 5px;
|
||||||
|
|
Loading…
Reference in a new issue