footer only on homepage now
This commit is contained in:
parent
f682147507
commit
d60e2ac726
4
app.py
4
app.py
@ -8,8 +8,8 @@ def home():
|
|||||||
|
|
||||||
u_list = [];
|
u_list = [];
|
||||||
with open("user_list.txt") as u_file:
|
with open("user_list.txt") as u_file:
|
||||||
for line in u_file:
|
for line in u_file.readlines():
|
||||||
u_list.append(line);
|
u_list.append(line.strip());
|
||||||
|
|
||||||
return render_template("index.html", u_list=u_list, page_name="home")
|
return render_template("index.html", u_list=u_list, page_name="home")
|
||||||
|
|
||||||
|
@ -1,7 +1,11 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<head>
|
<head>
|
||||||
<title>LAINTILDE0</title>
|
<title>LAINTILDE0</title>
|
||||||
|
{% if page_name %}
|
||||||
<link rel="stylesheet" href="{{url_for('static',filename='main_' + page_name + '.css')}}">
|
<link rel="stylesheet" href="{{url_for('static',filename='main_' + page_name + '.css')}}">
|
||||||
|
{% else %}
|
||||||
|
<link rel="stylesheet" href="{{url_for('static',filename='main.css')}}">
|
||||||
|
{% endif %}
|
||||||
</head>
|
</head>
|
||||||
<h1>lingy.in</h1>
|
<h1>lingy.in</h1>
|
||||||
<body>
|
<body>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{%extends "layout.html"%}
|
{%extends "main_layout.html"%}
|
||||||
|
|
||||||
{%block content%}
|
{%block content%}
|
||||||
<p>
|
<p>
|
||||||
|
Loading…
Reference in New Issue
Block a user