From eed814a53ad9fb756c9b4bd15befb88dfcf9da79 Mon Sep 17 00:00:00 2001 From: Adam Piontek Date: Tue, 6 Apr 2021 20:19:49 -0400 Subject: [PATCH] adding noreferrer to social links --- lib/home73k_web/templates/home/index.html.eex | 2 +- lib/home73k_web/views/home_view.ex | 25 +++++++++++++------ 2 files changed, 19 insertions(+), 8 deletions(-) diff --git a/lib/home73k_web/templates/home/index.html.eex b/lib/home73k_web/templates/home/index.html.eex index b77fcc2..95fa5d8 100644 --- a/lib/home73k_web/templates/home/index.html.eex +++ b/lib/home73k_web/templates/home/index.html.eex @@ -21,7 +21,7 @@
<%= 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"] %> <% end %> <% end %> diff --git a/lib/home73k_web/views/home_view.ex b/lib/home73k_web/views/home_view.ex index 04d79f8..f773004 100644 --- a/lib/home73k_web/views/home_view.ex +++ b/lib/home73k_web/views/home_view.ex @@ -13,36 +13,47 @@ defmodule Home73kWeb.HomeView do %{ icon: "mdi-linkedin", 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: "gitea", url: "https://73k.us/git/adam", prof: true, target: "_blank"}, %{ icon: "mdi-key-variant", url: Routes.static_path(conn, "/DF185CEE29A3D443_public_key.asc"), - prof: true, target: "_blank" + prof: true, + target: "_blank" }, %{ icon: "mdi-goodreads", 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-instagram", url: "https://www.instagram.com/adampiontek/", - prof: false, target: "_blank" + prof: false, + target: "_blank" }, %{ icon: "mdi-steam", url: "https://steamcommunity.com/id/apiontek/", - prof: false, target: "_blank" + prof: false, + target: "_blank" }, %{ icon: "mdi-discord", url: "https://discordapp.com/users/328583977629646848", - prof: false, target: "_blank" + prof: false, + target: "_blank" } ] end