diff options
| author | Arne Rief <riearn@proton.me> | 2025-09-01 21:57:30 +0200 |
|---|---|---|
| committer | Arne Rief <riearn@proton.me> | 2025-09-01 21:57:30 +0200 |
| commit | ade244c72af62827c4c30151404abf755597f243 (patch) | |
| tree | 1d6c5c3b24912ab5e5665bad06bb07b1f43c77ac /layouts/_default/list.html | |
| parent | dac4024abcfea76f14522a84bee4b7258c37b72d (diff) | |
Search & socials
Diffstat (limited to 'layouts/_default/list.html')
| -rw-r--r-- | layouts/_default/list.html | 28 |
1 files changed, 17 insertions, 11 deletions
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" }} -<section class="section-list"> - <header class="section-list__header"> - <h1 class="section-list__headline"> +<section class="list-page"> + <header class="list-page__header"> + <h1 class="list-page__headline"> {{ .Title }} </h1> + {{- with .Content }} + <div class="list-page__description"> + {{ . }} + </div> + {{- else }} {{- $description := or .Description .Summary (lang.Translate "list.default_description" .Title | default (printf "All posts in %s" .Title)) }} - <p class="section-list__description"> - {{ $description }} - </p> + <p class="list-page__description"> + {{ $description }} + </p> + {{- end }} </header> - <section class="section-list__content" aria-label="{{ lang.Translate "posts.name" | default "Posts" }}"> + <section class="list-page__content" aria-label="{{ lang.Translate "posts.name" | default "Posts" }}"> {{- /* 20 posts per site */ -}} {{- $paginator := .Paginate .Pages 20 }} {{- with $paginator.Pages }} - <ul class="section-list__posts"> + <ul class="list-page__posts-list"> {{- range . }} - <li class="section-list__post"> + <li class="list-page__post"> {{- partial "list/post-card.html" . }} </li> {{- end }} </ul> - {{- else }} - <p class="section-list__empty-message"> + {{ else }} + <p class="list-page__empty-message"> {{ lang.Translate "list.empty" | default "No posts found in this section." }} </p> {{- end }} |
