mirror of
https://github.com/ritz078/transform.git
synced 2026-11-21 16:43:56 +03:00
SEO improvements
This commit is contained in:
1 parent
f27524e8ab
commit
daa49b1af2
2 files changed
+21
-9
No files matched your search
+6
-3
@@ -1,7 +1,7 @@
|
||||
import Head from "next/head";
|
||||
import React from "react";
|
||||
|
||||
export const Meta = ({ title, description, url, image }) => {
|
||||
export const Meta = ({ title, description, url }) => {
|
||||
return (
|
||||
<Head>
|
||||
<title>{title}</title>
|
||||
@@ -9,11 +9,14 @@ export const Meta = ({ title, description, url, image }) => {
|
||||
<meta name="og:url" content={url} />
|
||||
<meta name="og:title" content={title} />
|
||||
<meta name="og:description" content={description} />
|
||||
<meta name="og:image" content={image} />
|
||||
<meta name="og:image" content={"https://transform.tools/cover.png"} />
|
||||
<meta name="og:type" content="website" />
|
||||
<meta name="twitter:title" content={title} />
|
||||
<meta name="twitter:description" content={description} />
|
||||
<meta name="twitter:image" content={image} />
|
||||
<meta
|
||||
name="twitter:image"
|
||||
content={"https://transform.tools/cover.png"}
|
||||
/>
|
||||
<meta name="twitter:card" content="summary_large_image" />
|
||||
<meta name="twitter:creator" content="ritz078" />
|
||||
<link rel="manifest" href="/static/site.webmanifest" />
|
||||
|
||||
+15
-6
@@ -65,12 +65,21 @@ export default function App(props) {
|
||||
|
||||
return (
|
||||
<>
|
||||
<Meta
|
||||
title={activeRoute?.searchTerm}
|
||||
url={`https://transform.tools${router.pathname}`}
|
||||
description={activeRoute?.desc}
|
||||
image={"https://transform.tools/cover.png"}
|
||||
/>
|
||||
{router.pathname === "/" || !router.pathname ? (
|
||||
<Meta
|
||||
title={"Transform"}
|
||||
url={`https://transform.tools${router.pathname}`}
|
||||
description={
|
||||
"A polyglot web converter that helps you in converting code from language to another."
|
||||
}
|
||||
/>
|
||||
) : (
|
||||
<Meta
|
||||
title={activeRoute?.searchTerm}
|
||||
url={`https://transform.tools${router.pathname}`}
|
||||
description={activeRoute?.desc}
|
||||
/>
|
||||
)}
|
||||
<Pane
|
||||
display="flex"
|
||||
alignItems="center"
|
||||
|
||||
Reference in new issue
Block a user