1
0
Fork 0
forked from github/pelican

feat: add blog post word count

This commit is contained in:
Oliver Ladner 2025-07-08 10:51:34 +02:00
commit c0618e0a9c
11 changed files with 103 additions and 50 deletions

View file

@ -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>
&nbsp;{{ article.stats['read_mins']*1.5|round|int }} min. read
&nbsp;{{ 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">