Skip to content

Commit

Permalink
feat: seo 6
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanyxh committed May 4, 2024
1 parent 44d4cdd commit f53d2f4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
6 changes: 3 additions & 3 deletions helpers/vite-prerender.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ function getMetaTag(meta: ArticleMeta | undefined, route: ResolveRouteObject) {
} else {
html += `
<meta property="og:type" content="website" />
<meta property="og:description" content="技术博客,演示站,工具站;做一个有用的网站,拥有优秀的用户体验。">
<meta property="og:description" content="技术博客,演示站,工具站;做一个有用的网站,拥有优秀的用户体验。站在巨人的肩膀上/If I have seen further than others, it is by standing upon the shoulders of giants.">
<meta property="og:title" content="${env.VITE_APP_TITLE}">
<meta name="description" content="技术博客,演示站,工具站;做一个有用的网站,拥有优秀的用户体验。">
<meta name="description" content="技术博客,演示站,工具站;做一个有用的网站,拥有优秀的用户体验。站在巨人的肩膀上/If I have seen further than others, it is by standing upon the shoulders of giants.">
<meta name="twitter:title" content="${env.VITE_APP_TITLE}">
<meta name="twitter:description" content="技术博客,演示站,工具站;做一个有用的网站,拥有优秀的用户体验。">
<meta name="twitter:description" content="技术博客,演示站,工具站;做一个有用的网站,拥有优秀的用户体验。站在巨人的肩膀上/If I have seen further than others, it is by standing upon the shoulders of giants.">
<meta name="twitter:image" content="/favicon.ico">
<title>${env.VITE_APP_TITLE}</title>
`;
Expand Down
4 changes: 2 additions & 2 deletions public/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "illustrate",
"short_name": "illustrate",
"description": "技术博客,演示站,工具站;做一个有用的网站,拥有优秀的用户体验。",
"description": "技术博客,演示站,工具站;做一个有用的网站,拥有优秀的用户体验。站在巨人的肩膀上/If I have seen further than others, it is by standing upon the shoulders of giants.",
"id": "/",
"start_url": "/",
"scope": "/",
Expand Down Expand Up @@ -44,4 +44,4 @@
"sizes": "144x144"
}
]
}
}
4 changes: 4 additions & 0 deletions src/viewer/styles/Provider.module.less
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@
+ ul {
margin-top: 40px;
}

+ img {
margin-top: 30px;
}
}

a {
Expand Down

0 comments on commit f53d2f4

Please sign in to comment.