Hide empty sidebar

This commit is contained in:
spikecodes 2022-03-24 21:19:21 -07:00
parent f0a6bdc21b
commit 9eb42932df
No known key found for this signature in database
GPG key ID: 004CECFF9B463BCB
3 changed files with 4 additions and 4 deletions

2
Cargo.lock generated
View file

@ -540,7 +540,7 @@ checksum = "1bf2e165bb3457c8e098ea76f3e3bc9db55f87aa90d52d0e6be741470916aaa4"
[[package]]
name = "libreddit"
version = "0.22.1"
version = "0.22.3"
dependencies = [
"askama",
"async-recursion",

View file

@ -3,7 +3,7 @@ name = "libreddit"
description = " Alternative private front-end to Reddit"
license = "AGPL-3.0"
repository = "https://github.com/spikecodes/libreddit"
version = "0.22.2"
version = "0.22.3"
authors = ["spikecodes <19519553+spikecodes@users.noreply.github.com>"]
edition = "2021"

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">