forked from github/pelican
feat: add blog post word count
This commit is contained in:
parent
df34aec7f2
commit
c0618e0a9c
11 changed files with 103 additions and 50 deletions
|
|
@ -29,7 +29,7 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" class="size-5">
|
||||
<path fill-rule="evenodd" d="M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm.75-13a.75.75 0 0 0-1.5 0v5c0 .414.336.75.75.75h4a.75.75 0 0 0 0-1.5h-3.25V5Z" clip-rule="evenodd" />
|
||||
</svg>
|
||||
{{ article.stats['read_mins']*1.5|round|int }} min. read
|
||||
{{ article.stats['read_mins']*1.5|round|int }} min. read ({{ article.stats['wc'] }} words)
|
||||
</span>
|
||||
<span class="flex items-center">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" class="size-5">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue