Skip to content

Commit d5b5d2e

Browse files
committed
添加留言板
1 parent 405aa1a commit d5b5d2e

2 files changed

Lines changed: 34 additions & 6 deletions

File tree

src/pages/msgboard/index.astro

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
import PageLayout from '@/layouts/CommonPage.astro';
3+
import { Comment } from '@/components/waline'
4+
---
5+
6+
<PageLayout
7+
title="留言板"
8+
info={{ slug: '/msgboard', comment: false, view: false }}
9+
>
10+
<div class="text-center max-w-2xl mx-auto">
11+
<h1 class="text-4xl font-bold tracking-tight">欢迎留言</h1>
12+
<p class="mt-4 text-lg text-muted-foreground">
13+
很高兴看到你. 欢迎分享你的想法, 或只是简单地打个招呼.
14+
</p>
15+
</div>
16+
17+
<div class="mt-16 max-w-4xl mx-auto">
18+
<Comment />
19+
</div>
20+
</PageLayout>

src/site.config.ts

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
import type { Config, IntegrationUserConfig, ThemeUserConfig } from 'packages/pure/types';
2+
3+
4+
25
import type { CardListData } from 'astro-pure/types';
36

7+
8+
9+
10+
411
export const theme: ThemeUserConfig = {
512
// === Basic configuration ===
613
/** Title for your website. Will be used in metadata and as browser tab title. */
@@ -50,12 +57,12 @@ export const theme: ThemeUserConfig = {
5057
/** Configure the header of your site. */
5158
header: {
5259
menu: [
53-
{ title: 'Blog', link: '/blog' },
54-
{ title: 'Archives', link: '/archives' },
60+
{ title: '文章', link: '/blog' },
61+
{ title: '归档', link: '/archives' },
5562
// { title: 'Projects', link: '/projects' },
56-
{ title: 'Cats', link: '/cats' },
57-
// { title: 'Links', link: '/links' },
58-
{ title: 'About', link: '/about' }
63+
{ title: '🐱', link: '/cats' },
64+
{ title: '留言板', link: '/msgboard' },
65+
{ title: '关于', link: '/about' }
5966
]
6067
},
6168

@@ -149,6 +156,7 @@ export const integ: IntegrationUserConfig = {
149156
emoji: ['qq'],
150157
additionalConfigs: {
151158
search: false, //表情包搜索
159+
lang: 'zh-CN',
152160
meta: ['nick', 'mail'],
153161
requiredMeta: ['nick'],
154162
// reaction: true,
@@ -157,7 +165,7 @@ export const integ: IntegrationUserConfig = {
157165
'/waline/2.png',
158166
'/waline/3.png',
159167
'/waline/4.png',
160-
'/waline/5.png',
168+
'/waline/5.png'
161169
],
162170
pageview: true, //页面 pv
163171
comment: true, //页面评论数

0 commit comments

Comments
 (0)