use config for title and tagline

This commit is contained in:
2026-06-02 18:42:53 +03:00
parent 93ee829405
commit 5853c8b7a8
3 changed files with 6 additions and 2 deletions

View File

@@ -162,6 +162,7 @@ cache = Cache()
def create_app():
app = Flask(__name__)
app.config['SITE_NAME'] = 'Pyrom'
app.config['SITE_TAGLINE'] = 'anti-social media'
app.config['DISABLE_SIGNUP'] = False
app.config['MODS_CAN_INVITE'] = True
app.config['USERS_CAN_INVITE'] = False

View File

@@ -1,6 +1,6 @@
<nav id="header" class="plank top">
<a class="site-title" href="/">Porom</a>
<span>anti-social media</span>
<a class="site-title" href="/">{{config.SITE_NAME}}</a>
<span>{{config.SITE_TAGLINE or '&nbsp;' | safe}}</span>
{%- if is_logged_in() -%}
{%- with user = get_active_user() -%}
{%- set uc = user.get_unread_count() -%}

View File

@@ -15,6 +15,9 @@ SERVER_NAME = "forum.your.domain"
# your forum's name, shown on the header.
SITE_NAME = "Pyrom"
# the forum's tagline, shown below the title.
SITE_TAGLINE = "anti-social media"
# if true, users can not sign up manually. see the following two settings.
DISABLE_SIGNUP = false