diff options
| author | unwox <me@unwox.com> | 2025-10-30 21:05:19 +0600 |
|---|---|---|
| committer | unwox <me@unwox.com> | 2025-10-30 21:05:19 +0600 |
| commit | d5c0dd24c01c3406af3e8f8f166cb629b8bbf811 (patch) | |
| tree | b14bf491558550b28e39a01b9a5b8a44d8b27886 | |
| parent | 5ea0e8309eaed8d0349696504e4a8b78997058b0 (diff) | |
improve navigation on mobiles
| -rw-r--r-- | pages/shop/_product/index.fnl | 2 | ||||
| -rw-r--r-- | pages/shop/index.fnl | 2 | ||||
| -rw-r--r-- | templates.fnl | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/pages/shop/_product/index.fnl b/pages/shop/_product/index.fnl index aabd713..6d2e3f3 100644 --- a/pages/shop/_product/index.fnl +++ b/pages/shop/_product/index.fnl @@ -61,7 +61,7 @@ [:div {:class "product-page-layout"} [:section {} - [:h2 {:class "product-page-title"} product.title] + [:h2 {:class "product-page-title" :id "content"} product.title] (if authenticated? (HTML [:div {:class "mb-1" :style "margin-top: -0.5rem;"} diff --git a/pages/shop/index.fnl b/pages/shop/index.fnl index 2486bc3..c456408 100644 --- a/pages/shop/index.fnl +++ b/pages/shop/index.fnl @@ -103,7 +103,7 @@ "")) (fn item-template [product basket redirect-url] - (local item-url (.. "/shop/" product.name)) + (local item-url (.. "/shop/" product.name "#content")) (local images []) (for [i 2 5] (table.insert images (. product (.. "image" i)))) diff --git a/templates.fnl b/templates.fnl index 542b898..e3f71bb 100644 --- a/templates.fnl +++ b/templates.fnl @@ -54,7 +54,7 @@ [:a {:href "https://t.me/whitetoadtea"} "телеграм"]]])) (fn basket-item [item redirect-url] - (local item-link (.. "/shop/" item.name)) + (local item-link (.. "/shop/" item.name "#content")) (HTML [:div {:class "basket-item"} @@ -199,7 +199,7 @@ [:div {:class "order mb-0-5"} (table.concat (icollect [_ item (ipairs order-lines)] - (let [item-link (.. "/shop/" item.name)] + (let [item-link (.. "/shop/" item.name "#content")] (HTML [:div {:class "order-line"} [:div {:class "order-line-image"} |
