From 469a210832d2e89038a8732414aafe42f928a14f Mon Sep 17 00:00:00 2001 From: unwox Date: Wed, 9 Oct 2024 10:49:19 +0600 Subject: integrate chaekshop.ru --- bin/serve.fnl | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'bin/serve.fnl') diff --git a/bin/serve.fnl b/bin/serve.fnl index eb56d8a..bec5a94 100644 --- a/bin/serve.fnl +++ b/bin/serve.fnl @@ -56,6 +56,11 @@ :alt "Логотип Железный Феникс"} [:img {:src "/static/clubcha.png"}] "Железный Феникс"] + (= name "chaekshop") + [:a {:class "site-icon" :href "https://chaekshop.ru" + :alt "Логотип Интернет-магазин фермерского китайского чая «Чаёк»"} + [:img {:src "/static/chaekshop.svg"}] + "Интернет-магазин «Чаёк»"] "")) (fn item-template [product] @@ -75,7 +80,8 @@ (< 0 product.price-per)) [:NO-ESCAPE (.. " (" product.price-per "₽ за 1 гр.)")] "")] - [:small {} (unescape (str.truncate product.description 200))]]) + ;; FIXME: security issue + [:small {} [:NO-ESCAPE (unescape (str.truncate product.description 200))]]]) (fn paginator-template [query page limit total] (local last-page (math.ceil (/ total limit))) @@ -120,7 +126,7 @@ :alt "Логотип meicha.ru" :title "Логотип meicha.ru"}]) [:form {:class "form"} [:input {:type :search :name :query :value query - :autofocus true :placeholder "Введите поисковый запрос"}] + :autofocus true :placeholder "Поисковый запрос"}] [:button {:type :submit} "Искать"]] paginator]] [:section {} -- cgit v1.2.3