Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add basic SEO tags #59

Merged
merged 1 commit into from
Jun 30, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/web/src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export const PROJECT_NAME = 'Nextclade' as const
export const PROJECT_DESCRIPTION = 'Clade assignment, mutation calling, and quality control right inside your browser'
export const COPYRIGHT_YEAR_START = 2020 as const
export const COMPANY_NAME = 'Nextstrain' as const

Expand Down
4 changes: 4 additions & 0 deletions packages/web/src/pages/_document.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react'

import NextDocument, { Html, Head, Main, NextScript, DocumentContext, DocumentInitialProps } from 'next/document'
import { PROJECT_NAME, PROJECT_DESCRIPTION } from 'src/constants'

export default class Document extends NextDocument {
static async getInitialProps(ctx: DocumentContext): Promise<DocumentInitialProps> {
Expand All @@ -12,6 +13,9 @@ export default class Document extends NextDocument {
return (
<Html lang="en">
<Head>
<meta charSet="UTF-8" />
<title>{PROJECT_NAME}</title>
<meta name="description" content={PROJECT_DESCRIPTION} />
<meta name="application-name" content="Nextclade" />
<meta name="theme-color" content="#ffffff" />

Expand Down