diff --git a/website/src/components/Layout.tsx b/website/src/components/Layout.tsx index 97768559ac0..2ffc262c6e6 100644 --- a/website/src/components/Layout.tsx +++ b/website/src/components/Layout.tsx @@ -5,6 +5,12 @@ import { Footer } from './Footer' import Header from './Header' interface LayoutProps { + meta?: { + title?: string + description?: string + image: string + icon?: string + } location: { pathname: string } @@ -14,29 +20,36 @@ interface LayoutProps { export default class Layout extends React.PureComponent { public render(): JSX.Element | null { + const defaultMetaProps: LayoutProps['meta'] = { + title: 'Sourcegraph', + description: + 'Sourcegraph is a free, self-hosted code search and intelligence server that helps developers find, review, understand, and debug code. Use it with any Git code host for teams from 1 to 10,000+.', + image: 'https://about.sourcegraph.com/sourcegraph-mark.png', + icon: 'https://about.sourcegraph.com/favicon.png', + } const pathname = this.props.location.pathname const isHome = pathname === '/' const isProductPage = pathname.startsWith('/product/') - const desc = - 'Sourcegraph is a free, self-hosted code search and intelligence server that helps developers find, review, understand, and debug code. Use it with any Git code host for teams from 1 to 10,000+.' + const metaProps = this.props.meta || defaultMetaProps + return (
Sourcegraph - Code search and intelligence - + - + - + - - - + + + - - - + + + diff --git a/website/src/pages/case-studies/we-are-thorn.tsx b/website/src/pages/case-studies/we-are-thorn.tsx index e7cc119f74f..771475f46f6 100644 --- a/website/src/pages/case-studies/we-are-thorn.tsx +++ b/website/src/pages/case-studies/we-are-thorn.tsx @@ -9,42 +9,15 @@ import { RequestDemoAction } from '../../css/components/actions/RequestDemoActio import { ViewDeveloperDocumentationAction } from '../../css/components/actions/ViewDeveloperDocumentationAction' export default ((props: any) => ( - - - Thorn sunsets legacy applications safely with Sourcegraph - - - - - - - - - - - +