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.html24
1 files changed, 24 insertions, 0 deletions
diff --git a/layouts/recipes/list.html b/layouts/recipes/list.html
new file mode 100644
index 0000000..b758a2b
--- /dev/null
+++ b/layouts/recipes/list.html
@@ -0,0 +1,24 @@
+{{- define "main" }}
+<h1>{{ .Title }}</h1>
+{{ .Content }}
+{{- 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 }}