12 Commits

Author SHA1 Message Date
e7fae60efb chore(release): 1.3.1 2023-10-29 15:34:10 +01:00
1c4c9d058a fix: set current url tags in both ssr and browser space 2023-10-29 15:33:28 +01:00
e065f16fb5 fix: now setting og:url correctly as well as the canonical url 2023-10-25 23:59:16 +02:00
8245e1f0d8 fix: several fixes to improve ahrefs site score 2023-10-04 23:52:29 +02:00
0e0d470ef5 Merge pull request #23 from Mastermindzh/snyk-upgrade-861d2c2a9d0f48a7a82e9adaed22da14
[Snyk] Upgrade gatsby from 5.12.3 to 5.12.4
2023-09-27 11:16:11 +02:00
snyk-bot
f13f40df35 fix: upgrade gatsby from 5.12.3 to 5.12.4
Snyk has created this PR to upgrade gatsby from 5.12.3 to 5.12.4.

See this package in npm:
https://www.npmjs.com/package/gatsby

See this project in Snyk:
https://app.snyk.io/org/mastermindzh/project/6eb54845-2bb5-45e0-80e2-6b3a1c53eee6?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-09-26 22:04:09 +00:00
81dee3ad5c Merge pull request #22 from Mastermindzh/fixes/tags
Fixes/tags
2023-09-24 18:13:51 +02:00
7dc8aade23 Merge branch 'master' of github.com:Mastermindzh/rickvanlieshout.com into fixes/tags 2023-09-24 15:36:01 +02:00
7019f34005 fix: fixed tags and categories in several blog posts 2023-09-24 15:35:46 +02:00
167b70159c Merge pull request #21 from Mastermindzh/content/lego-league
Content/lego league
2023-09-24 13:31:23 +02:00
ed28488273 Merge pull request #20 from Mastermindzh/snyk-upgrade-5eb3a4375a49780aad6a02dba66f6bd2
[Snyk] Upgrade gatsby from 5.12.1 to 5.12.3
2023-09-20 13:51:16 +02:00
snyk-bot
043d08e58f fix: upgrade gatsby from 5.12.1 to 5.12.3
Snyk has created this PR to upgrade gatsby from 5.12.1 to 5.12.3.

See this package in npm:
https://www.npmjs.com/package/gatsby

See this project in Snyk:
https://app.snyk.io/org/mastermindzh/project/6eb54845-2bb5-45e0-80e2-6b3a1c53eee6?utm_source=github&utm_medium=referral&page=upgrade-pr
2023-09-19 05:03:53 +00:00
31 changed files with 96 additions and 76 deletions

View File

@@ -2,6 +2,18 @@
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
### [1.3.1](https://github.com/mastermindzh/rickvanlieshout.com/compare/v1.3.0...v1.3.1) (2023-10-29)
### Bug Fixes
* fixed tags and categories in several blog posts ([7019f34](https://github.com/mastermindzh/rickvanlieshout.com/commits/7019f340050c04eed6065c4ddd4582d6b2d22b9b))
* now setting og:url correctly as well as the canonical url ([e065f16](https://github.com/mastermindzh/rickvanlieshout.com/commits/e065f16fb505eb8f9e5acef6f92c5a016e276ebc))
* set current url tags in both ssr and browser space ([1c4c9d0](https://github.com/mastermindzh/rickvanlieshout.com/commits/1c4c9d058a7382ebe52dd1b188b22ca8d7a185c3))
* several fixes to improve ahrefs site score ([8245e1f](https://github.com/mastermindzh/rickvanlieshout.com/commits/8245e1f0d8854cd6a727a8b837ee3259ee040d48))
* upgrade gatsby from 5.12.1 to 5.12.3 ([043d08e](https://github.com/mastermindzh/rickvanlieshout.com/commits/043d08e58f9962688bd615b8e8d535e4111e7aa2))
* upgrade gatsby from 5.12.3 to 5.12.4 ([f13f40d](https://github.com/mastermindzh/rickvanlieshout.com/commits/f13f40df35cc0230ddcf7766a7b2e73477696439))
## [1.3.0](https://github.com/mastermindzh/rickvanlieshout.com/compare/v1.2.3...v1.3.0) (2023-09-23)

View File

@@ -7,8 +7,8 @@ A list of categories used in the blog
| ----------- | -------------------------------------------------------- |
| blog | random blog stuff |
| IOT | anything to do with IOT |
| Homelab | anything to do with my homelab (including smart home...) |
| Development | anything to do with regular development |
| homelab | anything to do with my homelab (including smart home...) |
| development | anything to do with regular development |
| exploits | blogs about exploits and bugs in open-source software |
| Lego | blogs about Lego |
| lego | blogs about Lego |
| house | Content about the place I live |

View File

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

View File

@@ -2,7 +2,7 @@
title: "Raspberry pi cluster Step 1: Shopping"
date: "2014-09-05 23:00"
template: "post"
category: "Homelab"
category: "homelab"
tags:
- "raspberry"
- "cluster"

View File

@@ -2,7 +2,7 @@
title: "Raspberry pi cluster Step 2: Assembling the hardware"
date: "2014-09-10"
template: "post"
category: "Homelab"
category: "homelab"
tags:
- "raspberry"
- "cluster"
@@ -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:

View File

@@ -2,7 +2,7 @@
title: "Raspberry pi cluster Step 3: Installing the OS"
date: "2014-09-14"
template: "post"
category: "Homelab"
category: "homelab"
tags:
- "raspberry"
- "cluster"

View File

@@ -2,7 +2,7 @@
title: "Raspberry pi cluster Step 4: Setting up the master node"
date: "2014-09-17"
template: "post"
category: "Homelab"
category: "homelab"
tags:
- "raspberry"
- "cluster"

View File

@@ -2,14 +2,14 @@
title: "Raspberry pi cluster step 5: Expanding the cluster"
date: "2014-09-19"
template: "post"
category: "Homelab"
category: "homelab"
tags:
- "raspberry"
- "cluster"
- "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

View File

@@ -2,12 +2,12 @@
title: "The pi cluster, home automation & kickstarter monitoring"
date: "2014-09-27"
template: "post"
category: "Homelab"
category: "homelab"
tags:
- "python"
- "raspberry"
- "pi"
- "home automation"
- "home-automation"
description: "Today's blog is about home automation."
disqusId: "7"
---

View File

@@ -3,9 +3,9 @@ title: Scala Day 0 - What is Scala?
date: "2017-03-30"
template: "post"
draft: false
category: "Development"
category: "development"
tags:
- "Development"
- "development"
- "slsw"
description: "My final assignment for a school course is to learn a new language from a book (uh-oh). I picked Scala and here's why"
disqusId: "20"

View File

@@ -3,9 +3,9 @@ title: Scala Day 1 - The Basics
date: "2017-04-02"
template: "post"
draft: false
category: "Development"
category: "development"
tags:
- "Development"
- "development"
- "slsw"
description: "Let's take a deep dive into a programming book and Scala!"
disqusId: "21"

View File

@@ -3,9 +3,9 @@ title: Scala Day 2 - Let's get functional
date: "2017-04-03"
template: "post"
draft: false
category: "Development"
category: "development"
tags:
- "Development"
- "development"
- "slsw"
description: "Today we'll focus on the functional aspects of Scala"
disqusId: "22"

View File

@@ -3,9 +3,9 @@ title: Scala Day 3 - Concurrency is key!
date: "2017-04-04"
template: "post"
draft: false
category: "Development"
category: "development"
tags:
- "Development"
- "development"
- "slsw"
description: "A day full of functional joy and concurrency "
disqusId: "23"

View File

@@ -3,9 +3,9 @@ title: Scala Day 4 - A challenge!
date: "2017-04-05"
template: "post"
draft: false
category: "Development"
category: "development"
tags:
- "Development"
- "development"
- "slsw"
description: "The last day of my journey with Scala is said to be a challenge"
disqusId: "24"

View File

@@ -2,13 +2,13 @@
title: Adopting conventional commits and standard versions in a git and npm codebase
date: "2022-11-07"
template: "post"
category: "Development"
category: "development"
tags:
- "git"
- "conventional commits"
- "semantic commits"
- "INFORIT"
- "Standard releases"
- "conventional-commits"
- "semantic-commits"
- "inforit"
- "standard-releases"
description: "A dive into conventional commits and their benefit whilst releasing with standard versions."
socialImage: "./media/husky-error.png"

View File

@@ -2,14 +2,14 @@
title: Flashing the LSI-9211 to IT mode using an EFI shell
date: "2023-04-12"
template: "post"
category: "Homelab"
category: "homelab"
tags:
- "lsi"
- "lsi9211"
- "raid card"
- "storage"
- "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!"
socialImage: ./media/flash-result.jpg
---

View File

@@ -9,6 +9,7 @@ tags:
- "programming"
- "team"
- "work"
- "inforit"
description: "At INFORIT we love to play! Be it DND, board games or in this case... Legos. Read on to find out what we've been up to this past summer vacation"
socialImage: ./media/lego-spike-set.png
---

View File

@@ -4,7 +4,7 @@ date: "2023-02-14"
template: "post"
category: "blog"
tags:
- "Lego"
- "lego"
- "house"
description: "What started as a simple decoration piece to fill some empty space in my home quickly grew into a new hobby of which the remnants can be found throughout my house"
socialImage: ./media/building-the-owl.jpg

View File

@@ -1,3 +0,0 @@
import "./src/assets/scss/main.scss";
import "./src/assets/scss/prism/github.scss";
import "./src/assets/scss/prism/prism-tomorrow.scss";

19
gatsby-browser.tsx Normal file
View File

@@ -0,0 +1,19 @@
import "./src/assets/scss/main.scss";
import "./src/assets/scss/prism/github.scss";
import "./src/assets/scss/prism/prism-tomorrow.scss";
export const onRouteUpdate = ({ location }: { location: { pathname: string } }) => {
const elements = document.querySelectorAll("[data-url]");
const currentUrl = `https://rickvanlieshout.com${location.pathname ?? ""}`;
const setAttributeIfAvailable = (element: Element, elementIdentifier: string) => {
if (element.hasAttribute(elementIdentifier)) {
element.setAttribute(elementIdentifier, currentUrl);
}
};
elements.forEach((element) => {
setAttributeIfAvailable(element, "href");
setAttributeIfAvailable(element, "content");
});
};

View File

@@ -164,13 +164,6 @@ export default {
start_url: "/",
},
},
{
resolve: "gatsby-plugin-react-helmet-canonical-urls",
options: {
siteUrl: config.url,
stripQueryString: true,
},
},
// remove the old service worker if it is available.
"gatsby-plugin-remove-serviceworker",
"gatsby-plugin-image",

View File

@@ -18,7 +18,19 @@ const setColorTheme = `
}
})();
`;
export const onRenderBody = ({ setPreBodyComponents }: RenderBodyArgs) => {
export const onRenderBody = ({
setPreBodyComponents,
setHeadComponents,
pathname,
}: RenderBodyArgs) => {
const currentUrl = `https://rickvanlieshout.com${pathname}`;
setHeadComponents([
<meta data-url="currentUrl" key="og:url" property="og:url" content={currentUrl} />,
<link data-url="currentUrl" key="canonical" rel="canonical" href={currentUrl} />,
<meta data-url="currentUrl" property="test:rick" key="test:rick" content={currentUrl} />,
]);
setPreBodyComponents([
React.createElement("script", {
key: "theme",

View File

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

27
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "rickvanlieshout-com",
"version": "1.3.0",
"version": "1.3.1",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "rickvanlieshout-com",
"version": "1.3.0",
"version": "1.3.1",
"license": "MIT",
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^6.4.2",
@@ -14,7 +14,7 @@
"@fortawesome/react-fontawesome": "^0.2.0",
"classnames": "^2.3.2",
"disqus-react": "^1.1.5",
"gatsby": "^5.12.1",
"gatsby": "^5.12.4",
"gatsby-link": "^5.12.0",
"gatsby-plugin-catch-links": "^5.12.0",
"gatsby-plugin-feed": "^5.12.0",
@@ -23,7 +23,6 @@
"gatsby-plugin-manifest": "^5.12.0",
"gatsby-plugin-optimize-svgs": "^1.0.5",
"gatsby-plugin-react-helmet": "^6.12.0",
"gatsby-plugin-react-helmet-canonical-urls": "^1.4.0",
"gatsby-plugin-remove-serviceworker": "^1.0.0",
"gatsby-plugin-robots-txt": "^1.8.0",
"gatsby-plugin-sass": "^6.12.0",
@@ -15252,9 +15251,9 @@
}
},
"node_modules/gatsby": {
"version": "5.12.1",
"resolved": "https://registry.npmjs.org/gatsby/-/gatsby-5.12.1.tgz",
"integrity": "sha512-6NUmyMwx7mO9++aRiSDTBlRP1v5B5agsLTG9xP6MpZxQkojHobIi0nhZ7KMD38o/CNw9JAkCJxxiTd0ZOfKoHg==",
"version": "5.12.4",
"resolved": "https://registry.npmjs.org/gatsby/-/gatsby-5.12.4.tgz",
"integrity": "sha512-FVUKCrZUxA80uhrTMli5B3AVaJeJJfM4rVbHeoi1Vae4Z1/EBYPDxamVLRVPDHGluhThiyPlZ6/32DAop7NQiQ==",
"hasInstallScript": true,
"dependencies": {
"@babel/code-frame": "^7.18.6",
@@ -15338,7 +15337,7 @@
"find-cache-dir": "^3.3.2",
"fs-exists-cached": "1.0.0",
"fs-extra": "^11.1.1",
"gatsby-cli": "^5.12.0",
"gatsby-cli": "^5.12.1",
"gatsby-core-utils": "^4.12.0",
"gatsby-graphiql-explorer": "^3.12.0",
"gatsby-legacy-polyfills": "^3.12.0",
@@ -16060,18 +16059,6 @@
"react-helmet": "^5.1.3 || ^6.0.0"
}
},
"node_modules/gatsby-plugin-react-helmet-canonical-urls": {
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/gatsby-plugin-react-helmet-canonical-urls/-/gatsby-plugin-react-helmet-canonical-urls-1.4.0.tgz",
"integrity": "sha512-5g2eqFNh8GSCTvL25sNm84IJ6G79qKHSnOa9druxBj6x5Iw3EujZMv6I4nGMlW5EZlaSf9D5QHNGypUW6idPTg==",
"dependencies": {
"@babel/runtime": "^7.3.1"
},
"peerDependencies": {
"gatsby-plugin-react-helmet": "*",
"react-helmet": "*"
}
},
"node_modules/gatsby-plugin-remove-serviceworker": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/gatsby-plugin-remove-serviceworker/-/gatsby-plugin-remove-serviceworker-1.0.0.tgz",

View File

@@ -1,6 +1,6 @@
{
"name": "rickvanlieshout-com",
"version": "1.3.0",
"version": "1.3.1",
"description": "My personal blog / website",
"keywords": [
"gatsby",
@@ -54,7 +54,7 @@
"@fortawesome/react-fontawesome": "^0.2.0",
"classnames": "^2.3.2",
"disqus-react": "^1.1.5",
"gatsby": "^5.12.1",
"gatsby": "^5.12.4",
"gatsby-link": "^5.12.0",
"gatsby-plugin-catch-links": "^5.12.0",
"gatsby-plugin-feed": "^5.12.0",
@@ -63,7 +63,6 @@
"gatsby-plugin-manifest": "^5.12.0",
"gatsby-plugin-optimize-svgs": "^1.0.5",
"gatsby-plugin-react-helmet": "^6.12.0",
"gatsby-plugin-react-helmet-canonical-urls": "^1.4.0",
"gatsby-plugin-remove-serviceworker": "^1.0.0",
"gatsby-plugin-robots-txt": "^1.8.0",
"gatsby-plugin-sass": "^6.12.0",

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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