diff options
| author | mjkwiatkowski <mati.rewa@gmail.com> | 2026-01-11 14:13:00 +0100 |
|---|---|---|
| committer | mjkwiatkowski <mati.rewa@gmail.com> | 2026-01-11 14:13:00 +0100 |
| commit | b56e4a6a679a3151b02749edc0028ce909037cdc (patch) | |
| tree | cd69d3f843b97af3d6c9125d6419ce852248d867 /layouts/_default | |
| parent | e6bfc9a947302e290e846f8e7e884af8b329328b (diff) | |
fix: fixed the non-working list of book posts
Diffstat (limited to 'layouts/_default')
| -rw-r--r-- | layouts/_default/list.html | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 7d0aba7..15b54c3 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -8,13 +8,8 @@ <ul class="content-list"> {{ $pages := .Pages }} - {{ $pages = .Site.RegularPages }} - {{ if .IsHome }} - {{ range (where $pages "Section" "==" "posts") }} - {{ else }} - {{ range (where $pages "Section" "==" "books") }} - {{ end }} - + {{ if .IsHome }}{{ $pages = .Site.RegularPages }}{{ end }} + {{ range (where $pages "Section" "!=" "") }} <li> <span class="date">{{ .Date.Format "2006/01/02" }}</span> <a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a> |
