valor/layouts/partials/post.html

26 lines
619 B
HTML
Raw Normal View History

<div class="post">
2022-08-17 14:47:54 -04:00
<a href="{{.Permalink}}"><h2>{{.Title}}</h2></a>
{{if .Date }}
<p>{{.Date | time.Format "Jan 02 2006"}}</p>
{{end}}
2022-09-17 19:22:44 -04:00
<a href="{{.Permalink}}">
{{if .Params.gif}}
<video autoplay muted loop preload="true">
<source src="{{.Site.BaseURL}}{{.Params.gif}}">
</video>
{{else}}
{{if .Params.image}}<img loading="lazy" src="{{.Site.BaseURL}}{{.Params.image}}">
{{end}}
2022-09-02 07:03:46 -04:00
{{end}}
2022-09-17 19:22:44 -04:00
</a>
<p>{{.Params.description}}</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}}
</div>