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

31 lines
1013 B
HTML

<table class="info">
<tbody>
<tr class="info-date">
<td><i class="bi bi-clock"></i></td>
<td>{{ dateFormat "2006-01-02" .Date }}</td>
</tr>
<tr class="info-reading-time">
<td><i class="bi bi-hourglass"></i></td>
<td>Reading time {{ .ReadingTime }} min.</td>
</tr>
<tr class="info-tags">
<td><i class="bi bi-tags"></i></td>
<td>
{{ range $k, $v := .Params.tags }}
{{ $url := printf "/tags/%s" (. | urlize) }}
<a class="tag" href="{{ $url }}">{{ . }}</a>
{{ end }}
</td>
</tr>
{{ with .Params.series }}
<td><i class="bi bi-collection"></i></td>
<td>
This post is part of a larger series:
<a class="tag" href="/series/{{ . | urlize }}">
{{ . }}
</a>
</td>
{{ end }}
</tbody>
</table>