From 3fac776752322761404cd6150eacfc3ac0cf5e72 Mon Sep 17 00:00:00 2001 From: unwox Date: Tue, 25 Nov 2025 22:28:15 +0600 Subject: small navigation improvements --- etc/og:image.xcf | Bin 0 -> 3789480 bytes pages/shop/_product/index.fnl | 14 ++++++++++++-- static/logo-bg.png | Bin 74788 -> 141437 bytes static/logo-bg2.png | Bin 0 -> 8405 bytes static/og:image.png | Bin 0 -> 111205 bytes static/style.css | 29 ++++++++++++++++++++++++++--- templates.fnl | 19 ++++++++++++++++++- 7 files changed, 56 insertions(+), 6 deletions(-) create mode 100644 etc/og:image.xcf create mode 100644 static/logo-bg2.png create mode 100644 static/og:image.png diff --git a/etc/og:image.xcf b/etc/og:image.xcf new file mode 100644 index 0000000..d0f5fb4 Binary files /dev/null and b/etc/og:image.xcf differ diff --git a/pages/shop/_product/index.fnl b/pages/shop/_product/index.fnl index 30cbc33..6903144 100644 --- a/pages/shop/_product/index.fnl +++ b/pages/shop/_product/index.fnl @@ -57,11 +57,21 @@ (HTML [:div {:class "content"} (if (not agreed-to-cookies?) (templates.cookies-agreement) "") - [:div {:class "back"} [:a {:href "/shop"} "⟵ Обратно к списку"]] + ;; this method of going back to the list requires JS and is bug prone but + ;; at the same time it's the simplest one. doing the same thing without + ;; JS would require storing "back URL" in query parameter (which will make + ;; URLs ugly and also hurt SEO) or in a cookie (which is brittle) + ;; TODO: also add