26 lines
947 B
HTML
26 lines
947 B
HTML
{{ define "main" }}
|
|
<main class='content single-page h-feed'>
|
|
<div class="tag-title content-max-width">
|
|
<h2>Recipes tagged as {{ .Title }}</h2>
|
|
</div>
|
|
<!-- ranges through each of the content files associated with a particular taxonomy term and renders the summary.html content view -->
|
|
{{ range .Pages }}
|
|
<article class="post h-entry content-max-width">
|
|
<div class="post-image half" >
|
|
<a href="{{ .RelPermalink }}">
|
|
<img class="thumb" src="{{- .Params.thumb -}}" alt="{{ .Title }}-thumb">
|
|
</a>
|
|
</div>
|
|
<div class="half">
|
|
<header>
|
|
<h2 class="title p-name"><a class=" u-url title-link" href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
|
|
{{- partial "meta-post.html" . -}}
|
|
</header>
|
|
<p class="p-summary">{{ .Description | truncate 200}}</p>
|
|
<a class="link" href="{{ .RelPermalink }}">Read the full recipe<span class="arrow"> →</span></a>
|
|
</div>
|
|
</article>
|
|
{{ end }}
|
|
</main>
|
|
{{ end }}
|