From d60e2ac7266672149e4e31e55a111e36503f0b02 Mon Sep 17 00:00:00 2001 From: gashapwn Date: Thu, 26 Nov 2020 22:15:40 +0000 Subject: [PATCH] footer only on homepage now --- app.py | 4 ++-- templates/main_layout.html | 4 ++++ templates/rules.html | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) 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%}