Skip to content

Commit

Permalink
chore: for SEO
Browse files Browse the repository at this point in the history
  • Loading branch information
nxhawk committed Jul 20, 2024
1 parent 81f6d66 commit 6ed7385
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1 +1 @@
NEXT_PUBLIC_BASE_URL = "http://localhost:3000"
NEXT_PUBLIC_BASE_URL = "https://usnightowl.github.io/speaker-ui"
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
https://github.com/gregrickaby/nextjs-github-pages/tree/main

This is a [Next.js](https://nextjs.org/) project bootstrapped with
[`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).

Expand Down
Binary file modified app/favicon.ico
Binary file not shown.
31 changes: 29 additions & 2 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,36 @@ const fontSans = FontSans({
variable: "--font-sans",
});

const baseUrl = process.env.NEXT_PUBLIC_BASE_URL || "http://localhost:3000/speaker-ui";

export const metadata: Metadata = {
title: "Create Next App",
description: "Generated by create next app",
title: {
default: "Loa tại xưởng - Chất lượng đỉnh cao, giá cả hợp lý",
template: "%s - Loa tại xưởng",
},
keywords: [
"Loa tại xưởng",
"LoaTaiXuong",
"Loataixuong",
"DSL pro",
"Loa Tại Xưởng - Tâm huyết chạm đến từng âm bậc",
"Tâm huyết chạm đến từng âm bậc",
],
icons: {
icon: {
url: `${baseUrl}/favicon.ico`,
type: "image/x-icon",
},
},
robots: {
index: true,
follow: true,
googleBot: {
index: true,
follow: true,
},
},
description: "Sản xuất tại xưởng - Giá cả ổn định - Miễn phí vận chuyện nội thành - Bảo hành toàn quốc",
};

export default function RootLayout({
Expand Down

0 comments on commit 6ed7385

Please sign in to comment.