summaryrefslogtreecommitdiff
path: root/layouts/recipes/list.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/recipes/list.html')
-rw-r--r--layouts/recipes/list.html33
1 files changed, 20 insertions, 13 deletions
diff --git a/layouts/recipes/list.html b/layouts/recipes/list.html
index 9c51074..b758a2b 100644
--- a/layouts/recipes/list.html
+++ b/layouts/recipes/list.html
@@ -1,17 +1,24 @@
{{- define "main" }}
<h1>{{ .Title }}</h1>
{{ .Content }}
-<ul>
- {{- range sort .Paginator.Pages "Title" }}
- <li>
- <a href="{{ .Permalink }}">{{ .Title }}</a>
- <small>
- {{ .Summary }}
- {{- range .Params.tags }}
- <a href="/tags/{{ . | lower }}">#{{ . }}</a>
- {{- end }}
- </small>
- </li>
- {{- end }}
-</ul>
+{{- range sort .Pages "Title" }}
+<section class="recipe">
+ <div class="preview">
+ {{- with .Params.preview }}
+ <img src="{{ .src }}" />
+ {{- end }}
+ </div>
+ <div class="description">
+ <h2>
+ <a class="p-name" href="{{ .Permalink }}">{{ .Title }}</a>
+ </h2>
+ <ul class="taglist">
+ {{- range sort .Params.tags }}
+ <li><a class="p-category tag" href="/tags/{{ . | lower }}">{{ . }}</a></li>
+ {{- end }}
+ </ul>
+ {{ .Content }}
+ </div>
+</section>
+{{- end }}
{{- end }}