diff options
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 }} |
