valor/layouts/partials/post.html
2022-08-17 14:47:54 -04:00

10 lines
No EOL
415 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>{{end}}
{{if .Params.audio}}<audio controls><source src="{{.Params.audio}}"></audio>{{end}}
{{if .Params.image}}<img src="{{.Params.image}}">{{end}}
<p>{{.Summary}}</p>
</article>