Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/google/docsy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Zeitler <lukas_zeitler@t-online.de>2022-08-28 23:27:32 +0300
committerGeri Ochoa <gerino@protonmail.com>2022-08-31 18:16:09 +0300
commit78a9796fe8dfc72163c3a09448fcfa073050543d (patch)
treef89a934da701b4457f3c8217b4f9829dd350e98f
parentc7c3fa7f4dc2ac318c59a68187b7647aac61e84d (diff)
add 'asc' parameter to GroupByDate function call
-rw-r--r--layouts/blog/list.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/blog/list.html b/layouts/blog/list.html
index 554eaf0..c63c309 100644
--- a/layouts/blog/list.html
+++ b/layouts/blog/list.html
@@ -8,7 +8,7 @@
<div class="row">
<div class="col-12">
{{- if .Pages -}}
- {{ $pag := .Paginate (( $.Scratch.Get "blog-pages").GroupByDate "2006")}}
+ {{ $pag := .Paginate (( $.Scratch.Get "blog-pages").GroupByDate "2006" "asc" )}}
{{ range $pag.PageGroups }}
<h2>{{ T "post_posts_in" }} {{ .Key }}</h2>
<ul class="list-unstyled mt-4">