freedom/layouts/partials/metadata.html

29 lines
834 B
HTML
Raw Normal View History

2022-08-22 20:03:48 -04:00
<div class="metadata">
2023-01-04 16:59:09 -05:00
<div id="info">
{{$author := index .Site.Data.details.staff (.Params.author | default "default")}}
2022-08-22 20:03:48 -04:00
<div>
2023-01-04 16:59:09 -05:00
<img src="{{$author.image}}" style="max-width:5rem;border-radius:5rem;">
2022-08-22 20:03:48 -04:00
<h2>{{$author.name}}</h2>
</div>
2022-09-05 19:26:00 -04:00
<div>
2023-01-04 16:59:09 -05:00
<p>Published: {{.Date | time.Format "Jan 02 2006"}}
{{if .Params.updated}}
<br>Published: {{.Params.updated | time.Format "Jan 02 2006"}}
{{end}}
</p>
2022-09-09 17:02:10 -04:00
</div>
2022-08-22 20:03:48 -04:00
</div>
2023-01-04 16:59:09 -05:00
<div id="tags">
{{ range (.GetTerms "tags")}}
<a href="{{.Permalink}}" class="tag">
<svg class="icon">
<use href="#tag"></use>
</svg><span>
{{.LinkTitle}}</span></a>
{{end}}
</div>
</div>
2022-08-22 20:03:48 -04:00
</div>