summary refs log tree commit diff stats
path: root/templates/base.html
diff options
context:
space:
mode:
authorAlan Pearce2020-11-14 21:17:02 +0100
committerAlan Pearce2020-11-14 21:52:50 +0100
commit5de7de4e64cb20183ebfe86e16578f4abd62a23e (patch)
treed3e24ee322d24c03a5e6563ace11c1c588881368 /templates/base.html
parentd996657be5efda94f4a934d5d78c407ba47bf76c (diff)
downloadwebsite-5de7de4e64cb20183ebfe86e16578f4abd62a23e.tar.lz
website-5de7de4e64cb20183ebfe86e16578f4abd62a23e.tar.zst
website-5de7de4e64cb20183ebfe86e16578f4abd62a23e.zip
Port theme to zola template
Diffstat (limited to 'templates/base.html')
-rw-r--r--templates/base.html25
1 files changed, 25 insertions, 0 deletions
diff --git a/templates/base.html b/templates/base.html
new file mode 100644
index 0000000..6b99609
--- /dev/null
+++ b/templates/base.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<html lang="{{ config.default_language }}">
+  <head>
+    <meta charset="utf-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1">
+    <title {%- if current_path == '/' %} class="p-name"{% endif %}>{% block title %}{{ section.title }} | {{ config.title }}{% endblock %}</title>
+    <link rel="stylesheet" href="/css/style.css" />
+    {%- if config.generate_feed %}
+    {%- block rss %}
+    <link rel="alternate" type={% if config.feed_filename == "atom.xml" %}"application/atom+xml"{% else %}"application/rss+xml"{% endif %} title="RSS" href="{{ get_url(path=config.feed_filename) | safe }}">
+    {%- endblock %}
+    {%- endif %}
+  </head>
+  <body>
+    <nav>
+      <ul>
+        {%- for item in config.extra.menu.main %}
+          <li><a {%- if item.url == "/" %} class="author"{% endif %} href="{{ item.url | safe }}">{{ item.name }}</a></li>
+        {%- endfor %}
+      </ul>
+    </nav>
+    {% block main %}{% endblock %}
+    <footer>{{ config.extra.footer | safe }}</footer>
+  </body>
+</html>