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 indexRendered = let
path = getPath src "index.md"; path = getPath src "index.md";
in in
if l.pathExists path if l.pathExists "${toString src}/index.md"
then l.readFile (parseMarkdown "index.html" path) then l.readFile (parseMarkdown "index.html" path)
else null; else null;
postsRendered = let postsRendered = let

View File

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