From ade244c72af62827c4c30151404abf755597f243 Mon Sep 17 00:00:00 2001 From: Arne Rief Date: Mon, 1 Sep 2025 21:57:30 +0200 Subject: Search & socials --- layouts/_default/list.html | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) (limited to 'layouts/_default/list.html') diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 8ff9b18..d3d2d99 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,28 +1,34 @@ {{- define "main" }} -
-
-

+
+
+

{{ .Title }}

+ {{- with .Content }} +
+ {{ . }} +
+ {{- else }} {{- $description := or .Description .Summary (lang.Translate "list.default_description" .Title | default (printf "All posts in %s" .Title)) }} -

- {{ $description }} -

+

+ {{ $description }} +

+ {{- end }}
-
+
{{- /* 20 posts per site */ -}} {{- $paginator := .Paginate .Pages 20 }} {{- with $paginator.Pages }} -
    +
      {{- range . }} -
    • +
    • {{- partial "list/post-card.html" . }}
    • {{- end }}
    - {{- else }} -

    + {{ else }} +

    {{ lang.Translate "list.empty" | default "No posts found in this section." }}

    {{- end }} -- cgit v1.2.3