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:
committed by
Paul Melnikow
parent
674d9877ad
commit
372c1978a1
@@ -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 />
|
||||
|
||||
Reference in New Issue
Block a user