culinary.kemonine.info/themes/gochowdown/layouts/notes/single.html

59 lines
1.7 KiB
HTML

{{ 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 -->
{{ if .Params.image }}
<div class="xs-p2 center">
<figure itemprop="associatedMedia" itemscope itemtype="http://schema.org/ImageObject">
<img itemprop="image" src="{{ .Params.image }}" {{ if .Params.imagecaption }}alt="{{.Params.imagecaption}}"{{ end }} style="max-width:480px"/>
{{ if .Params.imagecaption }}
<figcaption><p><b>Pictured:</b> {{ .Params.imagecaption }}</p></figcaption>
{{ end }}
</figure>
</div>
{{ end }}
<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>
<div class="px2 mt3 clearfix">
<div class="sm-col-8 mx-auto" itemprop="description">{{.Content}}</div>
</div>
<br />
<div class="recipe-source">
<p>Chef:
{{if .Params.authorurl }}
<a href="{{.Params.authorurl}}">{{.Params.AuthorName}}</a>
{{else}}
{{.Params.AuthorName}}
{{end}}
{{ if .Params.inspiration }}
<p>Inspiration & Resources</p>
{{ range .Params.inspiration }}
<ul>
{{ if .url }}
<li><a href="{{ .URL }}">{{ .title }}</a></li>
{{ else }}
<li>{{ .title }}</li>
{{ end }}
</ul>
{{ end }}
{{ end }}
{{ with .Params.Category }}{{ partial "taxonomy/notes" . }}{{ end }}
{{ with .Params.Tags }}{{ partial "taxonomy/tags" . }}{{ end }}
</div>
</article>
</div>
{{ end }}