bobatheme/layouts/partials/post-metadata/series.html

20 lines
655 B
HTML
Raw Normal View History

2021-11-23 19:06:26 -06:00
<div class="post-metadata" aria-label="{{ i18n "aria_series_metadata" }}">
2021-11-23 13:58:48 -06:00
<span class="post-meta-item">
{{ partial "icon.html" "newspaper" }}
{{ i18n "post_count" (len .Data.Pages) }}
</span>
{{ if ne .Site.Params.readingtime false }}
<span class="post-meta-item">
{{ partial "icon.html" "clock" }}
{{ $readingtime := 0 }}
{{ range .Data.Pages }}
{{ $readingtime = (add $readingtime .ReadingTime) }}
{{ end }}
{{ i18n "readingtime" $readingtime }}
</span>
{{ end }}
{{ partial "post-meta-item/translations.html" . }}
</div>