templates: use inheritance

This commit is contained in:
Emi Vasilek 2023-11-05 11:52:10 +01:00
parent 3d3f0b0012
commit f813ae5ac3
3 changed files with 33 additions and 34 deletions

View file

@ -1,14 +1,8 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Recipes</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/water.css@2/out/water.css">
<meta charset="utf-8">
</head>
<body>
{% extends "base.html" %}
{%block title%}Recipes{%endblock%}
{%block body %}
<h1>Recipes</h1>
{% for recipe in recipes %}
<li><a href="{{ recipe.outpath }}">{{ recipe.title }}</a></li>
{% endfor %}
</body>
</html>
{%endblock%}