diff --git a/discord_rss_bot/templates/feed.html b/discord_rss_bot/templates/feed.html index 4312b59..f2940b0 100644 --- a/discord_rss_bot/templates/feed.html +++ b/discord_rss_bot/templates/feed.html @@ -43,28 +43,27 @@ {{ entry.title }} - 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 %} -
- Summary -
- {{ entry.summary | discord_markdown }} -
-
- {% endif %} - {% if entry.content %} -
- Content -
- {{ entry.content[0].value | discord_markdown }} -
-
+ {% if entry.summary%} +
+ {{ entry.summary | discord_markdown }} +
+ {% elif entry.content[0].value %} +
+ {{ entry.content[0].value | discord_markdown }} +
+ {% else %} +
+ No content available. +
{% endif %} + {% endfor %} {% endblock %}