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 {