Files
recipes/src/templates/recipe.pug
T
2017-11-24 19:38:37 -08:00

58 lines
1.8 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
doctype html
html
head
link(href="../style2.css" rel="stylesheet" type="text/css")
meta(charset="UTF-8")
meta(name="viewport" content="user-scalable=no, width=device-width")
body.recipe
section.header
.image(style="background-image: url('./large.png')")
.about
h1 #{title}
.timing
if timings.prep
| prep #{timings.prep}
if timings.prep && timings.cook
| , 
if timings.cook
| cook #{timings.cook}
.icons
each icon in icons
.icon(class=icon)
if servings
.icon.serving
| × #{servings}
.description #{description}
section.instructions
- let stepNumber = 1
each step in steps
.step
h3 #{stepNumber}
.ingredients
ul
if step.ingredients
each ingredient in step.ingredients
li
.amount #{asFraction(ingredient.amount)} #{ingredient.unit}
.item #{ingredient.item}
.detail !{step.directions}
- stepNumber++
if credit
section.credits
if credit.name
| #{credit.name}
if credit.name && credit.url
| , 
if credit.url
a(href=credit.url) #{credit.url}
section.navigation
a(href="..") « Back