diff options
| author | unwox <me@unwox.com> | 2025-09-05 10:24:45 +0600 |
|---|---|---|
| committer | unwox <me@unwox.com> | 2025-09-05 13:45:31 +0600 |
| commit | 996f9a20ad329dfc8bb35945b44471bfae315ada (patch) | |
| tree | edcf562ab7e5a1fd1b7a8a2f50d4c1371c718416 /templates.fnl | |
| parent | 66c51b0e714fa8a1c80784108191270babc8525e (diff) | |
small fixes
Diffstat (limited to 'templates.fnl')
| -rw-r--r-- | templates.fnl | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/templates.fnl b/templates.fnl index f4ff5cc..07680f8 100644 --- a/templates.fnl +++ b/templates.fnl @@ -1,4 +1,4 @@ -(import-macros {:compile-html <>} :macros) +(import-macros {:compile-html HTML} :macros) (local lib (require :lib)) (fn read-file [file] @@ -6,7 +6,7 @@ (f:read :*all))) (fn base [content] - (<> + (HTML [:html {:lang "ru-RU"} [:head {} [:title {} "«Белая жаба» — маленькая уютная чайная в Омске"] @@ -27,19 +27,19 @@ (fn header [current-path authenticated?] (local logo - (<> + (HTML [:img {:src "/static/logo.svg" :alt "Белая жаба в мультяшном стиле с чайником на голове"}])) - (<> + (HTML [:article {:class "article"} [:div {:class "logo"} (if authenticated? - (<> [:img {:class "logo-glasses" :src "/static/glasses.png" + (HTML [:img {:class "logo-glasses" :src "/static/glasses.png" :alt "Солнцезащитные очки"}]) "") (if (~= current-path "") - (<> [:a {:href "/" :class "d-inline-block"} logo]) + (HTML [:a {:href "/" :class "d-inline-block"} logo]) logo) [:h1 {} [:NO-ESCAPE "Чайная<br>«Белая жаба»"]]] [:nav {} @@ -51,7 +51,7 @@ [:a {:href "https://vk.com/whitetoadtea"} "вконтакте"]]])) (fn basket-item [item redirect-url] - (<> + (HTML [:div {:class "basket-item"} [:div {:class "basket-item-image"} [:img {:src (.. "/static/files/" (. item :images 1)) :alt item.title}]] |
