This repository has been archived on 2024-11-01. You can view files and clone it, but cannot push or open issues or pull requests.
blog/themes/kiera/layouts/partials/aside.html

37 lines
1.2 KiB
HTML
Raw Normal View History

2024-10-28 16:26:25 -05:00
<aside>
<ul>
<li>
<time class="post-date" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}">{{ .Date.Format "Jan 2, 2006" }}</time>
</li>
{{ if ne .Date .Lastmod }}
<li>
{{ T "modifiedOn" }} <time datetime="{{ .Lastmod.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}">{{ .Lastmod.Format "Jan 2, 2006" }}</time>
</li>
{{ end }}
{{ if .Params.categories }}
<li>
{{ T "categories" }}
<em>
{{ range $i, $c := .Params.categories }}
{{ if $i }}, {{ end }}
<a href="{{ relLangURL ( printf "categories/%s" ( $c | urlize ) ) }}">{{ $c }}</a>
{{ end }}
</em>
</li>
{{ end }}
{{ if .Params.tags }}
<li>
<em>
{{ range $i, $t := .Params.tags }}
{{ if $i }}, {{ end }}
<a href="{{ relLangURL ( printf "tags/%s" ( $t | urlize ) ) }}">#{{ $t }}</a>
{{ end }}
</em>
</li>
{{ end }}
<li>{{ T "readingTime" .ReadingTime }}</li>
</ul>
</aside>