Compare commits

..

No commits in common. "37918c36f0fde3567a1a3c4eb5b2fc532a65a119" and "161d7186645b531db15f1707afc36c86a5e20a5a" have entirely different histories.

3 changed files with 6 additions and 38 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 673 KiB

View file

@ -1,34 +0,0 @@
+++
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,14 +1,16 @@
<div class="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 */}}
{{ range first 1 . }}
{{ $humanized := apply . "humanize" "." }}
{{ $sorted := sort $humanized }}
{{ range first 1 $sorted }}
<a href="{{ ( printf "tags/%s/" ( . | urlize | lower ) ) | relLangURL }}"><span itemprop="keyword">{{ . }}</span></a>
{{ end }}
{{ range after 1 . }}
{{ range after 1 $sorted }}
&bull; <a href="{{ ( printf "tags/%s/" ( . | urlize | lower ) ) | relLangURL }}"><span itemprop="keyword">{{ . }}</span></a>
{{ end }}
{{ else }}
<a href="{{ ( printf "tags/%s/" ( . | urlize ) ) | relLangURL }}"><span itemprop="keyword">{{ . }}</span></a>
<a href="{{ ( printf "tags/%s/" ( . | urlize | lower ) ) | relLangURL }}"><span itemprop="keyword">{{ . | humanize }}</span></a>
{{ end }}
</p>
</div>