valor/layouts/partials/post.html

24 lines
639 B
HTML
Raw Normal View History

2022-08-17 14:47:54 -04:00
<article class="post">
<a href="{{.Permalink}}"><h2>{{.Title}}</h2></a>
{{if .Date }}
<p>{{.Date | time.Format "Jan 02 2006"}}</p>
{{end}}
2022-09-15 17:12:31 -04:00
{{if .Params.video}}<video controls loop preload="none"><source src="{{.Params.video}}"></video>
2022-09-02 07:03:46 -04:00
{{else}}
2022-09-15 17:12:31 -04:00
{{if .Params.audio}}<audio controls preload="none"><source src="{{.Params.audio}}"></audio>
2022-09-02 07:03:46 -04:00
{{else}}
2022-09-15 17:12:31 -04:00
{{if .Params.image}}<img loading="lazy" src="{{.Params.image}}">
2022-09-02 07:03:46 -04:00
{{end}}
{{end}}
{{end}}
2022-08-17 14:47:54 -04:00
<p>{{.Summary}}</p>
2022-09-15 17:12:31 -04:00
{{ if .GetTerms "tags" }}
<div class="post-tags">
<span>Tags:</span>
{{range .GetTerms "tags" }}
<a href="{{.Permalink}}">{{.LinkTitle}}</a>
{{end}}
</div>
{{end}}
2022-08-17 14:47:54 -04:00
</article>