summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-06-26 22:30:02 +0200
committerDaniel Friesel <derf@finalrewind.org>2021-06-26 22:30:02 +0200
commitc312004266e2cb1ddf684b68bbfac6e4dfac5b8d (patch)
treeaa8ddc80868081d4af5f3b067a01db8f54fb3f1c
parent2cad8ef881b66b822769a15968f952bb2419f188 (diff)
move HTML header elements to separate template
-rw-r--r--templates/departure_list.html14
-rw-r--r--templates/header.html13
-rw-r--r--templates/landing_page.html14
-rw-r--r--templates/stops.html14
4 files changed, 16 insertions, 39 deletions
diff --git a/templates/departure_list.html b/templates/departure_list.html
index e234a2c..a82e7c3 100644
--- a/templates/departure_list.html
+++ b/templates/departure_list.html
@@ -2,19 +2,7 @@
<html lang="de">
<head>
<title>{{ title }}</title>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="keywords" content="Abfahrtsmonitor, Bahnhofstafel, Abfahrten, Abfahrtstafel, Nahverkehr, Haltestellen">
- <meta name="description" content="Inoffizieller Abfahrtsmonitor für Nahverkehr">
- <meta name="theme-color" content="#00838f">
- <link rel="icon" type="image/png" href="/static/icons/icon-16x16.png" sizes="16x16">
- <link rel="icon" type="image/png" href="/static/icons/icon-32x32.png" sizes="32x32">
- <link rel="icon" type="image/png" href="/static/icons/icon-96x96.png" sizes="96x96">
- <link rel="apple-touch-icon" href="/static/icons/icon-120x120.png">
- <link rel="apple-touch-icon" sizes="180x180" href="/static/icons/icon-180x180.png">
- <link rel="apple-touch-icon" sizes="152x152" href="/static/icons/icon-152x152.png">
- <link rel="apple-touch-icon" sizes="167x167" href="/static/icons/icon-167x167.png">
- <link href="/static/v0/css/wip.css" id="theme" rel="stylesheet">
+ {% include 'header.html' %}
</head>
<body>
<div class="container">
diff --git a/templates/header.html b/templates/header.html
new file mode 100644
index 0000000..5d62fda
--- /dev/null
+++ b/templates/header.html
@@ -0,0 +1,13 @@
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width, initial-scale=1.0">
+<meta name="keywords" content="Abfahrtsmonitor, Bahnhofstafel, Abfahrten, Abfahrtstafel, Nahverkehr, Haltestellen">
+<meta name="description" content="Inoffizieller Abfahrtsmonitor für Nahverkehr">
+<meta name="theme-color" content="#00838f">
+<link rel="icon" type="image/png" href="/static/icons/icon-16x16.png" sizes="16x16">
+<link rel="icon" type="image/png" href="/static/icons/icon-32x32.png" sizes="32x32">
+<link rel="icon" type="image/png" href="/static/icons/icon-96x96.png" sizes="96x96">
+<link rel="apple-touch-icon" href="/static/icons/icon-120x120.png">
+<link rel="apple-touch-icon" sizes="180x180" href="/static/icons/icon-180x180.png">
+<link rel="apple-touch-icon" sizes="152x152" href="/static/icons/icon-152x152.png">
+<link rel="apple-touch-icon" sizes="167x167" href="/static/icons/icon-167x167.png">
+<link href="/static/v0/css/wip.css" id="theme" rel="stylesheet">
diff --git a/templates/landing_page.html b/templates/landing_page.html
index f487616..c89da47 100644
--- a/templates/landing_page.html
+++ b/templates/landing_page.html
@@ -2,19 +2,7 @@
<html lang="de">
<head>
<title>{{ title }}</title>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="keywords" content="Abfahrtsmonitor, Bahnhofstafel, Abfahrten, Abfahrtstafel, Nahverkehr, Haltestellen">
- <meta name="description" content="Inoffizieller Abfahrtsmonitor für Nahverkehr">
- <meta name="theme-color" content="#00838f">
- <link rel="icon" type="image/png" href="/static/icons/icon-16x16.png" sizes="16x16">
- <link rel="icon" type="image/png" href="/static/icons/icon-32x32.png" sizes="32x32">
- <link rel="icon" type="image/png" href="/static/icons/icon-96x96.png" sizes="96x96">
- <link rel="apple-touch-icon" href="/static/icons/icon-120x120.png">
- <link rel="apple-touch-icon" sizes="180x180" href="/static/icons/icon-180x180.png">
- <link rel="apple-touch-icon" sizes="152x152" href="/static/icons/icon-152x152.png">
- <link rel="apple-touch-icon" sizes="167x167" href="/static/icons/icon-167x167.png">
- <link href="/static/v0/css/wip.css" id="theme" rel="stylesheet">
+ {% include 'header.html' %}
<script src="/static/v0/js/geolocation.js"></script>
</head>
<body>
diff --git a/templates/stops.html b/templates/stops.html
index 4f31c0a..2cbac8e 100644
--- a/templates/stops.html
+++ b/templates/stops.html
@@ -2,19 +2,7 @@
<html lang="de">
<head>
<title>{{ title }}</title>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="keywords" content="Abfahrtsmonitor, Bahnhofstafel, Abfahrten, Abfahrtstafel, Nahverkehr, Haltestellen">
- <meta name="description" content="Inoffizieller Abfahrtsmonitor für Nahverkehr">
- <meta name="theme-color" content="#00838f">
- <link rel="icon" type="image/png" href="/static/icons/icon-16x16.png" sizes="16x16">
- <link rel="icon" type="image/png" href="/static/icons/icon-32x32.png" sizes="32x32">
- <link rel="icon" type="image/png" href="/static/icons/icon-96x96.png" sizes="96x96">
- <link rel="apple-touch-icon" href="/static/icons/icon-120x120.png">
- <link rel="apple-touch-icon" sizes="180x180" href="/static/icons/icon-180x180.png">
- <link rel="apple-touch-icon" sizes="152x152" href="/static/icons/icon-152x152.png">
- <link rel="apple-touch-icon" sizes="167x167" href="/static/icons/icon-167x167.png">
- <link href="/static/v0/css/wip.css" id="theme" rel="stylesheet">
+ {% include 'header.html' %}
</head>
<body>
<div class="container">