about summary refs log tree commit diff stats
path: root/templates/base.html
diff options
context:
space:
mode:
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 @@
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>