Created
October 18, 2010 01:08
-
-
Save zakwilson/631530 to your computer and use it in GitHub Desktop.
Why some links are nofollow
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(= follow-threshold* 5) | |
; ... | |
(def titlelink (s url user) | |
(tag (td class 'title) | |
(if (cansee user s) | |
(do (let toself (blank url) | |
(tag (a href (if toself (item-url s) url) | |
rel (unless (or toself | |
(> (realscore s) follow-threshold*)) | |
'nofollow)) | |
(pr (s 'title)))) | |
(deadmark s user) | |
(awhen (and (valid-url url) (sitename url)) | |
(spanclass comhead | |
(pr " (" it ") ")))) | |
(pr (pseudo-text s))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment