use config for title and tagline
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 ' ' | safe}}</span>
|
||||
{%- if is_logged_in() -%}
|
||||
{%- with user = get_active_user() -%}
|
||||
{%- set uc = user.get_unread_count() -%}
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user