2022-12-03 15:27:03 +00:00
|
|
|
{{ define "title" }}
|
2022-12-04 18:55:20 +00:00
|
|
|
{{ .Title }} · {{ .Site.Title }}
|
2022-12-03 15:27:03 +00:00
|
|
|
{{ end }}
|
|
|
|
{{ define "content" }}
|
|
|
|
|
|
|
|
<div class="container" itemscope itemtype="http://schema.org/Recipe">
|
|
|
|
<article class="post-content px2">
|
|
|
|
<!-- call up the main recipe title and content -->
|
|
|
|
<header class="post-header">
|
|
|
|
<h1 class="post-title center m1 sm-mt3" itemprop="name">{{ .Title }}</h1>
|
|
|
|
</header>
|
|
|
|
|
2022-12-04 18:55:20 +00:00
|
|
|
<div class="recipe-source center">
|
|
|
|
<div class="clearfix mt3">
|
2022-12-10 17:18:10 +00:00
|
|
|
Published: {{ .PublishDate.Format "January 2, 2006" }}
|
|
|
|
{{ if ne .PublishDate .Lastmod }}
|
|
|
|
• Last Updated: {{ .Lastmod.Format "January 2, 2006" }}
|
|
|
|
{{ end }}
|
2022-12-04 18:55:20 +00:00
|
|
|
</div>
|
|
|
|
<div class="clearfix mt3">
|
|
|
|
Chef:
|
|
|
|
{{ if .Params.authorurl }}<a href="{{ .Params.authorurl }}">{{ .Params.AuthorName }}</a>{{ else }}{{ .Params.AuthorName }}{{ end }}
|
|
|
|
{{ if .Params.Category }} • {{ end }}
|
|
|
|
Category: <a href="{{ ( printf "category/%s/" ( .Params.Category | urlize ) ) | relLangURL }}"><span itemprop="recipeCategory">{{ .Params.Category | humanize }}</span></a>
|
|
|
|
{{ if .Params.Cuisine }} • {{ end }}
|
|
|
|
Cuisine: <a href="{{ ( printf "cuisine/%s/" ( .Params.Cuisine | urlize ) ) | relLangURL }}"><span itemprop="recipeCuisine">{{ .Params.Cuisine | humanize }}</span></a>
|
2022-12-03 15:27:03 +00:00
|
|
|
|
|
|
|
</div>
|
2022-12-04 18:55:20 +00:00
|
|
|
<div class="clearfix mt3">
|
|
|
|
{{ with .Params.Tags }}{{ partial "taxonomy/tags" . }}{{ end }}
|
2022-12-03 15:27:03 +00:00
|
|
|
</div>
|
2022-12-04 18:55:20 +00:00
|
|
|
{{ if (or (or .Params.yield .Params.prepTime) .Params.cookTime) }}
|
|
|
|
<div class="clearfix mt3">
|
|
|
|
{{ if .Params.yield }}Yields: {{ .Params.yield }}{{ end }}
|
|
|
|
{{ if (and .Params.prepTime .Params.yield) }} • {{ end }}
|
|
|
|
{{ if .Params.prepTime }}Prep Time: {{ .Params.prepTime }}{{ end }}
|
|
|
|
{{ if (and .Params.cookTime (or .Params.yield .Params.prepTime)) }} • {{ end }}
|
|
|
|
{{ if .Params.cookTime }}Cook Time: {{ .Params.cookTime }}{{ end }}
|
2022-12-03 15:27:03 +00:00
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
|
2022-12-10 17:18:10 +00:00
|
|
|
{{ if .Params.changelog }}
|
|
|
|
<div class="px2 mt3 clearfix center">
|
|
|
|
<div class="sm-col-8 mx-auto" itemprop="description">
|
|
|
|
<h3 class="blue mt0 mb2 xs-center">Changelog</h3>
|
|
|
|
<dl>
|
|
|
|
{{ range .Params.changelog }}
|
|
|
|
<dt>{{ .changedate }}</dt>
|
|
|
|
<dd>{{ .change }}</dd>
|
|
|
|
{{ end }}
|
|
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
|
2022-12-03 15:27:03 +00:00
|
|
|
<!-- call up recipe and directions -->
|
|
|
|
<div class="clearfix mt3">
|
|
|
|
<div class="sm-col sm-col-6 lg-col-6 recipeItems">
|
|
|
|
{{ with .Params.Ingredients }}
|
|
|
|
<h4 class="blue mt0 mb2 xs-center">{{ i18n "ingredients" }}</h4>
|
|
|
|
<ul itemprop="ingredients">
|
|
|
|
<!-- list ingredients that make up recipe -->
|
|
|
|
{{ range . }}
|
|
|
|
<li itemprop="recipeIngredient">
|
|
|
|
{{ with ( . | markdownify) }}{{ partial "recipe_item.html" . }}{{ end }}
|
|
|
|
</li>
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
2022-12-04 20:35:37 +00:00
|
|
|
</div>
|
2022-12-03 15:27:03 +00:00
|
|
|
|
2022-12-04 20:35:37 +00:00
|
|
|
{{ if .Params.directions }}
|
|
|
|
<div class="clearfix mt3">
|
2022-12-03 15:27:03 +00:00
|
|
|
<div class="sm-col sm-col-6 lg-col-6 recipeItems">
|
|
|
|
<h4 class="blue mt0 mb2 xs-center">{{ i18n "directions" }}</h4>
|
|
|
|
<ul itemprop="recipeInstructions">
|
2022-12-04 20:35:37 +00:00
|
|
|
{{ range .Params.Directions }}
|
2022-12-03 15:27:03 +00:00
|
|
|
<li>
|
2022-12-04 18:55:20 +00:00
|
|
|
{{ with ( . | markdownify) }}{{ partial "recipe_item.html" . }}{{ end }}
|
|
|
|
</li>
|
2022-12-03 15:27:03 +00:00
|
|
|
{{ end }}
|
|
|
|
</ul>
|
2022-12-04 20:35:37 +00:00
|
|
|
</div>
|
2022-12-03 15:27:03 +00:00
|
|
|
</div>
|
2022-12-04 18:55:20 +00:00
|
|
|
{{ end }}
|
2022-12-03 15:27:03 +00:00
|
|
|
<!-- end recipe and directions -->
|
|
|
|
|
2022-12-03 21:27:54 +00:00
|
|
|
<div class="px2 mt3 clearfix">
|
|
|
|
<div class="sm-col-8 mx-auto" itemprop="description">{{.Content}}</div>
|
|
|
|
</div>
|
|
|
|
|
2022-12-04 18:55:20 +00:00
|
|
|
{{ if .Params.inspiration }}
|
|
|
|
<h3 class="blue mt0 mb2 xs-center center">Inspiration & Resources</h3>
|
|
|
|
{{ range .Params.inspiration }}
|
|
|
|
<ul class="center">
|
|
|
|
{{ if .url }}
|
2022-12-04 20:10:27 +00:00
|
|
|
<li><a href="{{ .url | safeURL }}" target="_blank" rel="noopener me">{{ .title }}</a></li>
|
2022-12-04 18:55:20 +00:00
|
|
|
{{ else }}
|
|
|
|
<li>{{ .title }}</li>
|
2022-12-03 15:27:03 +00:00
|
|
|
{{ end }}
|
2022-12-04 18:55:20 +00:00
|
|
|
</ul>
|
2022-12-03 15:27:03 +00:00
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
|
2022-12-04 18:55:20 +00:00
|
|
|
<!-- call up the image and image credit link -->
|
|
|
|
{{ if .Params.image }}
|
2022-12-03 21:27:54 +00:00
|
|
|
<div class="xs-p2 center">
|
2022-12-04 18:55:20 +00:00
|
|
|
<figure itemprop="associatedMedia" itemscope itemtype="http://schema.org/ImageObject">
|
2022-12-04 16:05:38 +00:00
|
|
|
{{ with .Resources.GetMatch .Params.Image }}
|
2022-12-04 18:55:20 +00:00
|
|
|
{{ with .Fit "1000x1000" }}
|
|
|
|
<img itemprop="image" src="{{ .RelPermalink }}" {{ if .Params.imagecaption }}alt="{{.Params.imagecaption}}" {{ end }} style="max-width:75%" />
|
|
|
|
{{ end }}
|
2022-12-04 16:05:38 +00:00
|
|
|
{{ end }}
|
2022-12-03 21:27:54 +00:00
|
|
|
{{ if .Params.imagecaption }}
|
2022-12-04 18:55:20 +00:00
|
|
|
<figcaption>
|
|
|
|
<p><b>Pictured:</b> {{ .Params.imagecaption }}</p>
|
|
|
|
</figcaption>
|
2022-12-03 21:27:54 +00:00
|
|
|
{{ end }}
|
|
|
|
</figure>
|
2022-12-03 15:27:03 +00:00
|
|
|
</div>
|
2022-12-04 18:55:20 +00:00
|
|
|
{{ end }}
|
2022-12-03 15:27:03 +00:00
|
|
|
</article>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|