Draw the rest of the fucking owl
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
7
layouts/gallery/list.html
Normal file
7
layouts/gallery/list.html
Normal file
@@ -0,0 +1,7 @@
|
||||
{{ define "main" }}
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ .Content }}
|
||||
<div class="image-grid">
|
||||
{{ partial "gallery.html" . }}
|
||||
</div>
|
||||
{{ end }}
|
18
layouts/gallery/single.html
Normal file
18
layouts/gallery/single.html
Normal file
@@ -0,0 +1,18 @@
|
||||
{{ define "main" }}
|
||||
<h1>{{ .Title }}</h1>
|
||||
|
||||
<div>
|
||||
{{ .Date | time.Format ":date_medium" }}
|
||||
</div>
|
||||
|
||||
{{ if and (isset .Params "image") .Params.image }}
|
||||
{{ $image := .Page.Resources.GetMatch .Params.image }}
|
||||
{{ with $image }}
|
||||
{{ $thumb := .Resize "1000x" }}
|
||||
{{ printf `<img src="%s" alt="%s" class="img-responsive gallery-image">` $thumb.RelPermalink .Title | safeHTML }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ .Content }}
|
||||
{{ partial "comments.html" . }}
|
||||
{{ end }}
|
Reference in New Issue
Block a user