Skip to content

Commit 5aa62ca

Browse files
committed
Add "external" icon to links to other domains (#324)
(cherry picked from commit 69d5727)
1 parent 5b634d5 commit 5aa62ca

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/js/custom.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,12 @@ $(document).ready(function() {
7575
}
7676
});
7777

78+
$('.md-content a:not(.md-icon):not(.md-source):not(.instantsearch__entry)')
79+
.filter(function() {
80+
return this.hostname && this.hostname !== location.hostname;
81+
})
82+
.addClass('external');
83+
7884
docsearch({
7985
container: '#docsearch',
8086
appId: 'WLX2XJZTRM',

0 commit comments

Comments
 (0)