Skip to content

Commit

Permalink
Merge pull request #67 from syeopite/no-referrer
Browse files Browse the repository at this point in the history
Remove referrer information when a user clicks on a link
  • Loading branch information
syeopite authored Jul 31, 2024
2 parents aa3a972 + 2aba779 commit 646e306
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/templates/base.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="referrer" content="never">
<meta name="referrer" content="no-referrer">
<link rel="preload" href="/assets/css/base.css?v={{app.ctx.CURRENT_COMMIT}}" as="style">
<link rel="preload" href="/assets/css/base-post-layout.css?v={{app.ctx.NPF_RENDERER_VERSION}}" as="style">
<link rel="stylesheet" type="text/css" href="/assets/css/base.css?v={{app.ctx.CURRENT_COMMIT}}">
Expand Down Expand Up @@ -52,7 +54,7 @@
</a>
</div>
<div class="right-section">
<a href="https://www.tumblr.com{{request.path}}">
<a href="https://www.tumblr.com{{request.path}}" rel="noreferrer">
<svg xmlns="http://www.w3.org/2000/svg" height="20" width="15" viewBox="0 0 320 512">
<title>{{translate(request.ctx.language, "navbar_right_view_page_on_tumblr_link_title")}}</title>
<!--!Font Awesome Free 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.-->
Expand Down
2 changes: 1 addition & 1 deletion src/templates/components/post.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
</svg>
</a>

<a href="https://www.tumblr.com/{{element.blog.name}}/{{element.id}}">
<a href="https://www.tumblr.com/{{element.blog.name}}/{{element.id}}" rel="noreferrer">
<svg xmlns="http://www.w3.org/2000/svg" height="18px" viewBox="0 0 320 512" role="img" aria-label="{{translate(request.ctx.language, "post_footer_view_on_tumblr_icon_title")}}">
<!--! Font Awesome Free 6.4.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. -->
<title>{{translate(request.ctx.language, "post_footer_view_on_tumblr_icon_title")}}</title>
Expand Down

0 comments on commit 646e306

Please sign in to comment.