Draw the rest of the fucking owl
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
17
layouts/partials/gallery.html
Normal file
17
layouts/partials/gallery.html
Normal file
@@ -0,0 +1,17 @@
|
||||
{{ range sort .Pages "Date" "desc" }}
|
||||
{{ if not .Params.private }}
|
||||
{{ if and (isset .Params "image") .Params.image }}
|
||||
<a href="{{ .Permalink }}" title="{{ .Title }}">
|
||||
{{ $image := .Page.Resources.GetMatch .Params.image }}
|
||||
{{ with $image }}
|
||||
{{ $thumb := .Resize "400x" }}
|
||||
<img
|
||||
src="{{ $thumb.RelPermalink }}"
|
||||
alt="{{ .Title }}"
|
||||
class="img-responsive"
|
||||
/>
|
||||
{{ end }}
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
Reference in New Issue
Block a user