fix URL and ld-json

pull/19/head
Gabi Purcaru 2022-12-26 13:15:47 +01:00
rodzic 252e39e162
commit fba7d58ac3
3 zmienionych plików z 21 dodań i 3 usunięć

Wyświetl plik

@ -1,4 +1,6 @@
import Link from 'next/link'
import React from 'react'
export default function Header() {
return (
<header className="fixed w-full">
@ -25,9 +27,9 @@ export default function Header() {
</header>
)
function Logo({}) {
function Logo({ }) {
return (
<a href="#" className="flex items-center">
<Link href="/" className="flex items-center">
<svg
className="w-12 h-12 mr-4 dark:fill-white"
xmlns="http://www.w3.org/2000/svg"
@ -43,7 +45,7 @@ export default function Header() {
<span className="self-center text-xl font-semibold whitespace-nowrap dark:text-white">
Followgraph for Mastodon
</span>
</a>
</Link>
)
}
}

Wyświetl plik

@ -15,6 +15,22 @@ export default function Home() {
content="Find people to follow on Mastodon by expanding your follow graph."
/>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<script type="application/ld+json">
{`{
"@context": "https://schema.org",
"@type": "WebSite",
"url": "https://followgraph.vercel.app/",
"image": {
"@type": "ImageObject",
"@id": "https://followgraph.vercel.app/#/schema/ImageObject/FollowGraphThumbnail",
"url": "/ldjson-logo.jpg",
"contentUrl": "/ldjson-logo.jpg",
"caption": "Followgraph for Mastodon",
"width": 345,
"height": 345
}
}`}
</script>
<link rel="icon" href="/favicon.ico" />
</Head>
<div>

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 4.4 KiB