From 8245e1f0d8854cd6a727a8b837ee3259ee040d48 Mon Sep 17 00:00:00 2001 From: Mastermindzh Date: Wed, 4 Oct 2023 23:52:29 +0200 Subject: [PATCH] fix: several fixes to improve ahrefs site score --- content/config.json | 2 +- content/posts/2014/pi-cluster-2-the-build/index.md | 2 +- .../2014/pi-cluster-5-expanding-the-cluster/index.md | 4 ++-- .../posts/2023/flashing-lsi-9211-with-efi/index.md | 2 +- internal/testing/__mocks__/legalMenu.ts | 4 ++-- src/components/Layout/Layout.tsx | 11 +++++++++-- src/components/Post/Author/Author.tsx | 2 +- .../Post/Author/__snapshots__/Author.test.tsx.snap | 2 +- src/components/Post/__snapshots__/Post.test.tsx.snap | 2 +- .../__snapshots__/PostTemplate.test.tsx.snap | 2 +- static/.htaccess | 4 ++-- 11 files changed, 22 insertions(+), 15 deletions(-) diff --git a/content/config.json b/content/config.json index e36f0f4..e9d2166 100644 --- a/content/config.json +++ b/content/config.json @@ -46,7 +46,7 @@ "author": { "name": "Rick van Lieshout", "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": { "email": "info@rickvanlieshout.com", "github": "mastermindzh", diff --git a/content/posts/2014/pi-cluster-2-the-build/index.md b/content/posts/2014/pi-cluster-2-the-build/index.md index ca86401..4a1df48 100644 --- a/content/posts/2014/pi-cluster-2-the-build/index.md +++ b/content/posts/2014/pi-cluster-2-the-build/index.md @@ -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: -![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: diff --git a/content/posts/2014/pi-cluster-5-expanding-the-cluster/index.md b/content/posts/2014/pi-cluster-5-expanding-the-cluster/index.md index 3d8b1be..e901a7b 100644 --- a/content/posts/2014/pi-cluster-5-expanding-the-cluster/index.md +++ b/content/posts/2014/pi-cluster-5-expanding-the-cluster/index.md @@ -9,7 +9,7 @@ tags: - "pi" description: "Today's blog post will be about expanding the cluster with more nodes." 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. @@ -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): -![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 diff --git a/content/posts/2023/flashing-lsi-9211-with-efi/index.md b/content/posts/2023/flashing-lsi-9211-with-efi/index.md index e9ab4eb..f711d68 100644 --- a/content/posts/2023/flashing-lsi-9211-with-efi/index.md +++ b/content/posts/2023/flashing-lsi-9211-with-efi/index.md @@ -8,7 +8,7 @@ tags: - "lsi9211" - "raid card" - "storage" - - "sas2000" + - "SAS2000" - "it-mode" 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 diff --git a/internal/testing/__mocks__/legalMenu.ts b/internal/testing/__mocks__/legalMenu.ts index 149fa7a..e6ce5c5 100644 --- a/internal/testing/__mocks__/legalMenu.ts +++ b/internal/testing/__mocks__/legalMenu.ts @@ -1,5 +1,5 @@ export default [ { label: "Articles", path: "/" }, - { label: "About Me", path: "/pages/about" }, - { label: "Contact Me", path: "/pages/contacts" }, + { label: "About Me", path: "/pages/about/" }, + { label: "Contact Me", path: "/pages/contacts/" }, ]; diff --git a/src/components/Layout/Layout.tsx b/src/components/Layout/Layout.tsx index e245abb..d182483 100644 --- a/src/components/Layout/Layout.tsx +++ b/src/components/Layout/Layout.tsx @@ -1,9 +1,10 @@ import React from "react"; import Helmet from "react-helmet"; +import { useSiteMetadata } from "@/hooks"; +import { toKebabCase } from "../../utils"; import { CookieBar } from "../Cookiebar/CookieBar"; import * as styles from "./Layout.module.scss"; -import { useSiteMetadata } from "@/hooks"; interface Props { title: string; @@ -35,7 +36,13 @@ const Layout: React.FC = ({ - {slug && } + {slug && ( + + )} + diff --git a/src/components/Post/Author/Author.tsx b/src/components/Post/Author/Author.tsx index acfb3db..41e0f13 100644 --- a/src/components/Post/Author/Author.tsx +++ b/src/components/Post/Author/Author.tsx @@ -9,7 +9,7 @@ const Author = () => {

Written by:{" "} - + {author.name} {typeof window !== "undefined" ? ( diff --git a/src/components/Post/Author/__snapshots__/Author.test.tsx.snap b/src/components/Post/Author/__snapshots__/Author.test.tsx.snap index 3c2881d..5109dba 100644 --- a/src/components/Post/Author/__snapshots__/Author.test.tsx.snap +++ b/src/components/Post/Author/__snapshots__/Author.test.tsx.snap @@ -6,7 +6,7 @@ exports[`Author renders correctly 1`] = ` Written by: Rick van Lieshout diff --git a/src/components/Post/__snapshots__/Post.test.tsx.snap b/src/components/Post/__snapshots__/Post.test.tsx.snap index 5cf7a37..5b6d028 100644 --- a/src/components/Post/__snapshots__/Post.test.tsx.snap +++ b/src/components/Post/__snapshots__/Post.test.tsx.snap @@ -165,7 +165,7 @@ exports[`Post renders correctly 1`] = ` Written by: Rick van Lieshout diff --git a/src/templates/PostTemplate/__snapshots__/PostTemplate.test.tsx.snap b/src/templates/PostTemplate/__snapshots__/PostTemplate.test.tsx.snap index e680df5..a794cd4 100644 --- a/src/templates/PostTemplate/__snapshots__/PostTemplate.test.tsx.snap +++ b/src/templates/PostTemplate/__snapshots__/PostTemplate.test.tsx.snap @@ -166,7 +166,7 @@ exports[`PostTemplate renders correctly 1`] = ` Written by: Rick van Lieshout diff --git a/static/.htaccess b/static/.htaccess index b11b753..a0174dd 100644 --- a/static/.htaccess +++ b/static/.htaccess @@ -55,10 +55,10 @@ RewriteCond %{SERVER_PORT} ^80$ RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301] 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] -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.