add charset

This commit is contained in:
dusk 2023-04-06 08:09:19 +03:00
parent cb15162252
commit 3011f69b4f
Signed by: dusk
GPG Key ID: 1D8F8FAF2294D6EA
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -31,7 +31,9 @@
with html; ''
<!DOCTYPE html>
${html.html {lang = ctx.config.siteLang or "en";} [
(head (stylesheets
(head (
[(meta {charset = "UTF-8";})]
++ stylesheets
++ [
(title titleStr)
(l.optionalString (description != null) (meta {