remotes/1693045480750635534/spooky-22
Aevann1 2022-06-28 08:17:21 +02:00
parent 4580cf534d
commit 42a6b5731a
5 changed files with 20 additions and 5 deletions

View File

@ -7,6 +7,7 @@ from files.classes.sub import Sub
from files.classes.marsey import Marsey
from flask import request
import tldextract
from os import path
SITE = environ.get("DOMAIN", '').strip()
SITE_NAME = environ.get("SITE_NAME", '').strip()
@ -933,4 +934,6 @@ SPAM_URL_SIMILARITY_THRESHOLD = float(environ.get("SPAM_URL_SIMILARITY_THRESHOLD
SPAM_SIMILAR_COUNT_THRESHOLD = int(environ.get("SPAM_SIMILAR_COUNT_THRESHOLD", 10))
COMMENT_SPAM_SIMILAR_THRESHOLD = float(environ.get("COMMENT_SPAM_SIMILAR_THRESHOLD", 0.5))
COMMENT_SPAM_COUNT_THRESHOLD = int(environ.get("COMMENT_SPAM_COUNT_THRESHOLD", 10))
DESCRIPTION = environ.get("DESCRIPTION", "rdrama.net caters to drama in all forms such as: Real life, videos, photos, gossip, rumors, news sites, Reddit, and Beyond™. There isn't drama we won't touch, and we want it all!").strip()
DESCRIPTION = environ.get("DESCRIPTION", "rdrama.net caters to drama in all forms such as: Real life, videos, photos, gossip, rumors, news sites, Reddit, and Beyond™. There isn't drama we won't touch, and we want it all!").strip()
has_sidebar = path.exists(f'files/templates/sidebar_{SITE_NAME}.html')

View File

@ -58,4 +58,4 @@ def inject_constants():
"HOLE_NAME": HOLE_NAME, "HOLE_STYLE_FLAIR": HOLE_STYLE_FLAIR, "HOLE_REQUIRED": HOLE_REQUIRED,
"LOTTERY_ENABLED": LOTTERY_ENABLED, "GUMROAD_LINK": GUMROAD_LINK,
"DEFAULT_THEME": DEFAULT_THEME, "DESCRIPTION": DESCRIPTION,
"PROCOINS_ENABLED": PROCOINS_ENABLED,}
"PROCOINS_ENABLED": PROCOINS_ENABLED, "has_sidebar": has_sidebar}

View File

@ -326,7 +326,7 @@
</div>
{% block sidebar %}
{% if home or sub and p %}
{% if has_sidebar %}
{% include "sidebar_" + SITE_NAME + ".html" %}
{% endif %}
{% endblock %}
@ -375,6 +375,14 @@
<script src="/assets/js/lite-youtube.js?v=241"></script>
{% if SITE == 'funonly.xyz' %}
<style>
img {
display:none !important;
}
</style>
{% endif %}
</body>
</html>

View File

@ -281,7 +281,9 @@
</li>
{% endif %}
<li class="mt-3">
{% include "sidebar_" + SITE_NAME + ".html" %}
{% if has_sidebar %}
{% include "sidebar_" + SITE_NAME + ".html" %}
{% endif %}
</li>
</ul>
</div>

View File

@ -14,7 +14,9 @@
<h1 class="text-muted text-uppercase">Sidebar</h5>
<div id="sidebar" class="my-3">
{% include "sidebar_" + SITE_NAME + ".html" %}
{% if has_sidebar %}
{% include "sidebar_" + SITE_NAME + ".html" %}
{% endif %}
</div>
</div>
{% endblock %}