Add Chinese i18n and SEO settings, customize home layout

This commit is contained in:
2026-05-13 16:11:10 +08:00
parent 07851043b1
commit f13f048325
3 changed files with 109 additions and 1 deletions
+51 -1
View File
@@ -51,26 +51,45 @@ menu:
type: search
params:
# SEO
description: 一只爪子的技术笔记与生活记录
images:
- /images/logo.svg
# Favicon 路径
favicon:
dark: /images/logo-dark.svg
light: /images/logo.svg
# 导航栏
navbar:
displayTitle: true
displayLogo: false
width: wide
# logo:
# path: /images/logo.svg
# dark: /images/logo-dark.svg
# link: /
# width: 32
# height: 32
# 主题
theme:
default: system
displayToggle: true
# 页脚
footer:
enable: true
displayCopyright: true
displayPoweredBy: false
width: normal
# 日期
displayUpdatedDate: false
dateFormat: "2006-01-02"
# 搜索
search:
enable: true
type: flexsearch
@@ -78,20 +97,51 @@ params:
index: content
tokenize: forward
# 博客
blog:
list:
displayTags: true
sortBy: date
sortOrder: desc
pagerSize: 20
pagerSize: 10
displayDate: true
displaySummary: true
article:
displayPagination: true
displayReadMore: true
# 目录
toc:
displayTags: true
# 页面
page:
width: normal
# 评论 (关闭)
comments:
enable: false
# type: giscus
# giscus:
# repo: your/repo
# repoId: xxx
# category: General
# categoryId: xxx
# RSS 定制
rss:
limit: 20
# 代码高亮增强
highlight:
copy:
enable: true
lineNumbers: false
# Open Graph / SEO 增强
opengraph:
enable: true
# Schema.org 结构化数据
schema:
enable: true