Add if else around content and summary

This commit is contained in:
2023-01-22 23:34:07 +01:00
parent e612444737
commit 160cfdc401
2 changed files with 8 additions and 10 deletions

View File

@ -114,6 +114,7 @@
{% endraw %}
</code>{{entry.author}}
</li>
{% if entry.content %}
<li>
<code>
{% raw %}
@ -128,6 +129,7 @@
{% endraw %}
</code>{{entry.content[0].value}}
</li>
{% endif %}
<li>
<code>
{% raw %}
@ -170,6 +172,7 @@
{% endraw %}
</code>{{entry.read_modified}}
</li>
{% if entry.summary %}
<li>
<code>
{% raw %}
@ -184,6 +187,7 @@
{% endraw %}
</code>{{entry.summary}}
</li>
{% endif %}
<li>
<code>
{% raw %}
@ -216,16 +220,6 @@
{% endraw %}
</code>
</li>
<br/>
<li>Will become:</li>
<li>
<code>
<pre>
{{feed.title -}}
{{- entry.content[0].value|discord_markdown -}}
</pre>
</code>
</li>
</ul>
{% else %}
Something went wrong, there was no entry found. If this feed has entries and you still see this message, please contact the developer.

View File

@ -110,6 +110,7 @@
{% endraw %}
</code>{{entry.author}}
</li>
{% if entry.content %}
<li>
<code>
{% raw %}
@ -124,6 +125,7 @@
{% endraw %}
</code>{{entry.content[0].value}}
</li>
{% endif %}
<li>
<code>
{% raw %}
@ -166,6 +168,7 @@
{% endraw %}
</code>{{entry.read_modified}}
</li>
{% if entry.summary %}
<li>
<code>
{% raw %}
@ -180,6 +183,7 @@
{% endraw %}
</code>{{entry.summary}}
</li>
{% endif %}
<li>
<code>
{% raw %}