Hide empty sidebar

This commit is contained in:
spikecodes
2022-03-24 21:19:21 -07:00
parent f0a6bdc21b
commit 9eb42932df
3 changed files with 4 additions and 4 deletions

View File

@ -74,12 +74,12 @@
</footer>
</div>
{% endif %}
{% if is_filtered || (sub.name != "all" && sub.name != "popular" && !sub.name.contains("+")) %}
{% if is_filtered || (!sub.name.is_empty() && sub.name != "all" && sub.name != "popular" && !sub.name.contains("+")) %}
<aside>
{% if is_filtered %}
<center>(Content from r/{{ sub.name }} has been filtered)</center>
{% endif %}
{% if sub.name != "all" && sub.name != "popular" && !sub.name.contains("+") %}
{% if !sub.name.is_empty() && sub.name != "all" && sub.name != "popular" && !sub.name.contains("+") %}
<div class="panel" id="subreddit">
{% if sub.wiki %}
<div id="top">