Photos WIP
This commit is contained in:
parent
f74c647fb3
commit
6a750eafb1
4 changed files with 119 additions and 72 deletions
|
@ -5,11 +5,9 @@
|
|||
{{ define "main" }}
|
||||
<section class="photos">
|
||||
<ul class="grid">
|
||||
{{- range .Pages -}}
|
||||
{{- $thumbnailResource := (index (.Resources.ByType "image") 0) -}}
|
||||
{{- $thumbnail := $thumbnailResource.Fit "600x600" -}}
|
||||
{{- $thumbnail := $thumbnail.Crop "600x600" -}}
|
||||
<li><a href="{{ .RelPermalink }}" title="{{ .Title }}"><img src="{{ $thumbnail.RelPermalink }}"></a></li>
|
||||
{{- $pages = .Paginate (first 50 .Pages.ByDate) -}}
|
||||
{{- range $pages.ByDate -}}
|
||||
{{- .Render "li_thumbnail_in_grid" -}}
|
||||
{{- end -}}
|
||||
</ul>
|
||||
</section>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue