File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ const Article: NextPage<IProps> = ({ siteKey }) => {
5151 const Content = (
5252 < >
5353 < Helmet >
54- < title > { ( article ?. title || t ( 'unknownTitle' ) ) + ' - ' + setting . systemTitle } </ title >
54+ < title > { ` ${ article ?. title || t ( 'unknownTitle' ) } - ${ t ( 'nav' ) } - ${ setting . systemTitle } ` } </ title >
5555 </ Helmet >
5656 < div >
5757 < article id = "js-article-wrapper" className = { style . articleWrap } >
Original file line number Diff line number Diff line change @@ -2,21 +2,28 @@ import { NextPage } from 'next';
22
33import { AdvanceSearch } from '@/components/AdvanceSearch' ;
44import NavCard from '@/components/NavCard' ;
5- import style from './index.module.scss ' ;
5+ import SystemNotification from '@/components/Setting/SystemNotification ' ;
66import { ArticleProvider } from '@/providers/article' ;
77import { CategoryProvider } from '@/providers/category' ;
8+ import style from './index.module.scss' ;
9+ import { Helmet } from 'react-helmet' ;
810import { useContext } from 'react' ;
911import { GlobalContext } from '@/context/global' ;
10- import SystemNotification from '@/components/Setting/SystemNotification ' ;
12+ import { useTranslations } from 'next-intl ' ;
1113
1214interface IHomeProps {
1315 articles ?: IArticle [ ] ;
1416 total ?: number ;
1517}
1618
1719const Page : NextPage < IHomeProps > = ( { } ) => {
20+ const { setting } = useContext ( GlobalContext ) ;
21+ const t = useTranslations ( ) ;
1822 return (
1923 < div className = { style . wrapper } >
24+ < Helmet >
25+ < title > { `${ t ( 'nav' ) } - ${ t ( 'categoryArticle' ) } - ${ setting . systemTitle } ` } </ title >
26+ </ Helmet >
2027 < div className = "container" >
2128 < SystemNotification />
2229 < div className = { style . search } >
You can’t perform that action at this time.
0 commit comments