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>
|
|
|
|
<link rel="icon" type="image/png" href="favicon.png" />
|
|
|
|
<link rel="stylesheet" type="text/css" href="style.css" />
|
|
|
|
</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-02 01:06:25 +01:00
|
|
|
{{if ne (len .recipe.Steps) 0}}
|
|
|
|
<ul>
|
|
|
|
{{range $k, $v := .recipe.Metadata}}
|
|
|
|
<li><em>{{$k}}:</em> {{$v}}</li>
|
|
|
|
{{end}}
|
|
|
|
</ul>
|
|
|
|
{{end}}
|
|
|
|
|
2024-07-03 19:41:28 +01:00
|
|
|
{{recipeSteps .recipe .path}}
|
2024-07-02 01:06:25 +01:00
|
|
|
</body>
|
|
|
|
</html>
|