From 27f5d1bd67e5f0a74b713acd49a2e8e5ef5b3c36 Mon Sep 17 00:00:00 2001 From: Yusuf Bera Ertan Date: Sun, 16 May 2021 23:22:34 +0300 Subject: [PATCH] feat: rename index page to posts --- templaters/basic.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templaters/basic.nix b/templaters/basic.nix index a83d08d..c26cd4e 100644 --- a/templaters/basic.nix +++ b/templaters/basic.nix @@ -21,9 +21,9 @@ let ]; pagesSection = - map + (map (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; [ (a { href = "#posts"; class = "postheader"; } (h1 "# posts"))