Update feed page
Only show summary, content if not available Only show author if not None
This commit is contained in:
@ -43,28 +43,27 @@
|
|||||||
{{ entry.title }}
|
{{ entry.title }}
|
||||||
</a>
|
</a>
|
||||||
</h2>
|
</h2>
|
||||||
By {{ entry.author }}
|
{% if entry.author %}
|
||||||
|
By {{ entry.author }} @
|
||||||
|
{% endif %}
|
||||||
{% if entry.published %}
|
{% if entry.published %}
|
||||||
@ {{ entry.published.strftime('%Y-%m-%d, %T') }}
|
{{ entry.published.strftime('%Y-%m-%d, %T') }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{# TODO: Only show one if both are the same #}
|
|
||||||
{% if entry.summary%}
|
{% if entry.summary%}
|
||||||
<details>
|
<div class="text-muted">
|
||||||
<summary>Summary</summary>
|
|
||||||
<div class="text-muted text-wrap summary">
|
|
||||||
{{ entry.summary | discord_markdown }}
|
{{ entry.summary | discord_markdown }}
|
||||||
</div>
|
</div>
|
||||||
</details>
|
{% elif entry.content[0].value %}
|
||||||
{% endif %}
|
<div class="text-muted">
|
||||||
{% if entry.content %}
|
|
||||||
<details>
|
|
||||||
<summary>Content</summary>
|
|
||||||
<div class="text-muted summary">
|
|
||||||
{{ entry.content[0].value | discord_markdown }}
|
{{ entry.content[0].value | discord_markdown }}
|
||||||
</div>
|
</div>
|
||||||
</details>
|
{% else %}
|
||||||
|
<div class="text-muted">
|
||||||
|
No content available.
|
||||||
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Reference in New Issue
Block a user