diff options
Diffstat (limited to 'bin')
| -rw-r--r-- | bin/serve.fnl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/serve.fnl b/bin/serve.fnl index 82759b8..27cfae5 100644 --- a/bin/serve.fnl +++ b/bin/serve.fnl @@ -238,17 +238,18 @@ (fn site-name-template [name] (local module (require (.. "parser." name))) - [:a {:class "site-icon" :href module.url} + [:a {:class "site-icon" :href (.. module.url "?from=everytea.ru")} [:img {:src (.. "/static/" name ".png") :alt (.. "Логотип " module.title)}] module.title]) (fn item-template [product] + (local link (.. product.url "?from=everytea.ru")) [:div {:class "tile"} - [:a {:href product.url :class "img-link" :rel "nofollow"} + [:a {:href link :class "img-link" :rel "nofollow"} [:img {:class "img" :src product.image :title product.title :alt product.title} ""]] (site-name-template product.site) - [:a {:href product.url :style "text-decoration: none;" :rel "nofollow"} + [:a {:href link :style "text-decoration: none;" :rel "nofollow"} [:NO-ESCAPE (.. "<h2>" (unescape product.title) "</h2>")]] [:div {:class "price"} (if product.price (.. product.price "₽") "") |
