Generate an index of the recipes

This commit is contained in:
Miguel de la Cruz 2024-07-06 06:23:32 +02:00
parent 482859f212
commit 055358f2db
5 changed files with 42 additions and 3 deletions

21
templates/index.html.tmpl Normal file
View file

@ -0,0 +1,21 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>{{.title}}</title>
<link rel="icon" type="image/png" href="{{.relpath}}favicon.png" />
<link rel="stylesheet" type="text/css" href="{{.relpath}}style.css" />
</head>
<body>
<h1>{{.title}}</h1>
{{if ne (len .recipes) 0}}
<ul>
{{range .recipes}}
<li><a href="{{.Path}}">{{.Name}}</a></li>
{{end}}
</ul>
{{end}}
</body>
</html>

View file

@ -10,7 +10,7 @@ body {
.cookware {
font-weight: bold;
color: red;
color: brown;
}
.timer {