diff --git a/app.py b/app.py index 1c090aa..e11fe41 100644 --- a/app.py +++ b/app.py @@ -8,8 +8,8 @@ def home(): u_list = []; with open("user_list.txt") as u_file: - for line in u_file: - u_list.append(line); + for line in u_file.readlines(): + u_list.append(line.strip()); return render_template("index.html", u_list=u_list, page_name="home") diff --git a/templates/main_layout.html b/templates/main_layout.html index a610db0..5c071e6 100644 --- a/templates/main_layout.html +++ b/templates/main_layout.html @@ -1,7 +1,11 @@ LAINTILDE0 + {% if page_name %} + {% else %} + + {% endif %}

lingy.in

diff --git a/templates/rules.html b/templates/rules.html index 1ecadf5..a9f305d 100644 --- a/templates/rules.html +++ b/templates/rules.html @@ -1,4 +1,4 @@ -{%extends "layout.html"%} +{%extends "main_layout.html"%} {%block content%}