feat: rename index page to posts

This commit is contained in:
dusk 2021-05-16 23:22:34 +03:00
parent b614348b89
commit 27f5d1bd67
Signed by: dusk
GPG Key ID: 1D8F8FAF2294D6EA

View File

@ -21,9 +21,9 @@ let
]; ];
pagesSection = pagesSection =
map (map
(name: tags.div { class = "pure-u-1"; } (tags.a { href = "./${name}.html"; class = "postheader"; } name)) (name: tags.div { class = "pure-u-1"; } (tags.a { href = "./${name}.html"; class = "postheader"; } name))
((mapAttrsToList (name: _: name) pages) ++ [ "index" ]); (mapAttrsToList (name: _: name) pages)) ++ [ (tags.div { class = "pure-u-1"; } (tags.a { href = "./index.html"; class = "postheader"; } "posts")) ];
postsSectionContent = with tags; [ postsSectionContent = with tags; [
(a { href = "#posts"; class = "postheader"; } (h1 "# posts")) (a { href = "#posts"; class = "postheader"; } (h1 "# posts"))