switch templating to tera

This commit is contained in:
nora 2024-01-21 21:58:02 +01:00
parent 2d2c820510
commit fa7baa71cc
8 changed files with 603 additions and 151 deletions

View file

@ -131,7 +131,7 @@
if (ev.keyCode === B) {
isBKeyDown = true;
blog.classList.add("blog-back-alley");
blog.href = "/back-alley.html";
blog.href = "/" + "{{ back_alley_name }}";
blog.children[0].innerText = "blog?";
}
});

View file

@ -0,0 +1,25 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="/static/theme.css" />
<title>Slides</title>
</head>
<body>
<div class="main-content">
<div class="main-content-inner">
<h1>slides</h1>
<p>slides from talks that i have given</p>
{% for talk in talks %}
<div>
<h2>{{ talk.date }} - {{ talk.name }}</h2>
<p>{{ talk.location }}</p>
<a href="{{ talk.dir_name }}">{{ talk.dir_name }}</a>
</div>
{% endfor %}
</div>
</div>
</body>
</html>