- Create items in the grid for the month and year - Use child selectors where possible - fix the layout
20 lines
476 B
HTML
20 lines
476 B
HTML
{{ define "header" }}
|
|
{{ partial "header.html" . }}
|
|
{{ end }}
|
|
|
|
{{ define "main" }}
|
|
{{- $pages := (.Paginate (first 50 (.Pages.GroupByDate "January 2006"))).PageGroups -}}
|
|
{{ $pages := .Pages.ByDate.GroupByDate "Jan 2006" }}
|
|
{{- range $pages -}}
|
|
<div>
|
|
<h6><span>{{ .Key | title }}</span></h6>
|
|
</div>
|
|
{{- range .Pages -}}
|
|
{{- .Render "li_thumbnail_in_grid" -}}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
{{ end }}
|
|
|
|
{{ define "footer" }}
|
|
{{ partial "footer.html" . }}
|
|
{{ end }}
|