Add portions count in ingredients
This commit is contained in:
parent
58fa5572fb
commit
dafdd206d6
3 changed files with 17 additions and 0 deletions
|
@ -1,6 +1,15 @@
|
|||
<div class="outer_ingredients">
|
||||
<div id="ingredients">
|
||||
<div class="ingred-title">Ingrédients</div>
|
||||
|
||||
{{ with .Params.portions -}}
|
||||
<div class="ingred-portions">
|
||||
pour {{ .qt }}
|
||||
{{- with .name }} {{.}}
|
||||
{{- else }} portions{{ end -}}
|
||||
</div>
|
||||
{{- end }}
|
||||
|
||||
<ul>
|
||||
{{ range $.Param "ingredients" }}
|
||||
<li>
|
||||
|
|
|
@ -66,6 +66,11 @@ body {
|
|||
font-weight: bold;
|
||||
}
|
||||
|
||||
.ingred-portions {
|
||||
text-align: right;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.ingred-qt {
|
||||
color: $ingred_qt_color;
|
||||
}
|
||||
|
|
|
@ -50,6 +50,9 @@ body {
|
|||
#ingredients .ingred-title {
|
||||
font-size: 1.3em;
|
||||
font-weight: bold; }
|
||||
#ingredients .ingred-portions {
|
||||
text-align: right;
|
||||
font-style: italic; }
|
||||
#ingredients .ingred-qt {
|
||||
color: #efc586; }
|
||||
#ingredients ul {
|
||||
|
|
Loading…
Reference in a new issue