From b17ccbd2fa987395d42313a81b2227f5ec8d88ac Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Sat, 28 May 2022 11:12:09 +0200 Subject: Rework the "Latest Publications" section --- layouts/index.html | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) (limited to 'layouts/index.html') diff --git a/layouts/index.html b/layouts/index.html index 7dde6eb..d3091c7 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,26 +1,13 @@ {{ define "main" }} -{{- $mainSections := site.Params.mainSections | default (slice "post") }} + {{- with .Content }}
{{ . }}
- {{- $section := where site.RegularPages "Section" "in" $mainSections }} - {{- $section_count := len $section }} - {{- if ge $section_count 1 }}
-
- {{/* TODO: Translate me */}} -

Latest Publications

- -
- {{ end }} + {{- partial "mini-toc" . -}} {{- else }} + {{- $mainSections := site.Params.mainSections | default (slice "post") }} {{ $paginator := .Paginate (where site.RegularPages "Section" "in" $mainSections) }}
{{ with .Title }}

{{ . }}

{{ end }} -- cgit v1.2.3