blob: 1f2d933ff6306d9b69a1db3e50c7b623d8546787 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
{# vim: set ft=htmldjango: #}
{% import "macros.html" as macros %}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="robots" content="noindex" />
<title>
{% set this = page | default(value=section) %}
{% set len = this.components | length %}
{%- if len > 0 -%}
{{ this.title }} - {{ config.title }}
{%- else -%}
{{ config.title }}
{%- endif -%}
</title>
<meta name="description" content="{{ config.description }}" />
<meta name="keywords" content="blog" />
<link rel="alternate"
type="application/rss+xml"
title="RSS"
href="{{ get_url(path="rss.xml") | safe }}" />
<link rel="stylesheet" type="text/css" href="/style.css" />
</head>
<body>
<header>
<nav>
<h1>{{ macros::nav_item(name=config.title, url=config.base_url) }}</h1>
<ul>
<li>{{ macros::nav_item(name="Projects",url=get_url(path="@/projects.md") ) }}</li>
<li>{{ macros::nav_item(name="Posts",url=get_url(path="@/posts/_index.md") ) }}</li>
<li>{{ macros::nav_item(name="About",url=get_url(path="@/about.md") ) }}</li>
</ul>
</nav>
</header>
<main>
{% block content %}
<header>
<h1>{{ section.title | safe }}</h1>
<h3>{{ section.description | default(value="") | markdown(inline=true) | safe }}</h3>
</header>
{{ section.content | safe }}
{% endblock content %}
</main>
<footer>
This site was was built using <a href="https://www.getzola.org/">Zola</a>.
The <a href="{{ config.extra.repository }}">code</a> is licensed under
<a href="https://opensource.org/licenses/{{ config.extra.license }}">{{ config.extra.license }}</a>.
</footer>
</body>
</html>
|