diff options
Diffstat (limited to 'themes/itheme/layouts/posts/list.html')
| -rw-r--r-- | themes/itheme/layouts/posts/list.html | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/themes/itheme/layouts/posts/list.html b/themes/itheme/layouts/posts/list.html new file mode 100644 index 0000000..50048eb --- /dev/null +++ b/themes/itheme/layouts/posts/list.html @@ -0,0 +1,27 @@ +{{ define "main" }} +<div class="results"> + <div class="results__content"> + + {{ range (.Paginate (.Pages.GroupByDate "2006-01")).PageGroups }} + <div class="result" role="group"> + + <!-- add day manually to parse as date--> + {{ $month := printf "%s%s" .Key "-01"}} + <h2 class="result__title">{{ $month | time.Format "January 2006" }}</h2> + {{ range .Pages }} + + {{ partial "archiveItem.html" (dict "context" .) }} + + {{ end }} + + </div> + {{ end }} + </div> +</div> + +{{ partial "pagination.html" . }} + + +{{ end }} + + |
