freedom/layouts/partials/metadata.html

29 lines
1 KiB
HTML
Raw Normal View History

2023-03-23 10:46:27 -04:00
<section class="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
<div><img src="{{$author.image}}" style="max-width:64px;border-radius:64px;">
<h2>{{$author.name}}</h2>
2023-04-29 06:19:12 -04:00
{{if .Date }}
2023-03-23 10:46:27 -04:00
<p><strong>Published:</strong> {{.Date | time.Format "Jan 02 2006"}}
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-01-04 16:59:09 -05:00
{{end}}
</p>
2022-09-09 17:02:10 -04:00
</div>
2023-04-29 06:19:12 -04:00
{{if .GetTerms "tags"}}
2023-03-23 10:46:27 -04:00
<div id="tags">
<h2>Tags:</h3>
{{ range (.GetTerms "tags")}}
<a href="{{.Permalink}}" class="tag">
<svg class="icon">
<use href="#tag"></use>
</svg><span>
{{.LinkTitle}}</span></a>
{{end}}
</div>
2023-04-29 06:19:12 -04:00
{{end}}
2023-03-23 10:46:27 -04:00
</div>
2023-06-09 12:31:22 -04:00
</section>