2022-12-03 16:41:20 +00:00
|
|
|
{{ define "title" }}
|
|
|
|
{{ .Title }} · {{ .Site.Title }}
|
|
|
|
{{ end }}
|
|
|
|
{{ define "content" }}
|
|
|
|
|
|
|
|
<div class="container" itemscope itemtype="http://schema.org/Recipe">
|
|
|
|
<!-- call up the image and image credit link -->
|
|
|
|
<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-03 21:27:54 +00:00
|
|
|
<div class="recipe-source">
|
|
|
|
<div class="clearfix mt3">
|
|
|
|
Chef:
|
|
|
|
{{if .Params.authorurl }}
|
|
|
|
<a href="{{.Params.authorurl}}">{{.Params.AuthorName}}</a>
|
|
|
|
{{else}}
|
|
|
|
{{.Params.AuthorName}}
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{ with .Params.Category }}{{ partial "taxonomy/notes" . }}{{ end }}
|
|
|
|
{{ with .Params.Tags }}{{ partial "taxonomy/tags" . }}{{ end }}
|
|
|
|
</div>
|
|
|
|
|
2022-12-03 16:41:20 +00:00
|
|
|
<div class="px2 mt3 clearfix">
|
|
|
|
<div class="sm-col-8 mx-auto" itemprop="description">{{.Content}}</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
2022-12-03 20:26:33 +00:00
|
|
|
{{ if .Params.inspiration }}
|
2022-12-03 21:27:54 +00:00
|
|
|
<div class="px2 mt3 clearfix"><div class="sm-col-8 mx-auto" itemprop="description">
|
|
|
|
<h3 class="blue mt0 mb2 xs-center">Inspiration & Resources</h3>
|
2022-12-03 20:26:33 +00:00
|
|
|
{{ range .Params.inspiration }}
|
2022-12-03 21:27:54 +00:00
|
|
|
<ul class="recipe-source">
|
2022-12-03 20:26:33 +00:00
|
|
|
{{ if .url }}
|
|
|
|
<li><a href="{{ .URL }}">{{ .title }}</a></li>
|
|
|
|
{{ else }}
|
|
|
|
<li>{{ .title }}</li>
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
2022-12-03 21:27:54 +00:00
|
|
|
</div></div>
|
2022-12-03 16:41:20 +00:00
|
|
|
|
|
|
|
</div>
|
2022-12-03 21:27:54 +00:00
|
|
|
|
|
|
|
<!-- call up the image and image credit link -->
|
|
|
|
{{ if .Params.image }}
|
|
|
|
<div class="xs-p2 center">
|
|
|
|
<figure itemprop="associatedMedia" itemscope itemtype="http://schema.org/ImageObject">
|
2022-12-04 16:05:38 +00:00
|
|
|
{{ with .Resources.GetMatch .Params.Image }}
|
|
|
|
{{ with .Fit "1000x1000" }}
|
|
|
|
<img itemprop="image" src="{{ .RelPermalink }}" {{ if .Params.imagecaption }}alt="{{.Params.imagecaption}}"{{ end }} style="max-width:75%"/>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
2022-12-03 21:27:54 +00:00
|
|
|
{{ if .Params.imagecaption }}
|
|
|
|
<figcaption><p><b>Pictured:</b> {{ .Params.imagecaption }}</p></figcaption>
|
|
|
|
{{ end }}
|
|
|
|
</figure>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
2022-12-03 16:41:20 +00:00
|
|
|
</article>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|