From 372c1978a180c6bc999a89a11ad9b4a796b9d970 Mon Sep 17 00:00:00 2001 From: Marcin Mielnicki Date: Wed, 9 Jan 2019 22:21:26 +0100 Subject: [PATCH] Unwanted title removed (#2721) Currently HTML code of shields.io contains two `` 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 My page ``` After change: ```bash > curl http://localhost:8080 -s | egrep "" -o Shields.io: Quality metadata badges for open source projects ``` --- pages/_document.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pages/_document.js b/pages/_document.js index d2e1e66bca..159e2a52f9 100644 --- a/pages/_document.js +++ b/pages/_document.js @@ -17,10 +17,7 @@ export default class MyDocument extends Document { render() { return ( - - My page - {this.props.styleTags} - + {this.props.styleTags}