Skip to content

Commit

Permalink
fix: twitter card image, title
Browse files Browse the repository at this point in the history
  • Loading branch information
JOU-amjs committed Aug 16, 2024
1 parent 3d16daf commit ee4875a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const config: Config = {
'https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap'
],
themeConfig: {
image: '/img/card_image.png',
image: '/img/card_image.jpg',
metadata: [{ name: 'twitter:site', content: '@alovajs' }],
navbar: {
title: '',
Expand Down
4 changes: 4 additions & 0 deletions i18n/zh-CN/code.json
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,10 @@
"theme.featureBlock.learnMore": {
"message": "查看详情"
},
"homepage.title": {
"message": "创新的下一代请求工具",
"description": "the title"
},
"homepage.title.Creative": {
"message": "创新的",
"description": "First part of the title"
Expand Down
4 changes: 2 additions & 2 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,11 @@ export default function Home(): JSX.Element {
siteConfig.title +
' - ' +
translate({
message: 'Lightweight request strategy library',
message: 'Creative next generation request library',
id: 'homepage.title'
})
}
description="alova.js a lightweight request strategy library">
description="alova.js a creative next generation request library">
<div className="dark:bg-[#040f26] overflow-hidden">
<HomepageHeader></HomepageHeader>
<main className="mx-auto mt-20 md:mt-40">
Expand Down
Binary file added static/img/card_image.jpg
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 static/img/card_image.png
Binary file not shown.

0 comments on commit ee4875a

Please sign in to comment.