From e68a971b4c9f878e60fa9f7125f329a1f63952b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophile=20Bastian?= Date: Mon, 13 May 2019 13:45:25 +0200 Subject: [PATCH] Add article in ingredients --- layouts/partials/ingredients.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/layouts/partials/ingredients.html b/layouts/partials/ingredients.html index 0c41d26..99e6940 100644 --- a/layouts/partials/ingredients.html +++ b/layouts/partials/ingredients.html @@ -14,6 +14,11 @@ {{ range $.Param "ingredients" }}
  • {{ with .qt }}{{ . }}{{ end }} + {{ with .article -}} + {{ . -}} + {{- if substr . -1 1 | eq "'" -}}{{ else }} {{ end -}} + {{/* ^^^ No space only if article ends with an apostrophe */}} + {{- end -}} {{ .name }}
  • {{ end }}