mirror of
https://github.com/urbit/developers.urbit.org.git
synced 2024-09-11 13:55:59 +03:00
fixing opengraph images
This commit is contained in:
parent
7e21d18f40
commit
0c5d6ba33e
@ -1,5 +0,0 @@
|
|||||||
<link rel="icon" type="image/png" href="/images/favicon.ico" />
|
|
||||||
<link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon.png"/>
|
|
||||||
<link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32.png"/>
|
|
||||||
<link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16.png"/>
|
|
||||||
<link rel="manifest" href="/images/site.webmanifest"/>
|
|
@ -4,10 +4,30 @@ export default function Meta(post, disableImage) {
|
|||||||
const description =
|
const description =
|
||||||
post?.description || "Urbit provides foundational primitives at the operating system layer, serving as a better platform for building networked, decentralized applications.";
|
post?.description || "Urbit provides foundational primitives at the operating system layer, serving as a better platform for building networked, decentralized applications.";
|
||||||
const image =
|
const image =
|
||||||
post?.extra?.image || "https://storage.googleapis.com/media.urbit.org/site/opengraph/developers.png";
|
post?.extra?.image || "https://storage.googleapis.com/media.urbit.org/site/opengraph/sig-white.png";
|
||||||
return (
|
return (
|
||||||
|
|
||||||
<>
|
<>
|
||||||
|
|
||||||
|
<link rel="icon" type="image/png" href="/images/favicon.ico" />
|
||||||
|
<link
|
||||||
|
rel="apple-touch-icon"
|
||||||
|
sizes="180x180"
|
||||||
|
href="/images/apple-touch-icon.png"
|
||||||
|
/>
|
||||||
|
<link
|
||||||
|
rel="icon"
|
||||||
|
type="image/png"
|
||||||
|
sizes="32x32"
|
||||||
|
href="/images/favicon-32x32.png"
|
||||||
|
/>
|
||||||
|
<link
|
||||||
|
rel="icon"
|
||||||
|
type="image/png"
|
||||||
|
sizes="16x16"
|
||||||
|
href="/images/favicon-16x16.png"
|
||||||
|
/>
|
||||||
|
<link rel="manifest" href="/images/site.webmanifest" />
|
||||||
|
|
||||||
<meta
|
<meta
|
||||||
name="twitter:card"
|
name="twitter:card"
|
||||||
content="summary_large_image"
|
content="summary_large_image"
|
||||||
@ -27,6 +47,7 @@ export default function Meta(post, disableImage) {
|
|||||||
<meta name="twitter:image" content={image} key="image" />
|
<meta name="twitter:image" content={image} key="image" />
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -64,27 +64,6 @@ function MyApp({ Component, pageProps }) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Head>
|
|
||||||
<link rel="icon" type="image/png" href="/images/favicon.ico" />
|
|
||||||
<link
|
|
||||||
rel="apple-touch-icon"
|
|
||||||
sizes="180x180"
|
|
||||||
href="/images/apple-touch-icon.png"
|
|
||||||
/>
|
|
||||||
<link
|
|
||||||
rel="icon"
|
|
||||||
type="image/png"
|
|
||||||
sizes="32x32"
|
|
||||||
href="/images/favicon-32x32.png"
|
|
||||||
/>
|
|
||||||
<link
|
|
||||||
rel="icon"
|
|
||||||
type="image/png"
|
|
||||||
sizes="16x16"
|
|
||||||
href="/images/favicon-16x16.png"
|
|
||||||
/>
|
|
||||||
<link rel="manifest" href="/images/site.webmanifest" />
|
|
||||||
</Head>
|
|
||||||
|
|
||||||
<GlobalHotKeys keyMap={keyMap} handlers={handlers} />
|
<GlobalHotKeys keyMap={keyMap} handlers={handlers} />
|
||||||
<Search
|
<Search
|
||||||
|
@ -30,6 +30,13 @@ import HoonIcon from "../components/icons/TallCard/hoon";
|
|||||||
import AppIcon from "../components/icons/TallCard/app";
|
import AppIcon from "../components/icons/TallCard/app";
|
||||||
|
|
||||||
export default function Home({ search, posts }) {
|
export default function Home({ search, posts }) {
|
||||||
|
|
||||||
|
const post = {
|
||||||
|
title: "Urbit Developers",
|
||||||
|
description: "Discover the creative possibilities of a unified operating system.",
|
||||||
|
image: "https://storage.googleapis.com/media.urbit.org/site/opengraph/developers.png"
|
||||||
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<Head>
|
<Head>
|
||||||
@ -43,7 +50,7 @@ export default function Home({ search, posts }) {
|
|||||||
<div className="flex flex-col space-y-4">
|
<div className="flex flex-col space-y-4">
|
||||||
<h1 className="max-w-prose">
|
<h1 className="max-w-prose">
|
||||||
Discover the creative possibilities of a unified operating
|
Discover the creative possibilities of a unified operating
|
||||||
system
|
system.
|
||||||
</h1>
|
</h1>
|
||||||
<div className="flex flex-col md:flex-row space-y-4 md:space-y-0 md:space-x-4 pt-4">
|
<div className="flex flex-col md:flex-row space-y-4 md:space-y-0 md:space-x-4 pt-4">
|
||||||
<Link href="/guides/quickstart/intro" passHref>
|
<Link href="/guides/quickstart/intro" passHref>
|
||||||
|
Loading…
Reference in New Issue
Block a user