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: 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