truncate long posts in discover

This commit is contained in:
Your Name 2024-07-06 08:40:10 -04:00 committed by Henri Dickson
parent b9f2173f27
commit dc141b0951
2 changed files with 2 additions and 2 deletions

View file

@ -183,7 +183,7 @@
<section>
<article>
<details id="section-popular-posts" class="auto-keep-collapse" open>
<summary>{% trans 'Popular Posts' %}</summary>
<summary>{% trans 'Recent Posts' %}</summary>
<div style="font-size:80%">{% include "posts.html" with posts=popular_posts %}</div>
</details>
</article>

View file

@ -39,7 +39,7 @@
{% endif %}
{% endfor %}
</div>
{{ post.content|bleach:"a,p,span,br,div,img"|default:"" }}
<div class="tldr" _="on click toggle .tldr on me">{{ post.content|bleach:"a,p,span,br,div,img"|default:"" }}</div>
</div>
</div>
</div>