Skip to content

Commit

Permalink
Better favicon, and fix url / baseUrl / "canonical" metadata (#1402)
Browse files Browse the repository at this point in the history
  • Loading branch information
cspotcode committed Jul 21, 2021
1 parent df27a27 commit 89eb57c
Show file tree
Hide file tree
Showing 14 changed files with 88 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/docusaurus.config.js
@@ -1,11 +1,11 @@
module.exports = {
title: 'ts-node',
tagline: 'TypeScript execution and REPL for node.js',
url: 'https://typestrong.org/ts-node',
url: 'https://typestrong.org',
baseUrl: '/ts-node/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.ico',
favicon: 'img/favicon/favicon.ico',
organizationName: 'TypeStrong', // Usually your GitHub org/user name.
projectName: 'ts-node', // Usually your repo name.
themeConfig: {
Expand Down
12 changes: 12 additions & 0 deletions website/src/pages/index.js
Expand Up @@ -2,6 +2,7 @@ import React from 'react';
import clsx from 'clsx';
import Layout from '@theme/Layout';
import Link from '@docusaurus/Link';
import Head from '@docusaurus/Head';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import useBaseUrl from '@docusaurus/useBaseUrl';
import styles from './styles.module.css';
Expand All @@ -26,6 +27,17 @@ function Home() {
<Layout
title={siteConfig.title}
description={siteConfig.tagline}>
<Head>
<link rel="apple-touch-icon" sizes="180x180" href="/ts-node/img/favicon/apple-touch-icon.png"/>
<link rel="icon" type="image/png" sizes="32x32" href="/ts-node/img/favicon/favicon-32x32.png"/>
<link rel="icon" type="image/png" sizes="16x16" href="/ts-node/img/favicon/favicon-16x16.png"/>
<link rel="manifest" href="/ts-node/img/favicon/site.webmanifest"/>
<link rel="mask-icon" href="/ts-node/img/favicon/safari-pinned-tab.svg" color="#5bbad5"/>
<link rel="shortcut icon" href="/ts-node/img/favicon/favicon.ico"/>
<meta name="msapplication-TileColor" content="#2b5797"/>
<meta name="msapplication-config" content="/ts-node/img/favicon/browserconfig.xml"/>
<meta name="theme-color" content="#ffffff"/>
</Head>
<header className={clsx('hero hero--primary', styles.heroBanner)}>
<div className="container">
<h1 className="hero__title">{siteConfig.title}</h1>
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/static/img/favicon/apple-touch-icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions website/static/img/favicon/browserconfig.xml
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<browserconfig>
<msapplication>
<tile>
<square150x150logo src="/ts-node/img/mstile-150x150.png"/>
<TileColor>#2b5797</TileColor>
</tile>
</msapplication>
</browserconfig>
Binary file added website/static/img/favicon/favicon-16x16.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/static/img/favicon/favicon-32x32.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/static/img/favicon/favicon.ico
Binary file not shown.
19 changes: 19 additions & 0 deletions website/static/img/favicon/html_code.html
@@ -0,0 +1,19 @@
<link rel="apple-touch-icon" sizes="180x180" href="/ts-node/img/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/ts-node/img/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/ts-node/img/favicon-16x16.png">
<link rel="manifest" href="/ts-node/img/site.webmanifest">
<link rel="mask-icon" href="/ts-node/img/safari-pinned-tab.svg" color="#5bbad5">
<link rel="shortcut icon" href="/ts-node/img/favicon.ico">
<meta name="msapplication-TileColor" content="#2b5797">
<meta name="msapplication-config" content="/ts-node/img/browserconfig.xml">
<meta name="theme-color" content="#ffffff">

<link rel="apple-touch-icon" sizes="180x180" href="/ts-node/img/favicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/ts-node/img/favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/ts-node/img/favicon/favicon-16x16.png">
<link rel="manifest" href="/ts-node/img/favicon/site.webmanifest">
<link rel="mask-icon" href="/ts-node/img/favicon/safari-pinned-tab.svg" color="#5bbad5">
<link rel="shortcut icon" href="/ts-node/img/favicon/favicon.ico">
<meta name="msapplication-TileColor" content="#2b5797">
<meta name="msapplication-config" content="/ts-node/img/favicon/browserconfig.xml">
<meta name="theme-color" content="#ffffff">
Binary file added website/static/img/favicon/mstile-150x150.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 27 additions & 0 deletions website/static/img/favicon/safari-pinned-tab.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions website/static/img/favicon/site.webmanifest
@@ -0,0 +1,19 @@
{
"name": "",
"short_name": "",
"icons": [
{
"src": "/ts-node/img/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/ts-node/img/android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone"
}
Binary file added website/static/img/opengraph.pdn
Binary file not shown.

0 comments on commit 89eb57c

Please sign in to comment.