Initial commit
This commit is contained in:
commit
70b8cdb514
7 changed files with 260 additions and 0 deletions
23
templates/recipe.html.tmpl
Normal file
23
templates/recipe.html.tmpl
Normal file
|
@ -0,0 +1,23 @@
|
|||
<!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>
|
||||
|
||||
{{if ne (len .recipe.Steps) 0}}
|
||||
<ul>
|
||||
{{range $k, $v := .recipe.Metadata}}
|
||||
<li><em>{{$k}}:</em> {{$v}}</li>
|
||||
{{end}}
|
||||
</ul>
|
||||
{{end}}
|
||||
|
||||
{{recipeSteps .recipe}}
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue