From 0413dc0cc0b75bb016dce603d5402bc470440142 Mon Sep 17 00:00:00 2001 From: unwox Date: Mon, 23 Dec 2024 22:25:53 +0600 Subject: improve artoftea parsing --- bin/serve.fnl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/serve.fnl b/bin/serve.fnl index c22becb..b498ece 100644 --- a/bin/serve.fnl +++ b/bin/serve.fnl @@ -504,6 +504,7 @@ texts.meta-title (.. form.query " | " texts.meta-title))) (local canonical-url (str.trim (.. "https://everytea.ru" path) "/")) + [:html {:lang "ru-RU"} [:head {} [:meta {:charset "utf-8"}] @@ -627,4 +628,5 @@ (must (luna.router.route "GET /robots.txt" robots-handler)) (must (luna.router.static "GET /static/" "static/")) -(must (luna.repl (fn [code] (fennel.eval code {:env _G})))) +(when luna.debug + (must (luna.evalfn (fn [code] (fennel.eval code {:env _G}))))) -- cgit v1.2.3