blob: 9c3a3f18d1982c68e118c8b301df5273f540b409 (
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
53
54
55
56
57
58
59
|
{# index.html #}
{% 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>
{% if term or taxonomy %}
{% set this = term | default(value=taxonomy) %}
{{ this.name }} -
{% elif page or section %}
{% set this = page | default(value=section) %}
{% set len = this.components | length %}
{%- if len > 0 %}
{{ this.title }} -
{% endif -%}
{% endif %}
{{ config.title }}
</title>
<meta name="description" content="{{ config.description }}" />
<meta name="keywords" content="blog" />
<link rel="icon" href="data:;base64,iVBORw0KGgo=">
<link rel="alternate"
type="application/atom+xml"
title="Atom Feed"
href="{{ get_url(path="atom.xml", trailing_slash=false) }}" />
<link rel="stylesheet" type="text/css" href="/style.css" />
</head>
<body>
<header>
<nav>
<span>{{ macros::nav_item(name=config.title, url=get_url(path="@/_index.md",trailing_slash=true)) }}</span>
<ul>
<li>{{ macros::nav_item(name="About", url=get_url(path="@/about.md",trailing_slash=true)) }}</li>
<li>{{ macros::nav_item(name="Git", url="https://git.tobyvin.dev") }}</li>
<li>{{ macros::nav_item(name="Posts", url=get_url(path="@/posts/_index.md",trailing_slash=true)) }}</li>
</ul>
</nav>
</header>
<main>
{% block content %}
<header>
<hgroup>
<h1>{{ section.title | safe }}</h1>
<p>{{ section.description | default(value="") | markdown(inline=true) | safe }}</p>
</hgroup>
</header>
{{ section.content | safe }}
{% endblock content %}
</main>
<footer>
This site was built with <a href="https://www.getzola.org/">Zola</a>.
The <a href="{{ config.extra.repository }}">code</a> is licensed under
<a href="/LICENSE-{{ config.extra.license }}.txt">{{ config.extra.license }}</a>.
</footer>
</body>
</html>
|