1
0
mirror of https://github.com/spikecodes/libreddit synced 2024-12-25 18:15:16 +01:00

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