diff options
author | Franck Cuny <franck@fcuny.net> | 2021-04-22 12:44:27 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2021-04-22 12:44:27 -0700 |
commit | ef3fa6ba26fcf11fdd2325764147f56c90b94a7b (patch) | |
tree | 4da9b40592d68d96f24c188cded6853c0f8b77bd /users/fcuny/blog/layouts/_default/list.html | |
parent | toml: re-configure markup (diff) | |
download | world-ef3fa6ba26fcf11fdd2325764147f56c90b94a7b.tar.gz |
layout: add a navbar
I want to differentiate blog's entries from more general notes. For this, we create two menu entries, and add a navbar at the top. The nav bar let us select between the two kind of articles: blogs or notes. For now we have a single blog entry, and no notes. The page to list entries is simplified: we use the same layout for all lists (tags, notes, blogs). The CSS is updated to support the new nav bar.
Diffstat (limited to 'users/fcuny/blog/layouts/_default/list.html')
-rw-r--r-- | users/fcuny/blog/layouts/_default/list.html | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/users/fcuny/blog/layouts/_default/list.html b/users/fcuny/blog/layouts/_default/list.html index 3423cb6..2b7d98a 100644 --- a/users/fcuny/blog/layouts/_default/list.html +++ b/users/fcuny/blog/layouts/_default/list.html @@ -1,10 +1,6 @@ {{ define "main" }} -<h1>{{ .Title }}</h1> -{{ range .Pages.ByPublishDate.Reverse }} -<p> - <a class="font-125" href="{{ .RelPermalink }}">{{ .Title }}</a> -</p> -{{ end }} + {{ $pgs := where .Data.Pages "Params.hidden" "ne" "true" }} + {{ partial "postlist" $pgs }} {{ end }} |