diff options
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/_default/list.html | 9 | ||||
| -rw-r--r-- | layouts/partials/header.html | 2 | ||||
| -rw-r--r-- | layouts/partials/navigation.html | 2 |
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> |
