mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-09-12 03:06:30 +02:00
fix: several fixes to improve ahrefs site score
This commit is contained in:
@@ -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<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}`} />}
|
||||
{slug && (
|
||||
<meta
|
||||
property="og:url"
|
||||
content={`${url}/tag/${toKebabCase(slug.replace("/tag/", ""))}`}
|
||||
/>
|
||||
)}
|
||||
<meta property="og:title" content={title} />
|
||||
<meta name="twitter:card" content="summary" />
|
||||
<meta name="twitter:title" content={title} />
|
||||
<meta name="twitter:description" content={description} />
|
||||
|
Reference in New Issue
Block a user