From 00ca584cca43b239fd122f05ebd1f816524cb276 Mon Sep 17 00:00:00 2001
From: Adam Piontek <adam@73k.us>
Date: Fri, 11 Nov 2022 08:09:01 -0500
Subject: [PATCH] added noopener & me to socials rel attribute, added mastodon
 links, removed steam link

---
 header.php  |  1 +
 socials.php | 14 +++++++-------
 2 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/header.php b/header.php
index d57135a..96c8f75 100755
--- a/header.php
+++ b/header.php
@@ -24,6 +24,7 @@ namespace WP_73k;
   <meta name="author" content="Adam Piontek"/>
   <link rel="me" href="mailto:adam@73k.us"/>
   <link rel="me" href="sms:+16462341697"/>
+  <link rel="me" href="https://kolektiva.social/@adampiontek"/>
   <link rel="authorization_endpoint" href="https://indieauth.com/auth"/>
 
   <link rel="preload" href="<?php echo get_stylesheet_directory_uri() . '/dist/fonts/righteous-latin-400-normal.woff2'; ?>" as="font" type="font/woff2" crossorigin="anonymous">
diff --git a/socials.php b/socials.php
index a4ca20d..05a29ec 100755
--- a/socials.php
+++ b/socials.php
@@ -32,6 +32,12 @@ $social_icons = array(
     'prof' => false,
     'target' => "_blank"
   ),
+  array(
+    'icon' => "mdi-mastodon",
+    'url' => "https://kolektiva.social/@adampiontek",
+    'prof' => false,
+    'target' => "_blank"
+  ),
   array(
     'icon' => "mdi-twitter",
     'url' => "https://twitter.com/adampiontek",
@@ -45,12 +51,6 @@ $social_icons = array(
     'prof' => false,
     'target' => "_blank"
   ),
-  array(
-    'icon' => "mdi-steam",
-    'url' => "https://steamcommunity.com/id/apiontek/",
-    'prof' => false,
-    'target' => "_blank"
-  ),
   array(
     'icon' => "mdi-discord",
     'url' => "https://discordapp.com/users/328583977629646848",
@@ -77,7 +77,7 @@ function social_icons_str($icons_arr) {
   $out_str = '<div id="social-icons">';
   foreach ($icons_arr as $i=>$social) {
     $pad = $i == 0 ? 'pe-1' : ($i == (count($icons_arr) - 1) ? 'ps-1' : 'px-1');
-    $out_str .= '<a href="' . $social['url'] . '" rel="noreferrer" target="' . $social['target'];
+    $out_str .= '<a href="' . $social['url'] . '" rel="me noopener noreferrer" target="' . $social['target'];
     $out_str .= '" class="fs-3 link-light text-decoration-none ' . $pad . '">';
     $out_str .= inline_svg($social['icon'], array( 'div_class' => 'icon baseline' ) ) . "</a>";
   }