site/_zola/templates/index.html
zayd 9b9fdff01c New post, general site updates, now hopefully valid XHTML
Signed-off-by: zayd <zayd@disroot.org>
2025-03-24 08:21:27 -04:00

49 lines
1.8 KiB
HTML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{{ lang }}" lang="{{ lang }}">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, viewport-fit=cover" />
{% block title %}
<title>{{ config.title }}</title>
{% endblock title %}
<link rel="stylesheet" href="/assets/css/main.css" />
{% if config.generate_feed %}
<link rel="alternate"
type={% if config.feed_filenames == "atom.xml" %}"application/atom+xml"{% else %}"application/rss+xml"{% endif %}
title="Atom"
href="{{ get_url(path=config.feed_filenames[0]) | safe }}" />
<link rel="alternate"
type={% if config.feed_filenames == "rss.xml" %}"application/rss+xml"{% else %}"application/rss+xml"{% endif %}
title="RSS"
href="{{ get_url(path=config.feed_filenames[1]) | safe }}" />
{% endif %}
</head>
<body>
<div class="navbar">
<h1 class="title"><a href="/">wanderlost</a></h1>
<a href="/blog/">index</a>
<a href="/blog/atom.xml">atom</a>
<a href="/blog/rss.xml">rss</a>
</div>
<div class="main">
<hr />
{% block content %}
<div class="posts">
{% for page in section.pages %}
<h3 class="post-title">
{{ page.date | date(format="%Y-%m-%d") }} -
<a href="{{ page.permalink | safe }}">
{{ page.title | safe }}
</a>
</h3>
<p>{{ page.description }}</p>
{% endfor %}
</div>
{% endblock content %}
</div>
</body>
</html>