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 8998b46
Show file tree
Hide file tree
Showing 7 changed files with 93 additions and 60 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.
30 changes: 0 additions & 30 deletions app/[lng]/layout.tsx

This file was deleted.

File renamed without changes.
64 changes: 64 additions & 0 deletions app/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
import { GeistSans } from "geist/font/sans";
import "./globals.css";
import { GoogleAnalytics } from "@next/third-parties/google";

const defaultUrl = process.env.VERCEL_URL
? `https://${process.env.VERCEL_URL}`
: "http://localhost:3000";

export const metadata = {
metadataBase: new URL(defaultUrl),
title: "paper ai 使用真实文献让AI完成论文",
description: "写论文最高效的方式",
referrer: "origin-when-cross-origin",
keywords: [
"free AI",
"免费AI模型",
"AI",
"AI paper",
"true references",
"真实文献",
"真实文献引用",
],
authors: [{ name: "liuweiqing", url: "https://github.com/14790897" }],
creator: "liuweiqing",
publisher: "liuweiqing",
manifest: "./manifest.json",
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({
children,
}: {
children: React.ReactNode;
}) {
return (
<html lang="en" className={GeistSans.className}>
<body className="bg-background text-foreground">
<main className="min-h-screen flex flex-col items-center">
{children}
</main>
</body>
<GoogleAnalytics gaId="G-05DHTG9XQ5" />
</html>
);
}
28 changes: 28 additions & 0 deletions app/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
}
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

0 comments on commit 8998b46

Please sign in to comment.