mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2024-12-26 06:49:18 +01:00
fix: added www
This commit is contained in:
parent
e7fae60efb
commit
247a9a17e0
@ -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)
|
||||||
|
|
||||||
|
@ -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)) {
|
||||||
|
@ -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} />,
|
||||||
|
Loading…
Reference in New Issue
Block a user