summaryrefslogtreecommitdiff
path: root/templates.fnl
diff options
context:
space:
mode:
Diffstat (limited to 'templates.fnl')
-rw-r--r--templates.fnl19
1 files changed, 18 insertions, 1 deletions
diff --git a/templates.fnl b/templates.fnl
index 1ae1ebc..0e4c1bb 100644
--- a/templates.fnl
+++ b/templates.fnl
@@ -20,6 +20,23 @@
(.. "Уютный чайный клуб в Омске: "
"ул. Пушкина, д. 133/9, этаж 2. "
"Посещение по предварительной договоренности."))}]
+ (if title
+ (HTML [:meta {:property "og:title" :content title}])
+ "")
+ (if description
+ (HTML [:meta {:property "og:description" :content description}])
+ "")
+ [:meta {:property "og:type" :content "website"}]
+ [:meta {:property "og:image"
+ :content "https://whitetoad.ru/static/og:image.png"}]
+ [:meta {:property "twitter:image"
+ :content "https://whitetoad.ru/static/og:image.png"}]
+ [:meta {:property "vk:image"
+ :content "https://whitetoad.ru/static/og:image.png"}]
+ [:meta {:property "og:image:width" :content "1200"}]
+ [:meta {:property "og:image:height" :content "630"}]
+ [:meta {:property "twitter:card" :content "summary_large_image"}]
+ [:meta {:property "og:locale" :content "ru_RU"}]
[:style {} [:NO-ESCAPE (read-file "static/style.css")]]
[:link {:rel "icon" :href "/static/favicon.svg" :type "image/svg+xml"}]]
[:body {}
@@ -33,7 +50,7 @@
(HTML
[:section {}
- [:div {:class "logo"}
+ [:div {:class "logo logo-bg"}
(if authenticated?
(HTML [:img {:class "logo-glasses" :src "/static/glasses.png"
:alt "Солнцезащитные очки"}])