Skip to content

Commit

Permalink
truncate long posts in discover
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name authored and alphatownsman committed Jul 6, 2024
1 parent b9f2173 commit dc141b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion catalog/templates/discover.html
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ <h5>{% trans "Collections" %}</h5>
<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>
Expand Down
2 changes: 1 addition & 1 deletion journal/templates/posts.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit dc141b0

Please sign in to comment.