~arestifo/www

ref: 251390f33a2b65b3526e4ab01aebd5433788b0b8 www/layouts/bread/single.html -rw-r--r-- 634 bytes
251390f3Alberto Restifo Feature parity 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{{ define "title" }}{{ .Title}} - Bread recipes | Alberto Restifo{{ end }}

{{ define "main" }}
<article>
  <h1>{{ .Title }}</h1>

  <h2>Ingredients</h2>

  <table class="ingredients">
    <tbody>
      {{ range $ingredient := .Params.ingredients }}
      <tr>
        <td>{{ $ingredient.quantity }}g</td>
        <td>
          <span class="ingredient-name">{{ $ingredient.name }}</span>
          {{ with $ingredient.comment }}
            <span class="ingredient-comment">{{ $ingredient.comment }}</span>
          {{ end }}
        </td>
      </tr>
      {{ end }}
    </tbody>
  </table>

  {{ .Content }}
</article> 
{{ end }}