fix: added www

This commit is contained in:
Rick van Lieshout 2023-10-29 15:41:11 +01:00
parent e7fae60efb
commit 247a9a17e0
3 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
# Rickvanlieshout.com # Rickvanlieshout.com
This is the repository for my personal blog/website [rickvanlieshout.com](https://rickvanlieshout.com). This is the repository for my personal blog/website [rickvanlieshout.com](https://www.rickvanlieshout.com).
[![Build Status](https://ci.mastermindzh.tech/api/badges/Mastermindzh/rickvanlieshout.com/status.svg)](https://ci.mastermindzh.tech/Mastermindzh/rickvanlieshout.com) [![Build Status](https://ci.mastermindzh.tech/api/badges/Mastermindzh/rickvanlieshout.com/status.svg)](https://ci.mastermindzh.tech/Mastermindzh/rickvanlieshout.com)

View File

@ -4,7 +4,7 @@ import "./src/assets/scss/prism/prism-tomorrow.scss";
export const onRouteUpdate = ({ location }: { location: { pathname: string } }) => { export const onRouteUpdate = ({ location }: { location: { pathname: string } }) => {
const elements = document.querySelectorAll("[data-url]"); const elements = document.querySelectorAll("[data-url]");
const currentUrl = `https://rickvanlieshout.com${location.pathname ?? ""}`; const currentUrl = `https://www.rickvanlieshout.com${location.pathname ?? ""}`;
const setAttributeIfAvailable = (element: Element, elementIdentifier: string) => { const setAttributeIfAvailable = (element: Element, elementIdentifier: string) => {
if (element.hasAttribute(elementIdentifier)) { if (element.hasAttribute(elementIdentifier)) {

View File

@ -23,7 +23,7 @@ export const onRenderBody = ({
setHeadComponents, setHeadComponents,
pathname, pathname,
}: RenderBodyArgs) => { }: RenderBodyArgs) => {
const currentUrl = `https://rickvanlieshout.com${pathname}`; const currentUrl = `https://www.rickvanlieshout.com${pathname}`;
setHeadComponents([ setHeadComponents([
<meta data-url="currentUrl" key="og:url" property="og:url" content={currentUrl} />, <meta data-url="currentUrl" key="og:url" property="og:url" content={currentUrl} />,