From 568553394d0a8b34668a75c9839a0f1f426469b2 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Sun, 6 Oct 2019 21:10:46 +0200 Subject: theme: Switch to docsy theme --- themes/docsy/layouts/blog/list.html | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 themes/docsy/layouts/blog/list.html (limited to 'themes/docsy/layouts/blog/list.html') diff --git a/themes/docsy/layouts/blog/list.html b/themes/docsy/layouts/blog/list.html new file mode 100644 index 0000000..1480cfc --- /dev/null +++ b/themes/docsy/layouts/blog/list.html @@ -0,0 +1,36 @@ +{{ define "main" }} +{{ if .Parent.IsHome }} +{{ $.Scratch.Set "blog-pages" (where .Site.RegularPages "Section" .Section) }} +{{ else }} +{{$.Scratch.Set "blog-pages" .Pages }} +{{ end }} +{{ $pag := .Paginate (( $.Scratch.Get "blog-pages").GroupByDate "2006")}} +{{ $pageGroups := $pag.PageGroups}} +{{ if eq $pag.PageNumber 1 }} +{{ end }} +
+
+ {{ range $pageGroups }} +

{{ T "post_posts_in" }} {{ .Key }}

+
    + {{ range .Pages }} +
  • +
    +
    {{ .LinkTitle }}
    +

    {{ .Date.Format ($.Param "time_format_blog") }} {{ T "ui_in"}} {{ .CurrentSection.LinkTitle }}

    + {{ partial "featured-image.html" (dict "p" . "w" 250 "h" 125 "class" "float-left mr-3 pt-1 d-none d-md-block") }} +

    {{ .Plain | safeHTML | truncate 250 }}

    +

    {{ T "ui_read_more"}}

    +
    +
  • + {{ end }} +
+ {{ end }} +
+
+
+
+ {{ template "_internal/pagination.html" . }} +
+
+{{ end }} \ No newline at end of file -- cgit v1.2.3