Skip to content

Commit

Permalink
Add rel=noopener for external links (#120)
Browse files Browse the repository at this point in the history
Signed-off-by: Igor Shishkin <me@teran.dev>
  • Loading branch information
teran committed Aug 15, 2024
1 parent ac0448e commit 2cf1d84
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion presenter/publisher/html/templates/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ <h1>404 Not Found</h1>
There is not the resource you are looking for
</p>
<hr>
Powered by <a href="https://github.com/teran/archived" target="_blank">archived</a>
Powered by <a href="https://github.com/teran/archived" target="_blank" rel="noopener">archived</a>
</body>
</html>
2 changes: 1 addition & 1 deletion presenter/publisher/html/templates/5xx.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ <h1>{{ .Code }} {{ .Message }}</h1>
Something went wrong.....
</p>
<hr>
Powered by <a href="https://github.com/teran/archived" target="_blank">archived</a>
Powered by <a href="https://github.com/teran/archived" target="_blank" rel="noopener">archived</a>
</body>
</html>
2 changes: 1 addition & 1 deletion presenter/publisher/html/templates/_common.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ <h1>{{ .Title }}</h1>

{{ define "footer" }}
<hr>
Powered by <a href="https://github.com/teran/archived" target="_blank">archived</a>
Powered by <a href="https://github.com/teran/archived" target="_blank" rel="noopener">archived</a>
</body>
</html>
{{ end }}
Expand Down
2 changes: 1 addition & 1 deletion presenter/publisher/html/testdata/404.html.sample
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
There is not the resource you are looking for
</p>
<hr>
Powered by <a href="https://github.com/teran/archived" target="_blank">archived</a>
Powered by <a href="https://github.com/teran/archived" target="_blank" rel="noopener">archived</a>
</body>
</html>
2 changes: 1 addition & 1 deletion presenter/publisher/html/testdata/5xx.html.sample
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
Something went wrong.....
</p>
<hr>
Powered by <a href="https://github.com/teran/archived" target="_blank">archived</a>
Powered by <a href="https://github.com/teran/archived" target="_blank" rel="noopener">archived</a>
</body>
</html>
2 changes: 1 addition & 1 deletion presenter/publisher/html/testdata/index.html.sample
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<a href="/test-container-1/">test-container-1/</a><br>

<hr>
Powered by <a href="https://github.com/teran/archived" target="_blank">archived</a>
Powered by <a href="https://github.com/teran/archived" target="_blank" rel="noopener">archived</a>
</body>
</html>

2 changes: 1 addition & 1 deletion presenter/publisher/html/testdata/objects.html.sample
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@


<hr>
Powered by <a href="https://github.com/teran/archived" target="_blank">archived</a>
Powered by <a href="https://github.com/teran/archived" target="_blank" rel="noopener">archived</a>
</body>
</html>

2 changes: 1 addition & 1 deletion presenter/publisher/html/testdata/versions.html.sample
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@


<hr>
Powered by <a href="https://github.com/teran/archived" target="_blank">archived</a>
Powered by <a href="https://github.com/teran/archived" target="_blank" rel="noopener">archived</a>
</body>
</html>

0 comments on commit 2cf1d84

Please sign in to comment.