diff options
author | Derek Severin <severinderek@gmail.com> | 2018-09-10 10:13:58 +0300 |
---|---|---|
committer | Derek Severin <severinderek@gmail.com> | 2018-09-10 10:13:58 +0300 |
commit | ea6fa8bbc08508cd145b618fa0fe75823805e0e6 (patch) | |
tree | e63ada6e970df8d9b86041c4c22cc33c6a6b3390 /layouts/_default/single.html | |
parent | 4dc67cffa49f060841d1e72f59a799883d0a6bba (diff) |
First commit
Diffstat (limited to 'layouts/_default/single.html')
-rw-r--r-- | layouts/_default/single.html | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..8b606f5 --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,46 @@ +{{ define "content" }} + {{ $logos := .Resources.Match "logos/*" }} + {{ if gt (len $logos) 0 }} + <ul class="logos-list" aria-hidden="true"> + {{ range $logos }} + {{ if eq .ResourceType "image" }} + {{ $image := .Fit "64x64" }} + <li> + <figure> + <img class="logo" src="{{ $image.RelPermalink }}" alt="" title="{{ $image.Title }}"> + </figure> + </li> + {{ end }} + {{ end }} + </ul> + {{ end }} + + {{ with .Content}} + <div> + {{ . | markdownify }} + <hr> + </div> + {{ end }} + + {{ $images := .Resources.Match "images/*" }} + {{ if gt (len $images) 0 }} + <ul class="images-list" aria-hidden="true"> + {{ range $images }} + {{ if eq .ResourceType "image" }} + {{ $image := .Resize "512x" }} + <li> + <figure> + <img class="image" src="{{ $image.RelPermalink }}" alt="" title="{{ $image.Title }}"> + {{ with $image.Params.copyright }} + <figcaption class="copyright">{{ . | markdownify }}</figcaption> + {{ end }} + </figure> + </li> + {{ end }} + {{ end }} + </ul> + {{ end }} +{{ end }} + +{{ define "lists" }} +{{ end }} |