sandvich.xyz/layouts/partials/post-info-small.html

30 lines
921 B
HTML
Raw Permalink Normal View History

2022-10-30 19:47:39 -07:00
<div class="info info-small">
<span class="info-date">
<i class="bi bi-clock"></i>
<span>{{ dateFormat "2006-01-02" .Date }}</span>
</span>
<span class="info-reading-time">
<i class="bi bi-hourglass"></i>
<span>Reading time {{ .ReadingTime }} min.</span>
</span>
<span class="info-tags">
<i class="bi bi-tags"></i>
<span>
{{ range $k, $v := .Params.tags }}
{{ $url := printf "/tags/%s" (. | urlize) }}
<a class="tag" href="{{ $url }}">{{ . }}</a>
{{ end }}
</span>
</span>
2024-05-13 23:08:04 -07:00
{{ with .Params.series }}
<span class="info-series">
<span><i class="bi bi-collection"></i></span>
<span>
<a class="tag" href="/series/{{ . | urlize }}">
{{ . }}
</a>
</span>
</span>
{{ end }}
2022-10-30 19:47:39 -07:00
</div>