2024-07-06 05:23:32 +01:00
|
|
|
<!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>
|
2024-08-03 07:33:58 +01:00
|
|
|
<main>
|
|
|
|
<div id="content">
|
|
|
|
<h1>{{.title}}</h1>
|
2024-07-06 05:23:32 +01:00
|
|
|
|
2024-08-19 06:17:46 +01:00
|
|
|
{{$categoryMap := .categoryMap}}
|
|
|
|
{{$recipes := .recipes}}
|
|
|
|
{{range .categoryList}}
|
|
|
|
{{if (ne . "")}}
|
|
|
|
<h3>{{.}}</h3>
|
2024-08-03 07:33:58 +01:00
|
|
|
{{end}}
|
2024-08-19 06:17:46 +01:00
|
|
|
{{$recipeList := index $categoryMap .}}
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
{{range $name := $recipeList}}
|
|
|
|
<li><a href="{{index $recipes $name}}">{{$name}}</a></li>
|
|
|
|
{{end}}
|
|
|
|
</ul>
|
2024-08-03 07:33:58 +01:00
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
</main>
|
2024-07-06 05:23:32 +01:00
|
|
|
</body>
|
|
|
|
</html>
|