From 1a4571f89833e71460c6489775e9b22a774b0d15 Mon Sep 17 00:00:00 2001 From: Yusuf Bera Ertan Date: Thu, 6 Apr 2023 07:14:38 +0300 Subject: [PATCH] add icon and lang --- templaters/simple/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/templaters/simple/default.nix b/templaters/simple/default.nix index 04581f8..7428b78 100644 --- a/templaters/simple/default.nix +++ b/templaters/simple/default.nix @@ -29,7 +29,7 @@ }: with html; '' - ${html.html [ + ${html.html {lang = ctx.config.siteLang or "en";} [ (head (stylesheets ++ [ (title titleStr) @@ -37,6 +37,10 @@ name = "viewport"; content = "width=device-width, initial-scale=1"; }) + (l.optionalString (ctx.config ? iconPath) (link { + rel = "icon"; + href = "${ctx.baseurl}/${iconPath}"; + })) ])) (body '' ${script "0"}