Skip to content

Commit

Permalink
Remove monetization tag and spacing stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
whitep4nth3r committed Jan 18, 2024
1 parent ab74a38 commit 61a4921
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 16 deletions.
13 changes: 6 additions & 7 deletions src/_includes/head_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,13 @@

<meta property="og:site_name" content="whitep4nth3r.com" />

<meta name="monetization" content="$ilp.uphold.com/J7y7wkRezRYL" />

<!-- Favicons -->
<link rel="icon" href="/favicon.ico" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="apple-touch-icon" sizes="120x120" href="/apple-touch-icon-120x120.png" />
<link
rel="apple-touch-icon"
sizes="120x120"
href="/apple-touch-icon-120x120.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="manifest" href="/site.webmanifest" />
Expand All @@ -47,9 +48,7 @@
rel="alternate"
type="application/rss+xml"
title="RSS Feed for whitep4nth3r.com"
href="https://whitep4nth3r.com/feed.xml"
/>
href="https://whitep4nth3r.com/feed.xml" />
<meta
name="ahrefs-site-verification"
content="94d7e941da97f60c01de0a2e8983b05fb5194a63bd79cad02f6ef7da26ee87c3"
/>
content="94d7e941da97f60c01de0a2e8983b05fb5194a63bd79cad02f6ef7da26ee87c3" />
38 changes: 29 additions & 9 deletions src/_includes/header.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<a href="#main_content" class="header__skipToMainContent">Skip to main content</a>
<a href="#main_content" class="header__skipToMainContent">
Skip to main content
</a>

<header class="header">
<div class="header__navGroup">
Expand All @@ -9,10 +11,14 @@
<a href="/" class="header__navListItemLink" data-link="home">Home</a>
</li>
<li class="header__navListItem">
<a href="/about/" class="header__navListItemLink" data-link="about">About</a>
<a href="/about/" class="header__navListItemLink" data-link="about">
About
</a>
</li>
<li class="header__navListItem">
<a href="/blog/" class="header__navListItemLink" data-link="blog">Blog</a>
<a href="/blog/" class="header__navListItemLink" data-link="blog">
Blog
</a>
</li>
<li class="header__navListItem">
<details class="header__navListDetails">
Expand All @@ -27,15 +33,21 @@
<a href="/uses/" class="header__navListItemLink">Things I use</a>
<a href="/talks/" class="header__navListItemLink">Talks</a>
<a href="/events/" class="header__navListItemLink">Events</a>
<a href="/activity/" class="header__navListItemLink">Activity feed</a>
<a href="/sponsorships/" class="header__navListItemLink">Sponsorships</a>
<a href="/activity/" class="header__navListItemLink">
Activity feed
</a>
<a href="/sponsorships/" class="header__navListItemLink">
Sponsorships
</a>
<a
href="https://github.com/whitep4nth3r?tab=repositories"
target="_blank"
class="header__navListItemLink header__navListItemLink--external">
GitHub Projects
</a>
<a href="/discord" class="header__navListItemLink header__navListItemLink--external">
<a
href="/discord"
class="header__navListItemLink header__navListItemLink--external">
Discord
</a>
</div>
Expand All @@ -57,12 +69,17 @@
? "header__themeToggle"
: "header__themeToggle header__themeToggle--light";

const newAriaLabel = isDark ? "Change to light theme" : "Change to dark theme";
const newAriaLabel = isDark
? "Change to light theme"
: "Change to dark theme";

buttonEl.setAttribute("aria-label", newAriaLabel);
}

function calculateSettingAsThemeString({ localStorageTheme, systemSettingDark }) {
function calculateSettingAsThemeString({
localStorageTheme,
systemSettingDark,
}) {
if (localStorageTheme !== null) {
return localStorageTheme;
}
Expand All @@ -82,7 +99,10 @@
const localStorageTheme = localStorage.getItem("theme");
const systemSettingDark = window.matchMedia("(prefers-color-scheme: dark)");

let currentThemeSetting = calculateSettingAsThemeString({ localStorageTheme, systemSettingDark });
let currentThemeSetting = calculateSettingAsThemeString({
localStorageTheme,
systemSettingDark,
});

// update on page load
updateButton({ buttonEl: button, isDark: currentThemeSetting === "dark" });
Expand Down

0 comments on commit 61a4921

Please sign in to comment.