diff options
Diffstat (limited to 'layout/_partial/header.ejs')
-rw-r--r-- | layout/_partial/header.ejs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/layout/_partial/header.ejs b/layout/_partial/header.ejs index f9463f7..8ad3684 100644 --- a/layout/_partial/header.ejs +++ b/layout/_partial/header.ejs @@ -47,9 +47,12 @@ const favicon = mapping[1]; let outter = link.startsWith("https://") ? true : false; %> - <a class="icon" href="<%= link %>" target="<%= outter ? '_blank' : '_self' %>"> - <i class="<%= favicon %>"></i> - </a> + <% if (outter) { %> + <a class="icon" href="<%= link %>" target="_blank" rel="noopener noreferrer"> + <% } else { %> + <a class="icon" href="<%= link %>"> + <% } %> + <i class="<%= favicon %>"></i></a> <% } %> </ul> </p> |