Files
Hugo/hugo.yaml
T

150 lines
2.4 KiB
YAML

baseURL: "https://fukunee.net/"
title: "FuKun.Net"
enableRobotsTXT: true
enableGitInfo: false
hasCJKLanguage: true
buildFuture: true
outputs:
home: [html]
page: [html]
section: [html, rss]
defaultContentLanguage: zh-cn
languages:
zh-cn:
label: 简体中文
locale: zh-CN
weight: 1
title: FuKun.Net
theme: hextra
markup:
highlight:
noClasses: false
goldmark:
renderer:
unsafe: true
extensions:
passthrough:
delimiters:
block: [['\[', '\]'], ["$$", "$$"]]
inline: [['\(', '\)']]
enable: true
enableInlineShortcodes: true
menu:
main:
- identifier: blog
name: 文章
pageRef: /blog
weight: 1
- identifier: about
name: 关于
pageRef: /about
weight: 2
- name: Search
weight: 3
params:
type: search
params:
# SEO
description: FuKun.Net — Tech notes & life
images:
- /images/logo.svg
# Favicon 由 Hextra 硬编码路径 static/favicon.svg
# 导航栏
navbar:
displayTitle: false
displayLogo: true
width: normal
logo:
path: /images/logo.svg
dark: /images/logo-dark.svg
link: /
width: 40
height: 40
# 主题
theme:
default: dark
displayToggle: true
# 页脚
footer:
enable: true
displayCopyright: true
displayPoweredBy: false
width: normal
# 日期
displayUpdatedDate: false
dateFormat: "2006-01-02"
# 搜索
search:
enable: true
type: flexsearch
flexsearch:
index: content
tokenize: forward
# 博客
blog:
list:
displayTags: false
sortBy: date
sortOrder: desc
pagerSize: 10
displayDate: true
displaySummary: true
article:
displayPagination: true
displayReadMore: true
# 目录
toc:
displayTags: false
# 页面
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
# Mermaid 流程图(本地加载,避免 CDN 连接问题)
mermaid:
base: "https://cdn.jsdelivr.net/npm/mermaid@11.15.0/dist"
# Open Graph / SEO 增强
opengraph:
enable: true
# Schema.org 结构化数据
schema:
enable: true