Group photos posts by month and year
This commit is contained in:
parent
454618222d
commit
c7a792182d
1 changed files with 11 additions and 8 deletions
|
@ -3,14 +3,17 @@
|
|||
{{ end }}
|
||||
|
||||
{{ define "main" }}
|
||||
{{- $pages := (.Paginate (first 50 (.Pages.GroupByDate "January 2006"))).PageGroups -}}
|
||||
{{- range $pages -}}
|
||||
<section class="photos">
|
||||
<h6>{{ .Key | title }}</h6>
|
||||
<ul class="grid">
|
||||
{{- $pages = .Paginate (first 50 .Pages.ByDate) -}}
|
||||
{{- range $pages.ByDate -}}
|
||||
{{- range .Pages -}}
|
||||
{{- .Render "li_thumbnail_in_grid" -}}
|
||||
{{- end -}}
|
||||
</ul>
|
||||
</section>
|
||||
{{- end -}}
|
||||
{{ end }}
|
||||
|
||||
{{ define "footer" }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue