Skip to content

Commit 091025c

Browse files
committed
feat: verification
1 parent 73a1862 commit 091025c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

config/seo.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
export const seo = {
22
title: 'home | zhw',
3+
template: '%s | zhw',
34
ogTitle: 'blog',
5+
googleVerification: 'b5XlnZ2XQ3JyrQA-lLjSnn6xxoTLLEllW6qzXkfey-Y',
46
description: '我是zhw,欢迎来到我的博客',
7+
keywords: 'zhw blog',
58
word: '沉淀',
69
url: new URL(
710
process.env.NODE_ENV === 'production'

src/app/layout.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@ import { sansFont, serifFont } from '@/lib/fonts';
1212
export const metadata: Metadata = {
1313
metadataBase: seo.url,
1414
title: {
15-
template: '%s | zhw',
15+
template: seo.template,
1616
default: seo.title,
1717
},
1818
description: seo.description,
19-
keywords: 'zhw blog',
19+
keywords: seo.keywords,
20+
verification: { google: seo.googleVerification },
2021
icons: [{ rel: 'icon', url: '/favicon.ico' }],
2122
// manifest: '/site.webmanifest', //pwa
2223
robots: {

0 commit comments

Comments
 (0)