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