Unwanted title removed (#2721)

Currently HTML code of shields.io contains two `<title>` elements. This PR removes an extra title element. 

Before change:
```bash
> curl https://shields.io -s | egrep "<title.*/title>" -o 
<title class="next-head">Shields.io: Quality metadata badges for open source projects</title>
<title>My page</title>
```

After change:
```bash
> curl http://localhost:8080 -s | egrep "<title.*/title>" -o
<title class="next-head">Shields.io: Quality metadata badges for open source projects</title>
```
This commit is contained in:
Marcin Mielnicki
2019-01-09 22:21:26 +01:00
committed by Paul Melnikow
parent 674d9877ad
commit 372c1978a1

View File

@@ -17,10 +17,7 @@ export default class MyDocument extends Document {
render() {
return (
<html>
<Head>
<title>My page</title>
{this.props.styleTags}
</Head>
<Head>{this.props.styleTags}</Head>
<body>
<Main />
<NextScript />