Photos page styles
- Create items in the grid for the month and year - Use child selectors where possible - fix the layout
This commit is contained in:
parent
660a1a79b5
commit
1e8b80481e
2 changed files with 56 additions and 24 deletions
|
@ -4,13 +4,14 @@
|
|||
|
||||
{{ define "main" }}
|
||||
{{- $pages := (.Paginate (first 50 (.Pages.GroupByDate "January 2006"))).PageGroups -}}
|
||||
{{ $pages := .Pages.ByDate.GroupByDate "Jan 2006" }}
|
||||
{{- range $pages -}}
|
||||
<h6>{{ .Key | title }}</h6>
|
||||
<ul class="grid">
|
||||
{{- range .Pages -}}
|
||||
{{- .Render "li_thumbnail_in_grid" -}}
|
||||
{{- end -}}
|
||||
</ul>
|
||||
<div>
|
||||
<h6><span>{{ .Key | title }}</span></h6>
|
||||
</div>
|
||||
{{- range .Pages -}}
|
||||
{{- .Render "li_thumbnail_in_grid" -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{ end }}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue