diff options
Diffstat (limited to 'bin')
| -rw-r--r-- | bin/serve.fnl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/serve.fnl b/bin/serve.fnl index d96056a..985d06f 100644 --- a/bin/serve.fnl +++ b/bin/serve.fnl @@ -236,7 +236,7 @@ (fn item-template [product] [:div {:class "tile"} - [:a {:href product.url :style "display: block;" :rel "nofollow"} + [:a {:href product.url :class "img-link" :rel "nofollow"} [:img {:class "img" :src product.image :title product.title :alt product.title} ""]] (site-name-template product.site) @@ -359,7 +359,8 @@ ;; inline styles so the page loads faster [:style {} [:NO-ESCAPE (fs.read-file "static/style.css")]] [:link {:rel "icon" :href "/static/favicon.png"}] - [:link {:rel "preload" :href "/static/logo-hor.svg"}] + [:link {:rel "preload" :fetchpriority "high" :as "image" + :href "/static/logo-hor.svg" :type "image/svg"}] [:title {} (if (str.empty? form.query) texts.meta-title (.. form.query " | " texts.meta-title))] |
