diff options
Diffstat (limited to 'layouts/uncategorized.html')
| -rw-r--r-- | layouts/uncategorized.html | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/layouts/uncategorized.html b/layouts/uncategorized.html index a269a18..a015852 100644 --- a/layouts/uncategorized.html +++ b/layouts/uncategorized.html @@ -1,22 +1,21 @@ {{ define "main" }} <article> - {{ partial "header" . }} - {{ partial "home/home-nav" . }} <div class="post-content markdown-body"> <p>{{ .Content }}</p> </div> - <!-- Uncategorized --> - {{ $posts := .Site.GetPage "section" "posts" }} - {{ $essays := .Site.GetPage "section" "essays" }} - {{ $combined := $posts.Pages | append $essays.Pages }} - {{ $uncategorized := where $combined "Params.categories" "eq" nil }} - {{ if $uncategorized }} + {{ $uncategorized := where + (where + .Site.Pages + "Section" "article") + "Params.categories" "eq" nil }} + {{ with $uncategorized }} <ol class="ps-0 flex flex-col gap-2 leading-relaxed"> - {{ range $uncategorized }} - {{ partial "items/post-small" . }} + {{ range . }} + {{ if not .Date.IsZero }} + {{ partial "items/post-small" . }} + {{ end }} {{ end }} </ol> {{ end }} </article> -{{ partial "footer.html" . }} {{ end }} |
