Skip to content

Commit

Permalink
feat: seo优化
Browse files Browse the repository at this point in the history
  • Loading branch information
14790897 committed Feb 20, 2024
1 parent 6cda6d1 commit bedc8a3
Show file tree
Hide file tree
Showing 6 changed files with 62 additions and 30 deletions.
30 changes: 0 additions & 30 deletions app/[lng]/1global-error.tsx

This file was deleted.

Binary file removed app/[lng]/favicon.ico
Binary file not shown.
File renamed without changes.
33 changes: 33 additions & 0 deletions app/[lng]/layout.tsx → app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,42 @@ const defaultUrl = process.env.VERCEL_URL
: "http://localhost:3000";

export const metadata = {
manifest: "/manifest.json",
metadataBase: new URL(defaultUrl),
title: "paper ai 使用真实文献让AI完成论文",
description: "写论文最高效的方式",
keywords: [
"free AI",
"免费AI模型",
"AI",
"AI paper",
"true references",
"真实文献",
"真实文献引用",
],
authors: [{ name: "liuweiqing", url: "https://github.com/14790897" }],
creator: "liuweiqing",
publisher: "liuweiqing",
alternates: {
canonical: "/",
languages: {
"en-US": "/en-US",
"de-DE": "/de-DE",
},
},
openGraph: {
images:
"https://file.liuweiqing.life/2024/02/540f3476ef43c831934ce0359c367acd.png",
},
twitter: {
card: "page",
title: "AI write",
description: "The fastest way to write paper",
creator: "@hahfrank",
images: [
"https://file.liuweiqing.life/2024/02/540f3476ef43c831934ce0359c367acd.png",
],
},
};

export default function RootLayout({
Expand Down
1 change: 1 addition & 0 deletions components/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ const Settings = ({ lng }: { lng: string }) => {
<input
id="api-key"
type="password"
autoComplete="off"
value={apiKey}
onChange={(event) => dispatch(setApiKey(event.target.value))}
className="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline"
Expand Down
28 changes: 28 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"short_name": "Paper AI",
"name": "paper ai 使用真实文献让AI完成论文",
"start_url": "/",
"display": "standalone",
"theme_color": "#ffffff",
"background_color": "#ffffff",
"description": "写论文最高效的方式",
"icons": [
{
"src": "https://file.liuweiqing.life/2024/02/540f3476ef43c831934ce0359c367acd.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "any maskable"
},
{
"src": "https://file.liuweiqing.life/2024/02/540f3476ef43c831934ce0359c367acd.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "any maskable"
}
],
"dir": "ltr",
"scope": "/",
"orientation": "any",
"related_applications": [],
"prefer_related_applications": false
}

0 comments on commit bedc8a3

Please sign in to comment.