summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authormjkwiatkowski <mati.rewa@gmail.com>2026-01-11 14:13:00 +0100
committermjkwiatkowski <mati.rewa@gmail.com>2026-01-11 14:13:00 +0100
commitb56e4a6a679a3151b02749edc0028ce909037cdc (patch)
treecd69d3f843b97af3d6c9125d6419ce852248d867 /layouts
parente6bfc9a947302e290e846f8e7e884af8b329328b (diff)
fix: fixed the non-working list of book posts
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/list.html9
-rw-r--r--layouts/partials/header.html2
-rw-r--r--layouts/partials/navigation.html2
3 files changed, 4 insertions, 9 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>
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 26bf0cb..ccf0589 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -4,7 +4,7 @@
<header>
<div class="container">
<div class="avatar">
- <img width="65px" height="65px" src="images/logo.jpg" alt="my logo">
+ <img width="65px" height="65px" src="/images/logo.jpg" alt="my logo">
<h1 style="vertical-align: bottom;">mjkw</h1>
</div>
{{ partial "navigation.html" .}}
diff --git a/layouts/partials/navigation.html b/layouts/partials/navigation.html
index 03040ea..43e0bf5 100644
--- a/layouts/partials/navigation.html
+++ b/layouts/partials/navigation.html
@@ -22,7 +22,7 @@
</li>
<li>|</li>
<li>
- book blog
+ <a href="/books">book blog</a>
</li>
</ul>