Skip to content

Commit

Permalink
添加副标题
Browse files Browse the repository at this point in the history
  • Loading branch information
Glucy-2 committed Aug 4, 2023
1 parent 5450d16 commit e400cd9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ import Link from './link';
function Header() {

useEffect(() => {
document.title = window.Config.SiteName;
document.title = window.Config.SiteTitle;
}, []);

return (
<div id='header'>
<div className='container'>
<h1 className='logo'>{window.Config.SiteName}</h1>
<h1 className='logo'>{window.Config.SiteTitle}</h1>
<h3>{window.Config.SiteSubTitle}</h3>
<div className='navi'>
{window.Config.Navi.map((item, index) => (
<Link key={index} to={item.url} text={item.text} />
Expand Down

0 comments on commit e400cd9

Please sign in to comment.