freedom/layouts/partials/metadata.html

21 lines
933 B
HTML
Raw Normal View History

2023-07-03 13:56:46 -04:00
<section class="metadata" id="metadata">
2023-01-04 16:59:09 -05:00
{{$author := index .Site.Data.details.staff (.Params.author | default "default")}}
2023-03-23 10:46:27 -04:00
2023-07-03 13:56:46 -04:00
<div style="flex-direction: row;"><a href="{{$author.url}}"><img src="{{$author.image}}" style="max-width:64px;border-radius:64px;"></a>
2023-03-23 10:46:27 -04:00
<h2>{{$author.name}}</h2>
2023-04-29 06:19:12 -04:00
{{if .Date }}
2023-07-03 13:56:46 -04:00
</div>
<p><strong>Published:</strong> <a href="{{.Permalink}}#metadata">{{.Date | time.Format "Jan 02 2006"}}</a>
2023-04-29 06:19:12 -04:00
{{end}}
2023-01-04 16:59:09 -05:00
{{if .Params.updated}}
2023-03-23 10:46:27 -04:00
<br><strong>Updated:</strong> {{.Params.updated | time.Format "Jan 02 2006"}}
2023-07-03 13:56:46 -04:00
{{end}}<br/><br/>
{{if .GetTerms "tags"}}
<strong>Tags:</strong>
{{ range (.GetTerms "tags")}}
<a href="{{.Permalink}}" class="tag">{{.LinkTitle}}</a>
{{end}}
{{end}}
2023-01-04 16:59:09 -05:00
</p>
2023-06-09 12:31:22 -04:00
</section>