Skip to content

Commit

Permalink
add website logo
Browse files Browse the repository at this point in the history
  • Loading branch information
xijinping0 committed May 30, 2024
1 parent 6efd904 commit 3269d3e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
8 changes: 8 additions & 0 deletions public/book.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/xjp.jpg
Binary file not shown.
10 changes: 9 additions & 1 deletion theme.config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,14 @@ const getBookName = (path: string): string | undefined => {
}

const config: DocsThemeConfig = {
logo: <span>天朝禁书</span>,
logo: (
<>
<img src="/book.svg" alt="logo" />
<span style={{ marginLeft: '.4em', fontWeight: 800 }}>
天朝禁书
</span>
</>
),
project: {
link: 'https://github.com/xijinping0/books',
},
Expand All @@ -29,6 +36,7 @@ const config: DocsThemeConfig = {
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta property="og:title" content="天朝禁书" />
<meta property="og:description" content="天朝禁书" />
<link rel="icon" href="/book.svg" type="image/svg+xml" />
</>
),
useNextSeoProps() {
Expand Down

0 comments on commit 3269d3e

Please sign in to comment.