Crawlers should not crawl theme switch buttons

This commit is contained in:
Cadence Ember 2023-02-08 00:14:06 +13:00
parent c0ccb7f3d1
commit 7f85ce776b
Signed by untrusted user: cadence
GPG key ID: BC1C2C61CF521B17
2 changed files with 3 additions and 1 deletions

View file

@ -235,7 +235,8 @@
(if (equal? theme (user-cookies^-theme user-cookies))
"bw-theme__item bw-theme__item--selected"
"bw-theme__item"))
`(a (@ (href ,(user-cookies-setter-url
`(a (@ (rel "nofollow")
(href ,(user-cookies-setter-url
req
(struct-copy user-cookies^ user-cookies
[theme theme]))) (class ,class))

View file

@ -1,3 +1,4 @@
User-Agent: *
Disallow: /*/wiki/*
Disallow: /proxy
Disallow: /set-user-settings