freedom/layouts/partials/metadata.html

37 lines
1.7 KiB
HTML
Raw Normal View History

2023-09-21 21:27:08 -04:00
<section class="metadata" id="metadata" style="display:flex;flex-direction:column;flex-wrap:nowrap">
2023-01-04 16:59:09 -05:00
{{$author := index .Site.Data.details.staff (.Params.author | default "default")}}
2023-09-21 21:27:08 -04:00
<div style="flex-direction: row;align-items: flex-end;">
<div>
<a href="{{$author.url}}">
<img src="{{$author.image}}" style="max-width:64px;border-radius:64px;">
</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>
2023-10-02 04:32:12 -04:00
{{if .Date }}<strong>Published: </strong>{{.Date | time.Format "Jan 02 2006"}}
2023-09-21 21:27:08 -04:00
{{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}}
2023-04-29 06:19:12 -04:00
{{end}}
2023-09-21 21:27:08 -04:00
</p>
</div>
2023-06-09 12:31:22 -04:00
</section>