Update feed page

Only show summary, content if not available
Only show author if not None
This commit is contained in:
2023-01-14 13:21:06 +01:00
parent 873f5b3f7a
commit 3bc5d1c24e

View File

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