diff --git a/app.py b/app.py index fa4e216..b076cb5 100644 --- a/app.py +++ b/app.py @@ -14,8 +14,6 @@ from flask import Flask, redirect, url_for, render_template, request # gasahwpn on irc.lainchan.org - - app=Flask(__name__) # Paths for conf file, @@ -140,6 +138,10 @@ def signup(): return render_template("signup.html", is_email_user = is_email_user) +@app.context_processor +def get_site_name(): + return {"site_name": conf_obj["site_name"]} + if __name__=="__main__": app.add_url_rule('/rules', 'rules', rules) app.add_url_rule('/req', 'req', req, methods = ['POST', 'GET']) diff --git a/lyadmin.conf.json b/lyadmin.conf.json index 16565fd..168bf53 100644 --- a/lyadmin.conf.json +++ b/lyadmin.conf.json @@ -1,5 +1,5 @@ { - "instance_name": "lingy.in", + "site_name": "lingy.in", "listen_ip": "104.248.118.130", "shell": { "SHELL_BASH": "/usr/local/bin/bash", diff --git a/templates/index.html b/templates/index.html index 54b93e1..9cd4f97 100644 --- a/templates/index.html +++ b/templates/index.html @@ -2,7 +2,7 @@ {%block content %}
lingy.in is a public unix / tilde instance for lainons
+{{site_name}} is a public unix / tilde instance for lainons
current thread: https://lainchan.org/tech/res/34563.html
diff --git a/templates/main_layout.html b/templates/main_layout.html index 5c071e6..f836431 100644 --- a/templates/main_layout.html +++ b/templates/main_layout.html @@ -7,7 +7,7 @@ {% endif %} -