8000 Add `rel=nofollow sponsored` to sponsor links · ixartz/unifiedjs.github.io@de3f2ce · GitHub
[go: up one dir, main page]

Skip to content

Commit de3f2ce

Browse files
committed
Add rel=nofollow sponsored to sponsor links
1 parent 37849b2 commit de3f2ce

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

generate/atom/micro/url.js

Lines changed: 6 additions & 2 deletions
< 8000 /div>
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,15 @@ var icon = require('../icon/link')
66

77
module.exports = url
88

9-
function url(value) {
9+
function url(value, linkProps) {
1010
return value
1111
? h(
1212
'li.ellipsis',
13-
h('a.tap-target', {href: value}, [icon(), ' ', fmt(value)])
13+
h('a.tap-target', {...linkProps, href: value}, [
14+
icon(),
15+
' ',
16+
fmt(value)
17+
])
1418
)
1519
: ''
1620
}

generate/component/sponsor/item.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function item(d) {
2525
}
2626

2727
if (url) {
28-
footer.push(urlLine(url))
28+
footer.push(urlLine(url, {rel: ['sponsored', 'nofollow']}))
2929
}
3030

3131
return card(

0 commit comments

Comments
 (0)
0