From dafdd206d60a25290e1cb6534285271925235d3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophile=20Bastian?= Date: Mon, 13 May 2019 13:43:42 +0200 Subject: [PATCH] Add portions count in ingredients --- layouts/partials/ingredients.html | 9 +++++++++ scss/style.scss | 5 +++++ static/css/style.css | 3 +++ 3 files changed, 17 insertions(+) diff --git a/layouts/partials/ingredients.html b/layouts/partials/ingredients.html index 29d54f6..0c41d26 100644 --- a/layouts/partials/ingredients.html +++ b/layouts/partials/ingredients.html @@ -1,6 +1,15 @@
Ingrédients
+ + {{ with .Params.portions -}} +
+ pour {{ .qt }} + {{- with .name }} {{.}} + {{- else }} portions{{ end -}} +
+ {{- end }} +
    {{ range $.Param "ingredients" }}
  • diff --git a/scss/style.scss b/scss/style.scss index 0eabe76..c6ade39 100644 --- a/scss/style.scss +++ b/scss/style.scss @@ -66,6 +66,11 @@ body { font-weight: bold; } + .ingred-portions { + text-align: right; + font-style: italic; + } + .ingred-qt { color: $ingred_qt_color; } diff --git a/static/css/style.css b/static/css/style.css index 122da7e..00401e7 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -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 {