35 lines
1.1 KiB
HTML
35 lines
1.1 KiB
HTML
{{ define "main" }}
|
|
<div class="home content">
|
|
<section class="sidebar">
|
|
<h3>Tags</h3>
|
|
<ul class="sidebar-list">{{ range $name, $taxonomy := .Site.Taxonomies.tags }}
|
|
{{ with $.Site.GetPage (printf "/tags/%s" $name) }}
|
|
<li class="tag-list-item">
|
|
<a class="tag-link" href="{{ .Permalink }}">{{ $name }}</a>
|
|
</li>
|
|
{{ end }}
|
|
{{ end }}
|
|
</ul>
|
|
</section>
|
|
<section class="primary list h-feed">
|
|
{{ range (where .Site.RegularPages "Section" "recipes") }}
|
|
<article class="post h-entry">
|
|
<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=" summary p-summary">{{ .Description | truncate 200}}</p>
|
|
<a class="link" href="{{ .RelPermalink }}">Read the full recipe<span class="arrow"> →</span></a>
|
|
</div>
|
|
</article>
|
|
{{ end }}
|
|
</section>
|
|
</div>
|
|
{{ end }}
|