Skip to content

Commit

Permalink
truncate post preview before converting it to markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
le4ker committed Jan 12, 2024
1 parent 6838001 commit 92b54c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _includes/latest-post.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ <h3>
</h3>

<section class="text-justify">
{{ post.content | strip_html | markdownify | truncatewords:
site.post-preview-words }}
{{ post.content | strip_html | truncatewords: site.post-preview-words |
markdownify }}
</section>

<h3><a href="{{site.baseurl}}/blog/">Archive</a></h3>
Expand Down

0 comments on commit 92b54c0

Please sign in to comment.