diff options
author | Michał Sapka <michal@sapka.me> | 2023-01-02 22:15:10 +0100 |
---|---|---|
committer | Michał Sapka <michal@sapka.me> | 2023-01-02 22:15:10 +0100 |
commit | 98c04aa1e19e9391a19daf903a024e7ebeaeb36b (patch) | |
tree | fbc4a9729a479331f0b33fb613250dad619c95ec /layouts/_default/list.html | |
parent | 679e6588d1ef6709f9e579f8ab2fa1b3ad2ac9d8 (diff) |
feat: blank based on memes
Diffstat (limited to 'layouts/_default/list.html')
-rw-r--r-- | layouts/_default/list.html | 12 |
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 }} |