valor/layouts/partials/post.html
2022-09-02 07:03:46 -04:00

16 lines
No EOL
437 B
HTML

<article class="post">
<a href="{{.Permalink}}"><h2>{{.Title}}</h2></a>
{{if .Date }}
<p>{{.Date | time.Format "Jan 02 2006"}}</p>
{{end}}
{{if .Params.video}}<video controls autoplay muted loop><source src="{{.Params.video}}"></video>
{{else}}
{{if .Params.audio}}<audio controls><source src="{{.Params.audio}}"></audio>
{{else}}
{{if .Params.image}}<img src="{{.Params.image}}">
{{end}}
{{end}}
{{end}}
<p>{{.Summary}}</p>
</article>