File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import LinkedInIcon from "@material-ui/icons/LinkedIn";
1414import TwitterIcon from "@material-ui/icons/Twitter" ;
1515import Skeleton from "@material-ui/lab/Skeleton" ;
1616import { FC , useEffect } from "react" ;
17+ import { Helmet } from "react-helmet" ;
1718import { useDispatch , useSelector } from "react-redux" ;
1819import { Authors } from "src/apps/main/components/authors" ;
1920import { Contributors } from "src/apps/main/components/contributors" ;
@@ -104,6 +105,10 @@ export const Content: FC = () => {
104105 />
105106 ) : currentArticle ? (
106107 < >
108+ < Helmet >
109+ < title > { `${ currentArticle . title } | DzCode i/o` } </ title >
110+ < meta name = "description" content = { currentArticle . description } />
111+ </ Helmet >
107112 { /* Image */ }
108113 { currentArticle . image && (
109114 < img
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import LinkedInIcon from "@material-ui/icons/LinkedIn";
1414import TwitterIcon from "@material-ui/icons/Twitter" ;
1515import Skeleton from "@material-ui/lab/Skeleton" ;
1616import { FC , useEffect } from "react" ;
17+ import { Helmet } from "react-helmet" ;
1718import { useDispatch , useSelector } from "react-redux" ;
1819import { Authors } from "src/apps/main/components/authors" ;
1920import { Contributors } from "src/apps/main/components/contributors" ;
@@ -103,6 +104,10 @@ export const Content: FC = () => {
103104 />
104105 ) : currentDocument ? (
105106 < >
107+ < Helmet >
108+ < title > { `${ currentDocument . title } | DzCode i/o` } </ title >
109+ < meta name = "description" content = { currentDocument . description } />
110+ </ Helmet >
106111 { /* Image */ }
107112 { currentDocument . image && (
108113 < img
You can’t perform that action at this time.
0 commit comments