Skip to content

Commit

Permalink
Extract title from _document.tsx to index.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
shgtkshruch committed Jun 6, 2020
1 parent 3d4c0a7 commit de8a06c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export default class MyDocument extends Document {
return (
<Html lang="ja">
<Head>
<title>Shigetaka Shirouchi</title>
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
Expand Down
4 changes: 4 additions & 0 deletions pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { useState } from 'react'
import { Global, css } from '@emotion/core'

import Head from 'next/head'
import Container from '../components/layout/Container'
import Intro from '../components/intro'
import Work from '../components/work'
Expand All @@ -21,6 +22,9 @@ export default function Home({ works, history, skills, contacts }) {

return (
<>
<Head>
<title>Shigetaka Shirouchi</title>
</Head>
<Container>
<Global
styles={css`
Expand Down

0 comments on commit de8a06c

Please sign in to comment.