From 44d2ef624a116a4f468fb7944a844816effbc20e Mon Sep 17 00:00:00 2001 From: unwox Date: Thu, 31 Oct 2024 14:58:01 +0600 Subject: improve html code semantics --- bin/serve.fnl | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/bin/serve.fnl b/bin/serve.fnl index 4b8a991..14073cf 100644 --- a/bin/serve.fnl +++ b/bin/serve.fnl @@ -378,15 +378,16 @@ [:div {:class "container"} [:div {:class "content"} (aside-template form path paginator) - [:section {} + [:main {} (menu-template path) - (if (. form.tags 1) - [:h1 {} (. form.tags 1)] - "") - (if (and menu-path (. texts (.. menu-path "-description"))) - [:div {:class "description"} - [:NO-ESCAPE (. texts (.. menu-path "-description"))]] + [:article {:class "description"} + (if (. form.tags 1) + [:h1 {} (. form.tags 1)] "") + (if (and menu-path (. texts (.. menu-path "-description"))) + [:div {:class "description-text text"} + [:NO-ESCAPE (. texts (.. menu-path "-description"))]] + "")] (if (< 0 (# items)) [:div {:class "list"} (table.unpack (map #(item-template $2) items))] -- cgit v1.2.3