Adds image support for both the recipe and the steps
This commit is contained in:
parent
943e9df086
commit
c251e1543d
3 changed files with 33 additions and 5 deletions
|
@ -10,6 +10,11 @@
|
|||
<body>
|
||||
<h1>{{.name}}</h1>
|
||||
|
||||
{{$recipeImage := recipeImage .path}}
|
||||
{{if ne $recipeImage ""}}
|
||||
<img class="recipeimage" src="{{$recipeImage}}" />
|
||||
{{end}}
|
||||
|
||||
{{if ne (len .recipe.Steps) 0}}
|
||||
<ul>
|
||||
{{range $k, $v := .recipe.Metadata}}
|
||||
|
@ -18,6 +23,6 @@
|
|||
</ul>
|
||||
{{end}}
|
||||
|
||||
{{recipeSteps .recipe}}
|
||||
{{recipeSteps .recipe .path}}
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue