File tree Expand file tree Collapse file tree 7 files changed +15
-12
lines changed
Expand file tree Collapse file tree 7 files changed +15
-12
lines changed Original file line number Diff line number Diff line change 1111 </a >
1212 <p class =" is-size-7" >
1313 © ; <%= date (new Date (), ' YYYY' ) %> <%= author || title %>   ;
14- Powered by <a href =" https://hexo.io/" target =" _blank" >Hexo</a > & <a
15- href =" https://github.com/ppoffice/hexo-theme-icarus" target =" _blank" >Icarus</a >
14+ Powered by <a href =" https://hexo.io/" target =" _blank" rel = " noopener " >Hexo</a > & <a
15+ href =" https://github.com/ppoffice/hexo-theme-icarus" target =" _blank" rel = " noopener " >Icarus</a >
1616 <% if (busuanzi) { % >
1717 < br>
1818 < span id= " busuanzi_container_site_uv" >
2727 < % for (let name in links) {
2828 let link = links[name]; % >
2929 < p class = " control" >
30- < a class = " button is-white <%= typeof(link) !== 'string' ? 'is-large' : '' %>" target= " _blank" title= " <%= name %>" href= " <%= url_for(typeof(link) === 'string' ? link : link.url) %>" >
30+ < a class = " button is-white <%= typeof(link) !== 'string' ? 'is-large' : '' %>" target= " _blank" rel = " noopener " title= " <%= name %>" href= " <%= url_for(typeof(link) === 'string' ? link : link.url) %>" >
3131 < % if (typeof (link) === ' string' ) { % >
3232 < %= name % >
3333 < % } else { % >
Original file line number Diff line number Diff line change 2222 <% if (Object .keys (links).length ) { % >
2323 < % for (let name in links) {
2424 let link = links[name]; % >
25- < a class = " navbar-item" target= " _blank" title= " <%= name %>" href= " <%= url_for(typeof(link) === 'string' ? link : link.url) %>" >
25+ < a class = " navbar-item" target= " _blank" rel = " noopener " title= " <%= name %>" href= " <%= url_for(typeof(link) === 'string' ? link : link.url) %>" >
2626 < % if (typeof (link) === ' string' ) { % >
2727 < %= name % >
2828 < % } else { % >
Original file line number Diff line number Diff line change 11<% const url = get_config_from_obj (service, ' url' );
22 if (url) { % >
3- < a class = " button is-danger donate" href= " <%= url_for(url) %>" target= " _blank" >
3+ < a class = " button is-danger donate" href= " <%= url_for(url) %>" target= " _blank" rel = " noopener " >
44 < span class = " icon is-small" >
55 < i class = " fab fa-patreon" >< / i>
66 < / span>
Original file line number Diff line number Diff line change 88 < / span>
99 < span>< %= __ (' donate.' + type) % >< / span>
1010< / a>
11- < form action= " https://www.paypal.com/cgi-bin/webscr" method= " post" target= " _blank" id= " paypal-donate-form" >
11+ < form action= " https://www.paypal.com/cgi-bin/webscr" method= " post" target= " _blank" rel = " noopener " id= " paypal-donate-form" >
1212 < input type= " hidden" name= " cmd" value= " _donations" / >
1313 < input type= " hidden" name= " business" value= " <%= business %>" / >
1414 < input type= " hidden" name= " currency_code" value= " <%= currency_code %>" / >
Original file line number Diff line number Diff line change 77 <ul class =" menu-list" >
88 <% for (let i in links) { % >
99 < li>
10- < a class = " level is-mobile" href= " <%- links[i] %>" target= " _blank" >
10+ < a class = " level is-mobile" href= " <%- links[i] %>" target= " _blank" rel = " noopener " >
1111 < span class = " level-left" >
1212 < span class = " level-item" >< %= i % >< / span>
1313 < / span>
Original file line number Diff line number Diff line change 7777 </nav >
7878 <% if (widget .follow_link ) { % >
7979 < div class = " level" >
80- < a class = " level-item button is-link is-rounded" href= " <%= url_for(widget.follow_link) %>" target= " _blank" >
80+ < a class = " level-item button is-link is-rounded" href= " <%= url_for(widget.follow_link) %>" target= " _blank" rel = " noopener " >
8181 < %= __ (' widget.follow' ) % >< / a>
8282 < / div>
8383 < % } %>
8686 < div class = " level is-mobile" >
8787 < % for (let name in socialLinks) {
8888 let link = socialLinks[name]; % >
89- < a class = " level-item button is-white is-marginless" target= " _blank"
89+ < a class = " level-item button is-white is-marginless" target= " _blank" rel = " noopener "
9090 title= " <%= name %>" href= " <%= url_for(typeof(link) === 'string' ? link : link.url) %>" >
9191 < % if (typeof (link) === ' string' ) { % >
9292 < %= name % >
Original file line number Diff line number Diff line change 140140 typeof ( IcarusThemeSettings . site . external_link ) !== 'undefined' &&
141141 IcarusThemeSettings . site . external_link . enable ) {
142142 $ ( '.article .content a' ) . filter ( function ( i , link ) {
143- return link . href && link . classList . length === 0 && isExternalLink ( link . href ,
144- IcarusThemeSettings . site . url ,
145- IcarusThemeSettings . site . external_link . exclude ) ;
143+ return link . href &&
144+ ! $ ( link ) . attr ( 'href' ) . startsWith ( '#' ) &&
145+ link . classList . length === 0 &&
146+ isExternalLink ( link . href ,
147+ IcarusThemeSettings . site . url ,
148+ IcarusThemeSettings . site . external_link . exclude ) ;
146149 } ) . each ( function ( i , link ) {
147150 link . relList . add ( 'noopener' ) ;
148151 link . target = '_blank' ;
You can’t perform that action at this time.
0 commit comments