fix: several fixes to improve ahrefs site score

This commit is contained in:
Rick van Lieshout 2023-10-04 23:52:29 +02:00
parent 0e0d470ef5
commit 8245e1f0d8
11 changed files with 22 additions and 15 deletions

View File

@ -46,7 +46,7 @@
"author": { "author": {
"name": "Rick van Lieshout", "name": "Rick van Lieshout",
"photo": "/content/me.png", "photo": "/content/me.png",
"bio": "I'm a passionate software architect that bifurcates his love between great software development and leading others to learn and adopt new things.", "bio": "I'm a passionate CTO that bifurcates his love between great software development and leading others in their continuous improvement journeys",
"contacts": { "contacts": {
"email": "info@rickvanlieshout.com", "email": "info@rickvanlieshout.com",
"github": "mastermindzh", "github": "mastermindzh",

View File

@ -14,7 +14,7 @@ socialImage: "./media/improvising.jpg"
So today I finally received the required parts to finish up my Raspberry pi cluster and I was **extremely** excited! To share this excitement with you lot here's a picture of all the parts I'll be using: So today I finally received the required parts to finish up my Raspberry pi cluster and I was **extremely** excited! To share this excitement with you lot here's a picture of all the parts I'll be using:
![picture of all the parts spread on the mat](./media/pi_overview_full.JPG "all the bits!") ![picture of all the parts spread on the mat](./media/pi_overview_full.jpg "all the bits!")
I began by building the Raspberry pi "tower", sadly I forgot to take a picture with the DSLR so I only have this one cell image to show you guys: I began by building the Raspberry pi "tower", sadly I forgot to take a picture with the DSLR so I only have this one cell image to show you guys:

View File

@ -9,7 +9,7 @@ tags:
- "pi" - "pi"
description: "Today's blog post will be about expanding the cluster with more nodes." description: "Today's blog post will be about expanding the cluster with more nodes."
disqusId: "6" disqusId: "6"
socialImage: "./media/pidark_full.JPG" socialImage: "./media/pidark.jpg"
--- ---
In today's post we'll have a look at expanding the cluster with more nodes! We will have a look at how to clone them and how we can set up a universal login using ssh keys. In today's post we'll have a look at expanding the cluster with more nodes! We will have a look at how to clone them and how we can set up a universal login using ssh keys.
@ -40,7 +40,7 @@ sudo nano /etc/network/interfaces
After setting up all 4 pi's and plugging it all in you should see all 4 led's light up on the pi's. If this is not the case you might've forgotten to change either the ip address or the hostname. (which will lead to a conflict resulting in one of them not having internet access). Mine now looks like this (note the dramatic night picture taken at 10 past 12 am): After setting up all 4 pi's and plugging it all in you should see all 4 led's light up on the pi's. If this is not the case you might've forgotten to change either the ip address or the hostname. (which will lead to a conflict resulting in one of them not having internet access). Mine now looks like this (note the dramatic night picture taken at 10 past 12 am):
![picture of 4 Raspberry pi's stacked on a network switch serving as a cluster](./media/pidark_full.JPG "It's not quite RGB but it's beautiful!") ![picture of 4 Raspberry pi's stacked on a network switch serving as a cluster](./media/pidark.jpg "It's not quite RGB but it's beautiful!")
## Logging in to the nodes with ssh keys ## Logging in to the nodes with ssh keys

View File

@ -8,7 +8,7 @@ tags:
- "lsi9211" - "lsi9211"
- "raid card" - "raid card"
- "storage" - "storage"
- "sas2000" - "SAS2000"
- "it-mode" - "it-mode"
description: "Flashing the LSI-9211 used to be way more difficult, luckily the EFI shell makes this task a lot simpler!" description: "Flashing the LSI-9211 used to be way more difficult, luckily the EFI shell makes this task a lot simpler!"
socialImage: ./media/flash-result.jpg socialImage: ./media/flash-result.jpg

View File

@ -1,5 +1,5 @@
export default [ export default [
{ label: "Articles", path: "/" }, { label: "Articles", path: "/" },
{ label: "About Me", path: "/pages/about" }, { label: "About Me", path: "/pages/about/" },
{ label: "Contact Me", path: "/pages/contacts" }, { label: "Contact Me", path: "/pages/contacts/" },
]; ];

View File

@ -1,9 +1,10 @@
import React from "react"; import React from "react";
import Helmet from "react-helmet"; import Helmet from "react-helmet";
import { useSiteMetadata } from "@/hooks";
import { toKebabCase } from "../../utils";
import { CookieBar } from "../Cookiebar/CookieBar"; import { CookieBar } from "../Cookiebar/CookieBar";
import * as styles from "./Layout.module.scss"; import * as styles from "./Layout.module.scss";
import { useSiteMetadata } from "@/hooks";
interface Props { interface Props {
title: string; title: string;
@ -35,7 +36,13 @@ const Layout: React.FC<Props> = ({
<meta property="og:description" content={description} /> <meta property="og:description" content={description} />
<meta property="og:site_name" content={title} /> <meta property="og:site_name" content={title} />
<meta property="og:image" content={metaImageUrl} /> <meta property="og:image" content={metaImageUrl} />
{slug && <meta property="og:url" content={`${url}${slug}`} />} {slug && (
<meta
property="og:url"
content={`${url}/tag/${toKebabCase(slug.replace("/tag/", ""))}`}
/>
)}
<meta property="og:title" content={title} />
<meta name="twitter:card" content="summary" /> <meta name="twitter:card" content="summary" />
<meta name="twitter:title" content={title} /> <meta name="twitter:title" content={title} />
<meta name="twitter:description" content={description} /> <meta name="twitter:description" content={description} />

View File

@ -9,7 +9,7 @@ const Author = () => {
<div className={styles.author}> <div className={styles.author}>
<p className={styles.bio}> <p className={styles.bio}>
Written by:{" "} Written by:{" "}
<a href="/pages/about"> <a href="/pages/about/">
<strong>{author.name}</strong> <strong>{author.name}</strong>
</a> </a>
{typeof window !== "undefined" ? ( {typeof window !== "undefined" ? (

View File

@ -6,7 +6,7 @@ exports[`Author renders correctly 1`] = `
Written by: Written by:
<a <a
href="/pages/about" href="/pages/about/"
> >
<strong> <strong>
Rick van Lieshout Rick van Lieshout

View File

@ -165,7 +165,7 @@ exports[`Post renders correctly 1`] = `
Written by: Written by:
<a <a
href="/pages/about" href="/pages/about/"
> >
<strong> <strong>
Rick van Lieshout Rick van Lieshout

View File

@ -166,7 +166,7 @@ exports[`PostTemplate renders correctly 1`] = `
Written by: Written by:
<a <a
href="/pages/about" href="/pages/about/"
> >
<strong> <strong>
Rick van Lieshout Rick van Lieshout

View File

@ -55,10 +55,10 @@ RewriteCond %{SERVER_PORT} ^80$
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301] RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301]
RewriteCond %{HTTP_HOST} ^rickvanlieshout.com [NC] RewriteCond %{HTTP_HOST} ^rickvanlieshout.com [NC]
RewriteRule ^(.*)$ http://www.rickvanlieshout.com/$1 [L,R=301] RewriteRule ^(.*)$ https://www.rickvanlieshout.com/$1 [L,R=301]
RewriteCond %{HTTP_HOST} ^mastermindzh.com [NC] RewriteCond %{HTTP_HOST} ^mastermindzh.com [NC]
RewriteRule ^(.*)$ http://www.mastermindzh.com/$1 [L,R=301] RewriteRule ^(.*)$ https://www.mastermindzh.com/$1 [L,R=301]
# Optional: explicitly enable per-directory rewrites in the .htaccess context. # Optional: explicitly enable per-directory rewrites in the .htaccess context.