Compare commits

..

2 commits

3 changed files with 38 additions and 6 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 673 KiB

View file

@ -0,0 +1,34 @@
+++
title = "Spice Mix Recipes"
author = ["KemoNine"]
publishDate = 2022-12-04
tags = ["Spice", "Mexican", "SouthWestUSA"]
draft = false
layout="recipe"
image="andy-holmes-mTqGgeYkfaY-unsplash.jpg"
imagecaption="A bowl with powdered spices and a dried bay leaf on top. The image was obtained from Unsplash at https://unsplash.com/photos/mTqGgeYkfaY"
date="2022-12-04"
AuthorName="KemoNine"
AuthorURL="https://culinary.kemonine.info"
category="Spice"
cuisine="Spice"
[[inspiration]]
title="The Spice House"
url="https://www.thespicehouse.com"
+++
## Chili Powder {#chili-powder}
- 2 tbsp Paprika
- 2 tsp oregano
- 1 tsp cumin
- 1 tsp garlic powder
- 1/8 - 1/2 tsp cayenne
## Sort of Chilli Powder {#sort-of-chilli-powder}
- 1/2 tsp cumin
- 1/4 tsp smokey paprika
- 1/4 tsp celery seed
- 1/4 tsp ancho chilli powder

View file

@ -1,16 +1,14 @@
<div class="tags"> <div class="tags">
<p class="clearfix">Tags: <p class="clearfix">Tags:
{{ if (isset . 0) }} {{/* Hack to check if this is an array https://discourse.gohugo.io/t/how-to-check-if-a-variable-is-string-or-array/7460/7 */}} {{ if (isset . 0) }} {{/* Hack to check if this is an array https://discourse.gohugo.io/t/how-to-check-if-a-variable-is-string-or-array/7460/7 */}}
{{ $humanized := apply . "humanize" "." }} {{ range first 1 . }}
{{ $sorted := sort $humanized }}
{{ range first 1 $sorted }}
<a href="{{ ( printf "tags/%s/" ( . | urlize | lower ) ) | relLangURL }}"><span itemprop="keyword">{{ . }}</span></a> <a href="{{ ( printf "tags/%s/" ( . | urlize | lower ) ) | relLangURL }}"><span itemprop="keyword">{{ . }}</span></a>
{{ end }} {{ end }}
{{ range after 1 $sorted }} {{ range after 1 . }}
&bull; <a href="{{ ( printf "tags/%s/" ( . | urlize | lower ) ) | relLangURL }}"><span itemprop="keyword">{{ . }}</span></a> &bull; <a href="{{ ( printf "tags/%s/" ( . | urlize | lower ) ) | relLangURL }}"><span itemprop="keyword">{{ . }}</span></a>
{{ end }} {{ end }}
{{ else }} {{ else }}
<a href="{{ ( printf "tags/%s/" ( . | urlize | lower ) ) | relLangURL }}"><span itemprop="keyword">{{ . | humanize }}</span></a> <a href="{{ ( printf "tags/%s/" ( . | urlize ) ) | relLangURL }}"><span itemprop="keyword">{{ . }}</span></a>
{{ end }} {{ end }}
</p> </p>
</div> </div>