From 5be1fbd3fb178e2a89645fd72727b324f96a21ff Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 13 Dec 2022 23:24:45 +0200 Subject: [PATCH] add taglines --- env | 1 + files/helpers/config/const.py | 1 + files/routes/jinja2.py | 2 +- files/templates/home.html | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/env b/env index f3f82e5d5..c46bb6fb7 100644 --- a/env +++ b/env @@ -31,6 +31,7 @@ export DEFAULT_COLOR="805ad5" export EMAIL="blahblahblah@gmail.com" export MAILGUN_KEY="blahblahblah" export 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!" +export TAGLINE="the world's largest gay orgy" export CF_KEY="blahblahblah" export CF_ZONE="blahblahblah" export DEBIAN_FRONTEND="noninteractive" diff --git a/files/helpers/config/const.py b/files/helpers/config/const.py index 79fde6b55..007764775 100644 --- a/files/helpers/config/const.py +++ b/files/helpers/config/const.py @@ -34,6 +34,7 @@ CARD_VIEW = bool(int(environ.get("CARD_VIEW", "0").strip())) EMAIL = environ.get("EMAIL", "blahblahblah@gmail.com").strip() MAILGUN_KEY = environ.get("MAILGUN_KEY", DEFAULT_CONFIG_VALUE).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() +TAGLINE = environ.get("TAGLINE", "the world's largest gay orgy").strip() CF_KEY = environ.get("CF_KEY", DEFAULT_CONFIG_VALUE).strip() CF_ZONE = environ.get("CF_ZONE", DEFAULT_CONFIG_VALUE).strip() TELEGRAM_LINK = environ.get("TELEGRAM_LINK", DEFAULT_CONFIG_VALUE).strip() diff --git a/files/routes/jinja2.py b/files/routes/jinja2.py index 0a1124403..5a2378a4e 100644 --- a/files/routes/jinja2.py +++ b/files/routes/jinja2.py @@ -95,5 +95,5 @@ def inject_constants(): "HOUSE_JOIN_COST":HOUSE_JOIN_COST, "HOUSE_SWITCH_COST":HOUSE_SWITCH_COST, "IMAGE_FORMATS":IMAGE_FORMATS, "PAGE_SIZES":PAGE_SIZES, "THEMES":THEMES, "COMMENT_SORTS":COMMENT_SORTS, "SORTS":SORTS, "TIME_FILTERS":TIME_FILTERS, "HOUSES":HOUSES, "TIERS_ID_TO_NAME":TIERS_ID_TO_NAME, - "DEFAULT_CONFIG_VALUE":DEFAULT_CONFIG_VALUE, "IS_LOCALHOST":IS_LOCALHOST, "BACKGROUND_CATEGORIES":BACKGROUND_CATEGORIES, "PAGE_SIZE":PAGE_SIZE, + "DEFAULT_CONFIG_VALUE":DEFAULT_CONFIG_VALUE, "IS_LOCALHOST":IS_LOCALHOST, "BACKGROUND_CATEGORIES":BACKGROUND_CATEGORIES, "PAGE_SIZE":PAGE_SIZE, "TAGLINE":TAGLINE } diff --git a/files/templates/home.html b/files/templates/home.html index 6b54f6800..c25a2188e 100644 --- a/files/templates/home.html +++ b/files/templates/home.html @@ -3,7 +3,7 @@ {% if sub %} /h/{{sub.name}} {% elif request.path == '/' %} - {{SITE_NAME}}{% if SITE_NAME == 'rDrama' %}: the world's largest gay orgy{% endif %} + {{SITE_NAME}}: {{TAGLINE}} {% else %} {{super()}} {% endif %}