Update feed page
Only show summary, content if not available Only show author if not None
This commit is contained in:
parent
873f5b3f7a
commit
3bc5d1c24e
1 changed files with 17 additions and 18 deletions
|
|
@ -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">
|
||||
{% if entry.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 %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue