Skip to content

Commit

Permalink
fix(*): ajout rel external
Browse files Browse the repository at this point in the history
  • Loading branch information
keryanS committed Sep 11, 2023
1 parent f91d6c2 commit 9a54d17
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tool/example/decorator.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ locals.errorData = errorData;
const targetBlankData = () => {
const attr = {};
attr.target = '_blank';
attr.rel = 'noopener';
attr.rel = 'noopener external';
attr.title = `${contentPlaceholder('Intitulé')} - ${getText('blank')}`;
return attr;
}
Expand Down
4 changes: 2 additions & 2 deletions tool/example/heading.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<%
for (const d of doc) {
%>
<li><a href="<%= d.url %>" target="_blank" rel="noopener"><%= d.title %></a></li>
<li><a href="<%= d.url %>" <%- includeAttrs(targetBlankData()) %> <%= d.title %></a></li>
<%
}
%>
Expand All @@ -27,7 +27,7 @@
case typeof doc === 'string':
%>
<a href="<%= doc %>" target="_blank" rel="noopener">Documentation</a>
<a href="<%= doc %>" <%- includeAttrs(targetBlankData()) %>>Documentation</a>
<%
break;
}
Expand Down

0 comments on commit 9a54d17

Please sign in to comment.