diff options
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 00000000..cc3addd5 --- /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 }} |