Add article in ingredients
This commit is contained in:
parent
dafdd206d6
commit
e68a971b4c
1 changed files with 5 additions and 0 deletions
|
@ -14,6 +14,11 @@
|
||||||
{{ range $.Param "ingredients" }}
|
{{ range $.Param "ingredients" }}
|
||||||
<li>
|
<li>
|
||||||
<span class="ingred-qt">{{ with .qt }}{{ . }}{{ end }}</span>
|
<span class="ingred-qt">{{ with .qt }}{{ . }}{{ end }}</span>
|
||||||
|
{{ with .article -}}
|
||||||
|
{{ . -}}
|
||||||
|
{{- if substr . -1 1 | eq "'" -}}{{ else }} {{ end -}}
|
||||||
|
{{/* ^^^ No space only if article ends with an apostrophe */}}
|
||||||
|
{{- end -}}
|
||||||
<span class="ingred-name">{{ .name }}</span>
|
<span class="ingred-name">{{ .name }}</span>
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in a new issue