valor/layouts/partials/post.html

29 lines
1.1 KiB
HTML
Raw Permalink Normal View History

<div class="post">
2024-07-27 14:48:24 -04:00
{{if .Params.icon }}
<a href="{{.Permalink}}"><img src="{{.Params.icon}}"></a>
{{else}}
<a href="{{.Permalink}}"><img src="/emoji/think.svg"></a>
{{end}}
2024-07-27 15:19:41 -04:00
<div style="flex-direction: column;min-width:30%; align-items:center;justify-content: center;">
2024-07-27 14:48:24 -04:00
<a href="{{.Permalink}}">
<h2>{{.Title}}</h2>
</a>
{{ if .Params.description}}
<p>{{.Params.description}}</p>
{{end}}
<p>{{if .Date}}<strong>{{.Date | time.Format "Jan 02 2006"}}</strong>{{end}}</p>
</div>
<div style="flex-direction: column;align-items: center;justify-content: center;">
<p >{{.Summary}}</p>
2023-05-11 03:23:20 -04:00
{{ if .GetTerms "tags" }}
2024-07-27 14:48:24 -04:00
<div class="post-tags">
{{range .GetTerms "tags" }}
<a href="{{.Permalink}}" class="tag"><svg class='icon'>
<use href="#tag"></use>
</svg><span>{{.LinkTitle}}</span></a>
{{end}}
</div>
2023-05-11 03:23:20 -04:00
{{end}}
</div>
</div>