summaryrefslogtreecommitdiff
path: root/layouts/_default/list.html
diff options
context:
space:
mode:
authorMichał Sapka <michal@sapka.me>2023-01-02 22:15:10 +0100
committerMichał Sapka <michal@sapka.me>2023-01-02 22:15:10 +0100
commit98c04aa1e19e9391a19daf903a024e7ebeaeb36b (patch)
treefbc4a9729a479331f0b33fb613250dad619c95ec /layouts/_default/list.html
parent679e6588d1ef6709f9e579f8ab2fa1b3ad2ac9d8 (diff)
feat: blank based on memes
Diffstat (limited to 'layouts/_default/list.html')
-rw-r--r--layouts/_default/list.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
new file mode 100644
index 0000000..cc3addd
--- /dev/null
+++ b/layouts/_default/list.html
@@ -0,0 +1,12 @@
+{{ define "main" }}
+ {{ range where .Pages "Params.category" "meme"}}
+ <article class="list">
+ <a href="{{ .RelPermalink }}">
+ {{ $imageUrl := .Param "image" }}
+ {{ $image := resources.Get $imageUrl }}
+ {{ $image := $image.Resize "350x" }}
+ <img alt="{{ .Param "title"}}" src="{{ $image.Permalink }}" width={{ $image.Width }} height={{ $image.Height }}/>
+ </a>
+ </article>
+ {{ end }}
+{{ end }}