summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormjkwiatkowski <mati.rewa@gmail.com>2026-01-11 13:56:29 +0100
committermjkwiatkowski <mati.rewa@gmail.com>2026-01-11 13:56:29 +0100
commite6bfc9a947302e290e846f8e7e884af8b329328b (patch)
treea77ba69b16c51f03c5f7711d462bed5f931f4a83
parenta68bfdd1ce06328014951b696a8f149c168b720d (diff)
feat: added a book list
-rw-r--r--layouts/_default/list.html9
1 files changed, 7 insertions, 2 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index ae0a0e7..7d0aba7 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -8,8 +8,13 @@
<ul class="content-list">
{{ $pages := .Pages }}
- {{ if .IsHome }}{{ $pages = .Site.RegularPages }}{{ end }}
- {{ range (where $pages "Section" "==" "posts") }}
+ {{ $pages = .Site.RegularPages }}
+ {{ if .IsHome }}
+ {{ range (where $pages "Section" "==" "posts") }}
+ {{ else }}
+ {{ range (where $pages "Section" "==" "books") }}
+ {{ end }}
+
<li>
<span class="date">{{ .Date.Format "2006/01/02" }}</span>
<a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a>