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 }} {{ 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 %} <div class="text-muted">
<details> {{ entry.summary | discord_markdown }}
<summary>Summary</summary> </div>
<div class="text-muted text-wrap summary"> {% elif entry.content[0].value %}
{{ entry.summary | discord_markdown }} <div class="text-muted">
</div> {{ entry.content[0].value | discord_markdown }}
</details> </div>
{% endif %} {% else %}
{% if entry.content %} <div class="text-muted">
<details> No content available.
<summary>Content</summary> </div>
<div class="text-muted summary">
{{ entry.content[0].value | discord_markdown }}
</div>
</details>
{% endif %} {% endif %}
</div> </div>
{% endfor %} {% endfor %}
{% endblock %} {% endblock %}