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