Browse Source

footer only on homepage now

tags/release-00
gashapwn 3 years ago
parent
commit
d60e2ac726
3 changed files with 7 additions and 3 deletions
  1. +2
    -2
      app.py
  2. +4
    -0
      templates/main_layout.html
  3. +1
    -1
      templates/rules.html

+ 2
- 2
app.py View File

@@ -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")



+ 4
- 0
templates/main_layout.html View File

@@ -1,7 +1,11 @@
<!DOCTYPE html>
<head>
<title>LAINTILDE0</title>
{% if page_name %}
<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>
<h1>lingy.in</h1>
<body>


+ 1
- 1
templates/rules.html View File

@@ -1,4 +1,4 @@
{%extends "layout.html"%}
{%extends "main_layout.html"%}

{%block content%}
<p>


Loading…
Cancel
Save