diff options
| author | unwox <me@unwox.com> | 2024-10-31 14:58:01 +0600 |
|---|---|---|
| committer | unwox <me@unwox.com> | 2024-10-31 14:58:11 +0600 |
| commit | 44d2ef624a116a4f468fb7944a844816effbc20e (patch) | |
| tree | 8e51446cc085e7d2be28d38fecb422b2cff9670a | |
| parent | ba2deadca80138241d9e5284167e5a6d9e441d31 (diff) | |
improve html code semantics
| -rw-r--r-- | bin/serve.fnl | 15 |
1 files 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))] |
