diff options
| author | Arne Rief <riearn@proton.me> | 2026-01-09 12:24:05 +0100 |
|---|---|---|
| committer | Arne Rief <riearn@proton.me> | 2026-01-09 12:24:05 +0100 |
| commit | f8541ef965ca22e746b523eb418e47cb4f78f2d8 (patch) | |
| tree | 49e1540ed42595a44196817eadf97337587a2aea /layouts/_default/all-posts.html | |
| parent | 038054b8206a9c25e84adeb0f0f355abd22d6143 (diff) | |
Upgrade to new template system from Hugo v0.146.0
Diffstat (limited to 'layouts/_default/all-posts.html')
| -rw-r--r-- | layouts/_default/all-posts.html | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/layouts/_default/all-posts.html b/layouts/_default/all-posts.html deleted file mode 100644 index 4a94ab6..0000000 --- a/layouts/_default/all-posts.html +++ /dev/null @@ -1,36 +0,0 @@ -{{ define "main" }} -<section class="search-page"> - <header class="all-posts__header"> - <h1 class="all-posts__heading"> - {{ .Title }} - </h1> - {{- with .Content }} - <div class="all-posts__description"> - {{ . }} - </div> - {{- else }} - {{- $description := or .Description (lang.Translate "posts_all_description" | default "All posts on this website, from newest to oldest.") }} - <p class="all-posts__description"> - {{ $description }} - </p> - {{- end }} - </header> - - {{ $allPosts := where site.RegularPages "Params.excludeFromLists" "!=" true }} - {{- if $allPosts }} - <div class="all-posts__content"> - <ul class="all-posts__list" role="list"> - {{- range $allPosts.ByDate.Reverse }} - <li class="all-posts__list-item"> - {{ partial "list/post-card.html" (dict "post" . "show_section" true) }} - </li> - {{- end }} - </ul> - </div> - {{ else }} - <p class="all-posts__empty-message"> - {{ lang.Translate "posts_empty" | default "This site does not have any posts yet." }} - </p> - {{- end }} -</section> -{{ end }} |
