2024-07-02 01:06:25 +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>{{.name}}</title>
|
2024-07-03 19:55:41 +01:00
|
|
|
<link rel="icon" type="image/png" href="{{.relpath}}favicon.png" />
|
|
|
|
<link rel="stylesheet" type="text/css" href="{{.relpath}}style.css" />
|
2024-07-02 01:06:25 +01:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<h1>{{.name}}</h1>
|
|
|
|
|
2024-07-03 19:41:28 +01:00
|
|
|
{{$recipeImage := recipeImage .path}}
|
|
|
|
{{if ne $recipeImage ""}}
|
|
|
|
<img class="recipeimage" src="{{$recipeImage}}" />
|
|
|
|
{{end}}
|
|
|
|
|
2024-07-06 05:56:57 +01:00
|
|
|
{{if ne (len .recipe.Metadata) 0}}
|
2024-07-02 01:06:25 +01:00
|
|
|
<ul>
|
2024-07-06 05:56:57 +01:00
|
|
|
{{$m := .recipe.Metadata}}
|
|
|
|
{{$nameKey := .nameKey}}
|
|
|
|
{{range $k := sortedMetadataKeys $m}}
|
|
|
|
{{if ne $k $nameKey}}
|
|
|
|
<li><em>{{$k}}:</em> {{index $m $k}}</li>
|
|
|
|
{{end}}
|
2024-07-02 01:06:25 +01:00
|
|
|
{{end}}
|
|
|
|
</ul>
|
|
|
|
{{end}}
|
|
|
|
|
2024-07-03 19:41:28 +01:00
|
|
|
{{recipeSteps .recipe .path}}
|
2024-07-06 05:56:57 +01:00
|
|
|
|
|
|
|
<h2>{{.ingredientsTitle}}</h2>
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
{{range .recipe.Steps}}
|
|
|
|
{{range .Ingredients}}
|
|
|
|
<li>{{.Name}} ({{.Amount.QuantityRaw}}{{if ne .Amount.Unit ""}} {{.Amount.Unit}}{{end}})</li>
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
</ul>
|
2024-07-02 01:06:25 +01:00
|
|
|
</body>
|
|
|
|
</html>
|