adding noreferrer to social links

This commit is contained in:
Adam Piontek 2021-04-06 20:19:49 -04:00
parent 2ce2db1b37
commit eed814a53a
2 changed files with 19 additions and 8 deletions

View file

@ -21,7 +21,7 @@
<div id="social-icons" class="mt-1"> <div id="social-icons" class="mt-1">
<%= for s <- socials(@conn) do %> <%= for s <- socials(@conn) do %>
<%= link to: s.url, target: s.target, class: "fs-3 link-light text-decoration-none" do %> <%= link to: s.url, rel: "noreferrer", target: s.target, class: "fs-3 link-light text-decoration-none" do %>
<%= icon_div @conn, s.icon, [class: "icon baseline"] %> <%= icon_div @conn, s.icon, [class: "icon baseline"] %>
<% end %> <% end %>
<% end %> <% end %>

View file

@ -13,36 +13,47 @@ defmodule Home73kWeb.HomeView do
%{ %{
icon: "mdi-linkedin", icon: "mdi-linkedin",
url: "https://www.linkedin.com/in/adampiontek/", url: "https://www.linkedin.com/in/adampiontek/",
prof: true, target: "_blank" prof: true,
target: "_blank"
}, },
%{icon: "mdi-github", url: "https://github.com/apiontek", prof: true, target: "_blank"}, %{icon: "mdi-github", url: "https://github.com/apiontek", prof: true, target: "_blank"},
%{icon: "gitea", url: "https://73k.us/git/adam", prof: true, target: "_blank"}, %{icon: "gitea", url: "https://73k.us/git/adam", prof: true, target: "_blank"},
%{ %{
icon: "mdi-key-variant", icon: "mdi-key-variant",
url: Routes.static_path(conn, "/DF185CEE29A3D443_public_key.asc"), url: Routes.static_path(conn, "/DF185CEE29A3D443_public_key.asc"),
prof: true, target: "_blank" prof: true,
target: "_blank"
}, },
%{ %{
icon: "mdi-goodreads", icon: "mdi-goodreads",
url: "https://www.goodreads.com/user/show/2450014-adam-piontek", url: "https://www.goodreads.com/user/show/2450014-adam-piontek",
prof: false, target: "_blank" prof: false,
target: "_blank"
},
%{
icon: "mdi-twitter",
url: "https://twitter.com/adampiontek",
prof: false,
target: "_blank"
}, },
%{icon: "mdi-twitter", url: "https://twitter.com/adampiontek", prof: false, target: "_blank"},
%{icon: "mdi-facebook", url: "https://facebook.com/damek", prof: false, target: "_blank"}, %{icon: "mdi-facebook", url: "https://facebook.com/damek", prof: false, target: "_blank"},
%{ %{
icon: "mdi-instagram", icon: "mdi-instagram",
url: "https://www.instagram.com/adampiontek/", url: "https://www.instagram.com/adampiontek/",
prof: false, target: "_blank" prof: false,
target: "_blank"
}, },
%{ %{
icon: "mdi-steam", icon: "mdi-steam",
url: "https://steamcommunity.com/id/apiontek/", url: "https://steamcommunity.com/id/apiontek/",
prof: false, target: "_blank" prof: false,
target: "_blank"
}, },
%{ %{
icon: "mdi-discord", icon: "mdi-discord",
url: "https://discordapp.com/users/328583977629646848", url: "https://discordapp.com/users/328583977629646848",
prof: false, target: "_blank" prof: false,
target: "_blank"
} }
] ]
end end