target & rel
This commit is contained in:
parent
1dbbe0883c
commit
c2889a5e8e
|
@ -13,7 +13,7 @@ function layoutDiv() {
|
|||
el += '<div class="body"><ul>';
|
||||
page.references.forEach((item, i) => {
|
||||
el += '<li class="post-title">';
|
||||
el += '<a href="' + item.url + '">';
|
||||
el += '<a href="' + item.url + '" target="_blank" rel="external nofollow noopener noreferrer">';
|
||||
el += item.title || item.url;
|
||||
el += '</a>';
|
||||
el += '</li>';
|
||||
|
@ -44,7 +44,7 @@ function layoutDiv() {
|
|||
el += '<div class="social-wrap">';
|
||||
theme.article.share.forEach((item, i) => {
|
||||
if (['wechat', 'weibo', 'email', 'link'].includes(item)) {
|
||||
el += '<a class="social share-item ' + item + '"';
|
||||
el += '<a class="social share-item ' + item + '" target="_blank" rel="external nofollow noopener noreferrer"';
|
||||
if (item == 'wechat') {
|
||||
el += ' onclick="util.toggle_qrcode()"';
|
||||
} else if (item == 'weibo') {
|
||||
|
|
|
@ -14,7 +14,7 @@ function layoutFooterDiv() {
|
|||
var el = '<footer class="footer"><div class="social-wrap">';
|
||||
theme.footer.social.forEach(item => {
|
||||
if (item.icon && item.url) {
|
||||
el += '<a class="social" href="' + url_for(item.url) + '">' + item.icon + '</a>';
|
||||
el += '<a class="social" href="' + url_for(item.url) + '" target="_blank" rel="external nofollow noopener noreferrer">' + item.icon + '</a>';
|
||||
}
|
||||
});
|
||||
el += '</div></footer>';
|
||||
|
|
Loading…
Reference in New Issue