We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cd50f76 commit e5c9655Copy full SHA for e5c9655
1 file changed
source/layouts/layout.slim
@@ -21,6 +21,11 @@ html class='bg-white antialiased scroll-smooth' lang='fr'
21
return
22
}
23
24
+ var userAgent = navigator.userAgent.toLowerCase();
25
+ if (/bot|crawl|spider|slurp|bing|msn|teoma|baidu|yandex|duckduckbot|facebot|ia_archiver/.test(userAgent)) {
26
+ return;
27
+ }
28
+
29
localStorage.setItem('languageRedirected', true)
30
var browserLanguage = navigator.language ? navigator.language.slice(0, 2) : null
31
0 commit comments