on master help sign in
new opengraph card image and favicons
commit586b0e36f3910d71c1c41f64e5b3de4f79c96296 authorGordon <gordon@hey.com> dateTue 22 Nov 2022, 15:54 (4 years ago) parent9061947
13 files changed+31−2
components/FavIcons.js+5 components/Meta.js+2−2 pages/_app.js+24 public/images/android-chrome-192x192.png public/images/android-chrome-512x512.png public/images/apple-touch-icon.png public/images/developers-guide-logo.png public/images/favicon-16x16.png public/images/favicon-32x32.png public/images/favicon.ico public/images/network-explorer-logo.png public/images/operators-guide-logo.png public/images/star-market-logo.png
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) {
22 const author = post?.extra?.author || "urbit.org";
33 const title = post?.title ? post.title : "";
44 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.";
66 const image =
77 post?.extra?.image ||
88 post?.image ||
9− "https://media.urbit.org/logo/urbit-logo-card.png";
9+ "https://storage.googleapis.com/media.urbit.org/site/opengraph/urbit.png";
1010 return (
1111 <>
1212 <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";
55import "@urbit/foundation-design-system/styles/globals.css";
66import "@urbit/foundation-design-system/styles/markdown.css";
77import "@urbit/foundation-design-system/styles/prism.css";
8+import Head from "next/head";
89
910const MATOMO_URL = process?.env?.NEXT_PUBLIC_MATOMO_URL || "";
1011const MATOMO_SITE_ID = process?.env?.NEXT_PUBLIC_MATOMO_SITE_ID || "";
@@ -59,6 +60,29 @@ function MyApp({ Component, pageProps }) {
5960
6061 return (
6162 <>
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+
6286 <GlobalHotKeys keyMap={keyMap} handlers={handlers} />
6387 <Search
6488 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.