Skip to content

Commit

Permalink
fix(theme): fix themeConfig copyright, close #4137
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Hope committed May 15, 2024
1 parent 4390a14 commit 65a07c0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/search-pro/src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ features:
link: ./guide.html#query-and-search-history

footer: MIT Licensed | Copyright © 2022-present Mr.Hope
copyrightText: false
copyright: false
---

## How to use
Expand Down
2 changes: 1 addition & 1 deletion docs/search-pro/src/zh/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ features:
link: ./guide.html#查询和搜索的历史记录

footer: MIT Licensed | Copyright © 2022-present Mr.Hope
copyrightText: false
copyright: false
---

## 使用插件
Expand Down
2 changes: 1 addition & 1 deletion docs/theme/src/zh/guide/layout/footer.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ tag:
```md
---
footer: <a href="https://github.com/Mister-Hope">Mr.Hope</a>
copyrightText: MIT LICENSE
copyright: MIT LICENSE
---
```

Expand Down
7 changes: 3 additions & 4 deletions packages/theme/src/client/components/PageFooter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,10 @@ export default defineComponent({
copyright ??
(license
? getCopyrightText(license)
: isString(globalCopyright)
? globalCopyright
: authorText.value || globalLicense
: globalCopyright ??
(authorText.value || globalLicense
? getCopyrightText(globalLicense)
: false)
: false))
);
});

Expand Down

0 comments on commit 65a07c0

Please sign in to comment.