diff options
author | Alan Pearce | 2020-11-14 21:17:02 +0100 |
---|---|---|
committer | Alan Pearce | 2020-11-14 21:52:50 +0100 |
commit | 5de7de4e64cb20183ebfe86e16578f4abd62a23e (patch) | |
tree | d3e24ee322d24c03a5e6563ace11c1c588881368 /templates/base.html | |
parent | d996657be5efda94f4a934d5d78c407ba47bf76c (diff) | |
download | website-5de7de4e64cb20183ebfe86e16578f4abd62a23e.tar.xz website-5de7de4e64cb20183ebfe86e16578f4abd62a23e.zip |
Port theme to zola template
Diffstat (limited to 'templates/base.html')
-rw-r--r-- | templates/base.html | 25 |
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 @@ | |||
1 | <!DOCTYPE html> | ||
2 | <html lang="{{ config.default_language }}"> | ||
3 | <head> | ||
4 | <meta charset="utf-8"> | ||
5 | <meta name="viewport" content="width=device-width, initial-scale=1"> | ||
6 | <title {%- if current_path == '/' %} class="p-name"{% endif %}>{% block title %}{{ section.title }} | {{ config.title }}{% endblock %}</title> | ||
7 | <link rel="stylesheet" href="/css/style.css" /> | ||
8 | {%- if config.generate_feed %} | ||
9 | {%- block rss %} | ||
10 | <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 }}"> | ||
11 | {%- endblock %} | ||
12 | {%- endif %} | ||
13 | </head> | ||
14 | <body> | ||
15 | <nav> | ||
16 | <ul> | ||
17 | {%- for item in config.extra.menu.main %} | ||
18 | <li><a {%- if item.url == "/" %} class="author"{% endif %} href="{{ item.url | safe }}">{{ item.name }}</a></li> | ||
19 | {%- endfor %} | ||
20 | </ul> | ||
21 | </nav> | ||
22 | {% block main %}{% endblock %} | ||
23 | <footer>{{ config.extra.footer | safe }}</footer> | ||
24 | </body> | ||
25 | </html> | ||