diff options
| author | unwox <me@unwox.com> | 2024-11-14 10:35:07 +0600 |
|---|---|---|
| committer | unwox <me@unwox.com> | 2024-11-14 10:38:53 +0600 |
| commit | f391e13ddb1fcd8a0a4daf033f341532060f7421 (patch) | |
| tree | efb82a9490976c5bc6e81bf3fda64a4e7093315a /bin/serve.fnl | |
| parent | 032e9008f890847bb2a55b73762faaf690e1e154 (diff) | |
specify canonical URL for SEO
Diffstat (limited to 'bin/serve.fnl')
| -rw-r--r-- | bin/serve.fnl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/serve.fnl b/bin/serve.fnl index 9ebd0e8..4f42cdb 100644 --- a/bin/serve.fnl +++ b/bin/serve.fnl @@ -439,7 +439,6 @@ db (.. "spellfix:" form.query) #(spellfix.guess form.query)) nil)) - [:html {:lang "ru-RU"} [:head {} [:meta {:charset "utf-8"}] @@ -449,6 +448,8 @@ [:link {:rel "icon" :href "/static/favicon.png"}] [:link {:rel "preload" :fetchpriority "high" :as "image" :href "/static/logo-hor.svg" :type "image/svg+xml"}] + [:link {:rel "canonical" + :href (str.trim (.. "https://everytea.ru" path) "/")}] [:title {} (if (str.empty? form.query) texts.meta-title (.. form.query " | " texts.meta-title))] |
