summaryrefslogtreecommitdiff
path: root/layouts/partials/list/post-card.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/list/post-card.html')
-rw-r--r--layouts/partials/list/post-card.html16
1 files changed, 11 insertions, 5 deletions
diff --git a/layouts/partials/list/post-card.html b/layouts/partials/list/post-card.html
index 75be9ce..254cc6b 100644
--- a/layouts/partials/list/post-card.html
+++ b/layouts/partials/list/post-card.html
@@ -10,11 +10,17 @@
<time datetime="{{ $post.Date.Format "2006-01-02T15:04:05Z07:00" }}" class="post-card__publish-date">
{{ $post.Date | time.Format ":date_medium" }}
</time>
- {{- with $post.ReadingTime }}
- <p class="post-card__reading-time">
- {{ lang.Translate "list.reading_time" . | default (printf "Estimated reading time: %s min" .) }}
- </p>
- {{- end }}
+ <!-- Uncomment for post meta info
+ <p class="post-card__meta-info">
+ <span class="post-card__reading-time">
+ {{ lang.Translate "list.reading_time" $post.ReadingTime | default (printf "Estimated reading time: %s min" $post.ReadingTime) }}
+ </span>
+ |
+ <span class="post-card__word-count">
+ {{ lang.Translate "list.word_count" $post.WordCount | default (printf "%s words" $post.WordCount) }}
+ </span>
+ </p>
+ -->
</div>
</header>