templates: use inheritance
This commit is contained in:
parent
3d3f0b0012
commit
f813ae5ac3
3 changed files with 33 additions and 34 deletions
|
@ -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%}
|
Loading…
Add table
Add a link
Reference in a new issue