Skip to content

Commit 19f9634

Browse files
committed
fix(website): 修正搜索框占位符引号显示问题并更新页脚版权信息
1 parent 606aa17 commit 19f9634

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

website/src/components/Footer.astro

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ interface Props {
44
}
55
66
const { t } = Astro.props
7+
const currentYear = new Date().getFullYear()
8+
const locale = Astro.url.pathname.includes('/zh/') ? 'zh' : 'en'
9+
const licenseText = locale === 'zh' ? 'GPL-3.0 许可证。' : 'GPL-3.0 License.'
710
---
811

912
<footer class="border-t border-border/50 py-8">
@@ -13,9 +16,9 @@ const { t } = Astro.props
1316
<img src="/ReadAny/logo.svg" alt="ReadAny" class="h-5 w-5" />
1417
<span class="text-sm font-medium">ReadAny</span>
1518
</div>
16-
19+
1720
<p class="text-sm text-muted-foreground">
18-
{t('footer.copyright')}
21+
© {currentYear} ReadAny. {licenseText}
1922
</p>
2023
</div>
2124
</div>

website/src/pages/zh/support.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ const categories = [
7272
<input
7373
id="support-search-input"
7474
type="text"
75-
placeholder="搜索文档,例如"导入书籍"..."
75+
placeholder="搜索文档,例如 &quot;导入书籍&quot;..."
7676
autocomplete="off"
7777
/>
7878
<button class="search-btn">搜索</button>

0 commit comments

Comments
 (0)