Skip to content

Instantly share code, notes, and snippets.

@zakwilson
Created October 18, 2010 01:08
Show Gist options
  • Save zakwilson/631530 to your computer and use it in GitHub Desktop.
Save zakwilson/631530 to your computer and use it in GitHub Desktop.
Why some links are nofollow
(= 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