add back item card to feed

This commit is contained in:
Your Name 2024-06-22 12:17:25 -04:00 committed by Henri Dickson
parent e34ad13f9d
commit 6794ee2b3e
3 changed files with 12 additions and 4 deletions

View file

@ -1,4 +1,10 @@
.feed-page {
.feed {
article {
margin-bottom: 0.5em;
margin-top: 0.5em;
}
}
.notifications {
word-break: break-word;

View file

@ -3,7 +3,7 @@
word-break: break-word;
margin-bottom: 0.5em;
}
.cover {
.embed-cover {
img {
max-width:6em;
max-height:12em;

View file

@ -70,6 +70,9 @@
{% trans "wrote a note" %}
{% endif %}
</span>
{% if piece and piece.classname != 'note' %}
<article>{% include "_item_card.html" with item=item allow_embed=1 %}</article>
{% endif %}
<div>{{ post.summary|default:'' }}</div>
<div style="display:flex;">
<div style="flex-grow:1"
@ -100,10 +103,9 @@
{{ post.content|bleach:"a,p,span,br,div,img"|default:"" }}
{% endif %}
</div>
<div class="cover">
{% if post.piece %}
<div class="embed-cover">
{% if piece and piece.classname == 'note' %}
{% if item %}
{# <article>{% include "_item_card.html" with item=item allow_embed=1 %}</article> #}
<a href="{{ item.url }}" title="{{ item.title }}">
<img src="{{ item.cover_image_url }}" title="{{ item.title }}" alt="cover">
</a>