add back item card to feed
This commit is contained in:
parent
e34ad13f9d
commit
6794ee2b3e
3 changed files with 12 additions and 4 deletions
|
@ -1,4 +1,10 @@
|
||||||
.feed-page {
|
.feed-page {
|
||||||
|
.feed {
|
||||||
|
article {
|
||||||
|
margin-bottom: 0.5em;
|
||||||
|
margin-top: 0.5em;
|
||||||
|
}
|
||||||
|
}
|
||||||
.notifications {
|
.notifications {
|
||||||
word-break: break-word;
|
word-break: break-word;
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
word-break: break-word;
|
word-break: break-word;
|
||||||
margin-bottom: 0.5em;
|
margin-bottom: 0.5em;
|
||||||
}
|
}
|
||||||
.cover {
|
.embed-cover {
|
||||||
img {
|
img {
|
||||||
max-width:6em;
|
max-width:6em;
|
||||||
max-height:12em;
|
max-height:12em;
|
||||||
|
|
|
@ -70,6 +70,9 @@
|
||||||
{% trans "wrote a note" %}
|
{% trans "wrote a note" %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</span>
|
</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>{{ post.summary|default:'' }}</div>
|
||||||
<div style="display:flex;">
|
<div style="display:flex;">
|
||||||
<div style="flex-grow:1"
|
<div style="flex-grow:1"
|
||||||
|
@ -100,10 +103,9 @@
|
||||||
{{ post.content|bleach:"a,p,span,br,div,img"|default:"" }}
|
{{ post.content|bleach:"a,p,span,br,div,img"|default:"" }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
<div class="cover">
|
<div class="embed-cover">
|
||||||
{% if post.piece %}
|
{% if piece and piece.classname == 'note' %}
|
||||||
{% if item %}
|
{% if item %}
|
||||||
{# <article>{% include "_item_card.html" with item=item allow_embed=1 %}</article> #}
|
|
||||||
<a href="{{ item.url }}" title="{{ item.title }}">
|
<a href="{{ item.url }}" title="{{ item.title }}">
|
||||||
<img src="{{ item.cover_image_url }}" title="{{ item.title }}" alt="cover">
|
<img src="{{ item.cover_image_url }}" title="{{ item.title }}" alt="cover">
|
||||||
</a>
|
</a>
|
||||||
|
|
Loading…
Add table
Reference in a new issue