mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2024-12-25 14:29:36 +01:00
fix: added www
This commit is contained in:
parent
e7fae60efb
commit
247a9a17e0
@ -1,6 +1,6 @@
|
||||
# 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)
|
||||
|
||||
|
@ -4,7 +4,7 @@ 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 currentUrl = `https://www.rickvanlieshout.com${location.pathname ?? ""}`;
|
||||
|
||||
const setAttributeIfAvailable = (element: Element, elementIdentifier: string) => {
|
||||
if (element.hasAttribute(elementIdentifier)) {
|
||||
|
@ -23,7 +23,7 @@ export const onRenderBody = ({
|
||||
setHeadComponents,
|
||||
pathname,
|
||||
}: RenderBodyArgs) => {
|
||||
const currentUrl = `https://rickvanlieshout.com${pathname}`;
|
||||
const currentUrl = `https://www.rickvanlieshout.com${pathname}`;
|
||||
|
||||
setHeadComponents([
|
||||
<meta data-url="currentUrl" key="og:url" property="og:url" content={currentUrl} />,
|
||||
|
Loading…
Reference in New Issue
Block a user