mirror of
https://gitee.com/ineo6/homebrew-install.git
synced 2025-04-05 06:12:44 +08:00
feat: 优化head title
This commit is contained in:
parent
c8257eeadd
commit
38feb3e2f7
@ -78,7 +78,7 @@ const Layout: React.FC<IRouteComponentProps> = ({ children, location }) => {
|
||||
locale,
|
||||
} = useContext(context);
|
||||
|
||||
const { mode, repository, logo } = config
|
||||
const { mode, repository, logo, title } = config
|
||||
|
||||
const { pathname } = useLocation();
|
||||
|
||||
@ -129,8 +129,8 @@ const Layout: React.FC<IRouteComponentProps> = ({ children, location }) => {
|
||||
}}
|
||||
>
|
||||
<Helmet>
|
||||
{meta.title && <title>{meta.title}</title>}
|
||||
{meta.title && <meta property="og:title" content={meta.title} />}
|
||||
{meta.title && <title>{meta.title + ' - ' + title}</title>}
|
||||
{meta.title && <meta property="og:title" content={meta.title + ' - ' + title} />}
|
||||
{meta.description && <meta name="description" content={meta.description} />}
|
||||
{meta.description && (
|
||||
<meta property="og:description" content={meta.description} />
|
||||
|
Loading…
x
Reference in New Issue
Block a user