summaryrefslogtreecommitdiff
path: root/theme/templates/base.html
diff options
context:
space:
mode:
authorPhilipp Geyer <philipp@geyer.co.uk>2022-01-22 14:12:35 +0000
committerPhilipp Geyer <philipp@geyer.co.uk>2022-01-22 14:12:35 +0000
commitba4e78346aac1843890c1a889807b8e60bdf9419 (patch)
tree5982ccc113872b20db69005bf8bb2addff492571 /theme/templates/base.html
parent93ea64f62c8056a532367600f53f69d4daa79ea3 (diff)
Some work on my website - should be looking half decent finally, and have some content
Diffstat (limited to 'theme/templates/base.html')
-rw-r--r--theme/templates/base.html55
1 files changed, 55 insertions, 0 deletions
diff --git a/theme/templates/base.html b/theme/templates/base.html
new file mode 100644
index 0000000..ff31f26
--- /dev/null
+++ b/theme/templates/base.html
@@ -0,0 +1,55 @@
+<!doctype html>
+<html lang="en-us">
+ <head>
+ {% block head %}
+ <meta charset="utf-8">
+ <title>
+ {% block title %}{{ site_name | default("Philipp Geyer") }}{% endblock %}
+ {% block subtitle %}{% endblock %}
+ </title>
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ {% if site_owner is defined %}<meta name="author" content="{{ site_owner }}" />{% endif %}
+ {% if site_description is defined %}<meta name="description" content="{{ site_description }}" />{% endif %}
+ {% if site_keywords is defined %}<meta name="keywords" content="{{ site_keywords }}" />{% endif %}
+ {% block meta %}{% endblock %}
+ <link rel="stylesheet" href="{{ url_for("static", file="style.css") }}" type="text/css" />
+ <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Lora&family=Space+Mono&display=swap" />
+ {% endblock %}
+ </head>
+ <body>
+ {# Top navigation bar #}
+ {% block nav %}
+ <header>
+ <h1>
+ <a href="{{ url_for("index") }}">
+ {% block title %}{{ site_name | default("Philipp Geyer") }}{% endblock %}
+ </a>
+ </h1>
+ <a href="#main" class="visually-hidden">jump to main content</a>
+ <nav>
+ <ul class="menu">
+ <li><a href="{{ url_for("blog") }}">posts</a></li>
+ <li><a href="{{ url_for("articles") }}">pages</a></li>
+ </ul>
+ </nav>
+ </header>
+ {% endblock %}
+
+ {# Probably where most of the action will happen #}
+ <main id="main">
+ {% block main %}{% endblock %}
+ </main>
+
+ {# Links, copyright notice, etc #}
+ {% block footer %}
+ <footer>
+ <ul class="menu">
+ <li><a href="{{ url_for("pages", slug="about") }}">about</a></li>
+ <li><a href="{{ url_for("pages", slug="contact") }}">contact</a></li>
+ <li><a href="{{ url_for("pages", slug="credits") }}">credits</a></li>
+ </ul>
+ </footer>
+ {% endblock %}
+
+ </body>
+</html>