added noopener & me to socials rel attribute, added mastodon links, removed steam link

This commit is contained in:
Adam Piontek 2022-11-11 08:09:01 -05:00
parent a115c96f98
commit 00ca584cca
2 changed files with 8 additions and 7 deletions

View File

@ -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">

View File

@ -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>";
}