Skip to content

Commit

Permalink
Truncate post text
Browse files Browse the repository at this point in the history
  • Loading branch information
den1slx committed May 22, 2023
1 parent 49f6b17 commit d60dd6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ <h3><a href="#">{{ post.title }}</a></h3>
</div>
<div class="details mt-20">
<h3> {{ post.title }} </h3>
<p> {{ post.text }} </p>
<p> {{ post.text|truncatechars:200 }} </p>
<a class="button" href="#">Read More <i class="ti-arrow-right"></i></a>
</div>
</div>
Expand Down

0 comments on commit d60dd6d

Please sign in to comment.