diff --git a/news/routes/Featured/Featured.js b/news/routes/Featured/Featured.js index f5eb275bbe57aa..ac5dd9d5065355 100644 --- a/news/routes/Featured/Featured.js +++ b/news/routes/Featured/Featured.js @@ -152,6 +152,7 @@ class Featured extends Component {
+ Featured | freeCodeCamp News
diff --git a/news/routes/Show/Show.js b/news/routes/Show/Show.js index 2598e119f93727..6412583b09a3f7 100644 --- a/news/routes/Show/Show.js +++ b/news/routes/Show/Show.js @@ -177,10 +177,26 @@ class ShowArticle extends Component { return

Oh noes!! Something went wrong!

; } + // RegEx finds the first paragraph and groups the content + const description = renderableContent.match(/

(.*?)<\/p>/)[1]; + const slug = this.props.location.pathname; return (

+ {`${title} | freeCodeCamp News`} + + + + + +

{title}