itsdrike.com/layouts/partials/content-details.html

22 lines
649 B
HTML
Raw Normal View History

2021-08-25 23:07:17 +00:00
{{ if not .Parent.IsHome }}
2022-05-11 12:10:49 +00:00
{{ if gt .ReadingTime 2 }}
<span class="pr-2" title="Reading time">
<i class="far fa-clock pr-1 content-detail"></i> {{ .ReadingTime }} minutes
</span>
{{ end }}
<span class="pr-2" title="Word count">
2021-08-25 23:07:17 +00:00
<i class="far fa-file-alt pr-1 content-detail"></i> {{ .WordCount }} words
2022-05-11 12:10:49 +00:00
</span>
2021-08-24 17:49:26 +00:00
{{ end }}
{{ if .Params.tags }}
2022-05-11 12:10:49 +00:00
<span class="pr-2" title="Tags">
<a href="{{ ref . " /tags" }}" class="no-color-change mr-1">
<i class="fas fa-tags small content-detail"></i>
</a>
{{ range $i, $e := .Params.tags }}
2021-08-25 23:07:17 +00:00
<a href="/tags/{{ urlize . }}" class="mr-1">#{{ . }}</a>
2022-05-11 12:10:49 +00:00
{{ end }}
</span>
2021-08-24 17:49:26 +00:00
{{ end }}