Add a BlackFriday option for rel="noreferrer" on external links
authorStefan Neuhaus <stefan@stefanneuhaus.org>
Sun, 27 May 2018 21:20:39 +0000 (23:20 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 29 May 2018 14:54:43 +0000 (16:54 +0200)
commit20cbc2c7856a9b07d45648d940276374db35e425
treef4e75ad9baece22ddfd2544b3997d01c12aa4629
parent2174525cec567eb43968f52c9f28118a21fafec2
Add a BlackFriday option for rel="noreferrer" on external links

Add a configuration option "noreferrerLinks". When set to "true" the "HTML_NOREFERRER_LINKS" flag is being passed to Blackfriday. Thereby all *absolute* links will get a "noreferrer" value for their "rel" attribute.

See #4722
docs/content/en/readfiles/bfconfig.md
helpers/content.go
helpers/content_test.go