From 9c6c7d39dc91366bf082adae1e58e2aaccad5c5a Mon Sep 17 00:00:00 2001 From: Yusuf Bera Ertan Date: Thu, 6 Apr 2023 07:04:05 +0300 Subject: [PATCH] add posts nav bar item --- templaters/simple/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/templaters/simple/default.nix b/templaters/simple/default.nix index 096ecfb..04581f8 100644 --- a/templaters/simple/default.nix +++ b/templaters/simple/default.nix @@ -57,6 +57,13 @@ class = "novisited"; } "home") ] + ++ l.optionals (l.length ctx.posts > 0) [ + " " + (a { + href = "${ctx.baseurl}/posts"; + class = "novisited"; + } "posts") + ] ++ ( l.map (