From 25a671f58e3bba99b5bcab1c424a5063fc791e38 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Thu, 10 Oct 2019 21:52:28 +0000 Subject: [PATCH] Set title on article and comment pages, add comment anchors --- webclient/package.json | 2 ++ webclient/public/index.html | 5 +++-- webclient/src/App.js | 6 +++--- webclient/src/Article.js | 9 ++++++--- webclient/src/Comments.js | 24 +++++++++++++++++------ webclient/src/Feed.js | 13 ++++++++----- webclient/src/Style-light.css | 2 +- webclient/src/utils.js | 4 ++-- webclient/yarn.lock | 36 ++++++++++++++++++++++++++++++++++- 9 files changed, 78 insertions(+), 23 deletions(-) diff --git a/webclient/package.json b/webclient/package.json index 1e0ac56..104b392 100644 --- a/webclient/package.json +++ b/webclient/package.json @@ -6,7 +6,9 @@ "moment": "^2.24.0", "react": "^16.9.0", "react-dom": "^16.9.0", + "react-helmet": "^5.2.1", "react-router-dom": "^5.0.1", + "react-router-hash-link": "^1.2.2", "react-scripts": "3.1.1" }, "scripts": { diff --git a/webclient/public/index.html b/webclient/public/index.html index a903fb4..88094c5 100644 --- a/webclient/public/index.html +++ b/webclient/public/index.html @@ -5,8 +5,9 @@ + @@ -25,7 +26,7 @@ work correctly both with client-side routing and a non-root public URL. Learn how to configure a non-root public URL by running `npm run build`. --> - QNN - Qot News Network + {{ title }} - QotNews