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

github.com/heyeshuang/hugo-theme-tokiwa.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/list.html')
-rwxr-xr-xlayouts/_default/list.html35
1 files changed, 32 insertions, 3 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index b6c7f8f..06a293e 100755
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -4,11 +4,40 @@
{{- .Content -}}
</section>
<section>
- {{ range .Paginator.Pages }}
+ {{ range (.Paginator 25).Pages.GroupByDate "2006" }}
+ <!-- <hr class="pt-4" /> -->
+ <section class="flex flex-col md:flex-row items-start justify-between">
+ <div class="pl-4 pb-2 md:sticky top-0 order-1 md:order-2">
+ <h2 class="">{{ .Key }}</h2>
+ </div>
+ <ul class="order-2 md:order-1">
+ {{ range .Pages }}
+ <div>
+ <div>
+ <a href="{{ .Permalink }}">
+ {{ .Title }}
+ </a>
+ </div>
+ {{ with .Description }}
+ <div>{{.}}</div>
+ {{ end }}
+ </div>
+ {{ end }}
+ </ul>
+ </section>
+ {{ end }}
+ <!-- {{ range .Paginator.Pages }}
<div>
- {{- partial "summary.html" . -}}
+ <div>
+ <a href="{{ .Permalink }}">
+ {{ .Title }}
+ </a>
+ </div>
+ {{ with .Description }}
+ <div>{{.}}</div>
+ {{ end }}
</div>
- {{ end }}
+ {{ end }} -->
</section>
</article>
{{ end }}