From 3011f69b4f4bf2ee15a3d5f388f1cddc813f1fa6 Mon Sep 17 00:00:00 2001 From: Yusuf Bera Ertan Date: Thu, 6 Apr 2023 08:09:19 +0300 Subject: [PATCH] add charset --- pkgs-lib.nix | 2 +- templaters/simple/default.nix | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs-lib.nix b/pkgs-lib.nix index 592d351..da67fd6 100644 --- a/pkgs-lib.nix +++ b/pkgs-lib.nix @@ -94,7 +94,7 @@ in { indexRendered = let path = getPath src "index.md"; in - if l.pathExists path + if l.pathExists "${toString src}/index.md" then l.readFile (parseMarkdown "index.html" path) else null; postsRendered = let diff --git a/templaters/simple/default.nix b/templaters/simple/default.nix index e907956..8e2c491 100644 --- a/templaters/simple/default.nix +++ b/templaters/simple/default.nix @@ -31,7 +31,9 @@ with html; '' ${html.html {lang = ctx.config.siteLang or "en";} [ - (head (stylesheets + (head ( + [(meta {charset = "UTF-8";})] + ++ stylesheets ++ [ (title titleStr) (l.optionalString (description != null) (meta {