summaryrefslogtreecommitdiffstats
path: root/templates/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/index.html')
-rw-r--r--templates/index.html21
1 files changed, 6 insertions, 15 deletions
diff --git a/templates/index.html b/templates/index.html
index 2130278..c7e55b6 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -1,4 +1,5 @@
-{% import "macros.html" as macros -%}
+{# vim: set ft=htmldjango: #}
+{% import "macros.html" as macros %}
<!DOCTYPE html>
<html lang="en">
<head>
@@ -18,28 +19,18 @@
title="RSS"
href="{{ get_url(path="rss.xml") | safe }}" />
<link rel="stylesheet" type="text/css" href="/style.css" />
- <link rel="stylesheet"
- type="text/css"
- href="/syntax-theme-dark.css"
- media="(prefers-color-scheme: dark)" />
- <link rel="stylesheet"
- type="text/css"
- href="/syntax-theme-light.css"
- media="(prefers-color-scheme: light)" />
</head>
<body>
- <header class="banner">
+ <header>
<nav>
<h1>{{ macros::nav_item(name=config.title, url=config.base_url) }}</h1>
<ul>
{% set root = get_section(path="_index.md") %}
{% set pages = root.pages | sort(attribute="title") %}
- {% for p in pages %}
- <li>{{ macros::nav_item(name=p.title,url=p.permalink) }}</li>
- {%- endfor -%}
+ {% for p in pages %}<li>{{ macros::nav_item(name=p.title,url=p.permalink) }}</li>{% endfor %}
{% set subsections = root.subsections | sort %}
{% for p in subsections %}
- {%- set s = get_section(path=p) %}
+ {% set s = get_section(path=p) %}
<li>{{ macros::nav_item(name=s.title,url=s.permalink) }}</li>
{% endfor %}
</ul>
@@ -49,7 +40,7 @@
{% block content %}
<header>
<h1>{{ section.title | safe }}</h1>
- <h3>{{ section.description | markdown(inline=true) | safe }}</h3>
+ <h3>{{ section.description | default(value="") | markdown(inline=true) | safe }}</h3>
</header>
{{ section.content | safe }}
{% endblock content %}