on master help sign in
new opengraph card image and favicons
586b0e3Gordon
components/FavIcons.jsnew file+5
@@ -0,0 +1,5 @@
1+<link rel="icon" type="image/png" href="/images/favicon.ico" />
2+<link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon.png"/>
3+<link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32.png"/>
4+<link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16.png"/>
5+<link rel="manifest" href="/images/site.webmanifest"/>
components/Meta.js+2−2
@@ -2,11 +2,11 @@ export default function Meta(post, disableImage, large = false) {
2 const author = post?.extra?.author || "urbit.org";
2 const author = post?.extra?.author || "urbit.org";
3 const title = post?.title ? post.title : "";
3 const title = post?.title ? post.title : "";
4 const description =
4 const description =
5− post?.description || "Urbit is a personal server built from scratch.";
5+ post?.description || "Urbit is a new kind of computer that you can own completely in ways that matter: networking, identity, & data.";
6 const image =
6 const image =
7 post?.extra?.image ||
7 post?.extra?.image ||
8 post?.image ||
8 post?.image ||
9− "https://media.urbit.org/logo/urbit-logo-card.png";
9+ "https://storage.googleapis.com/media.urbit.org/site/opengraph/urbit.png";
10 return (
10 return (
11 <>
11 <>
12 <link rel="icon" type="image/png" href="/images/favicon.ico" />
12 <link rel="icon" type="image/png" href="/images/favicon.ico" />
pages/_app.js+24
@@ -5,6 +5,7 @@ import { Search } from "@urbit/foundation-design-system";
5import "@urbit/foundation-design-system/styles/globals.css";
5import "@urbit/foundation-design-system/styles/globals.css";
6import "@urbit/foundation-design-system/styles/markdown.css";
6import "@urbit/foundation-design-system/styles/markdown.css";
7import "@urbit/foundation-design-system/styles/prism.css";
7import "@urbit/foundation-design-system/styles/prism.css";
8+import Head from "next/head";
8
9
9const MATOMO_URL = process?.env?.NEXT_PUBLIC_MATOMO_URL || "";
10const MATOMO_URL = process?.env?.NEXT_PUBLIC_MATOMO_URL || "";
10const MATOMO_SITE_ID = process?.env?.NEXT_PUBLIC_MATOMO_SITE_ID || "";
11const MATOMO_SITE_ID = process?.env?.NEXT_PUBLIC_MATOMO_SITE_ID || "";
@@ -59,6 +60,29 @@ function MyApp({ Component, pageProps }) {
59
60
60 return (
61 return (
61 <>
62 <>
63+
64+ <Head>
65+ <link rel="icon" type="image/png" href="/images/favicon.ico" />
66+ <link
67+ rel="apple-touch-icon"
68+ sizes="180x180"
69+ href="/images/apple-touch-icon.png"
70+ />
71+ <link
72+ rel="icon"
73+ type="image/png"
74+ sizes="32x32"
75+ href="/images/favicon-32x32.png"
76+ />
77+ <link
78+ rel="icon"
79+ type="image/png"
80+ sizes="16x16"
81+ href="/images/favicon-16x16.png"
82+ />
83+ <link rel="manifest" href="/images/site.webmanifest" />
84+ </Head>
85+
62 <GlobalHotKeys keyMap={keyMap} handlers={handlers} />
86 <GlobalHotKeys keyMap={keyMap} handlers={handlers} />
63 <Search
87 <Search
64 showSearch={showSearch}
88 showSearch={showSearch}
public/images/android-chrome-192x192.pngnew file

Binary file not shown.

public/images/android-chrome-512x512.pngnew file

Binary file not shown.

public/images/apple-touch-icon.pngnew file

Binary file not shown.

public/images/developers-guide-logo.pngdeleted

Binary file not shown.

public/images/favicon-16x16.pngnew file

Binary file not shown.

public/images/favicon-32x32.pngnew file

Binary file not shown.

public/images/favicon.ico

Binary file not shown.

public/images/network-explorer-logo.pngdeleted

Binary file not shown.

public/images/operators-guide-logo.pngdeleted

Binary file not shown.

public/images/star-market-logo.pngdeleted

Binary file not shown.