You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
693 B
HTML
23 lines
693 B
HTML
<div class="post-item-meta">
|
|
{{ i18n "format_date" .PublishDate }}
|
|
 
|
|
<!-- Reading Time Start -->
|
|
{{ if .Site.Params.enableReadingTime }}
|
|
<i class="material-icons" style="font-size:10px">schedule</i>
|
|
{{ $readTime := mul (div (countwords .Content) 220.0) 60 }}
|
|
|
|
{{ $minutes := math.Floor (div $readTime 60) }}
|
|
{{ $seconds := mod $readTime 60 }}
|
|
|
|
{{ if gt $minutes 0}}
|
|
{{ $minutes }} {{ cond (eq $minutes 1) "minute" "min" }}
|
|
{{ end }}
|
|
{{ $seconds }} {{ cond (eq $seconds 1) "second" "s" }}
|
|
{{ end }}
|
|
<!-- Reading Time End -->
|
|
 
|
|
{{ if .Draft }}
|
|
<span class="draft-label">{{ i18n "draft" }}</span>
|
|
{{ end }}
|
|
</div>
|