summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2023-03-15 15:20:57 +0100
committerPatrick Spek <p.spek@tyil.nl>2023-03-15 15:20:57 +0100
commitedc1f4261cdbfe15f6680cb5a38abc4f09df1a4e (patch)
tree3182f3846a710fdef9363ee50c5b8d06814e5547 /layouts
parent4f93698b16a5f22a29f086296425c63907f7bfec (diff)
Overhaul cookbook index
Diffstat (limited to 'layouts')
-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 1a6bdf9..de18df0 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 | plainify }}
- {{- 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 href="{{ .Permalink }}">{{ .Title }}</a>
+ </h2>
+ <ul class="taglist">
+ {{- range sort .Params.tags }}
+ <li><a class="tag" href="/tags/{{ . | lower }}">{{ . }}</a></li>
+ {{- end }}
+ </ul>
+ {{ .Content }}
+ </div>
+</section>
+{{- end }}
{{- end }}