freedom/layouts/partials/metadata.html
2023-07-03 13:56:46 -04:00

20 lines
933 B
HTML

<section class="metadata" id="metadata">
{{$author := index .Site.Data.details.staff (.Params.author | default "default")}}
<div style="flex-direction: row;"><a href="{{$author.url}}"><img src="{{$author.image}}" style="max-width:64px;border-radius:64px;"></a>
<h2>{{$author.name}}</h2>
{{if .Date }}
</div>
<p><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}}<br/><br/>
{{if .GetTerms "tags"}}
<strong>Tags:</strong>
{{ range (.GetTerms "tags")}}
<a href="{{.Permalink}}" class="tag">{{.LinkTitle}}</a>
{{end}}
{{end}}
</p>
</section>