hextra/hugo.yaml

116 lines
2.1 KiB
YAML
Raw Normal View History

2025-01-21 03:27:23 +08:00
languageCode: zh-cn
title: 代码片段
defaultContentLanguage: zh-cn
enableRobotsTXT: true
enableGitInfo: true
2025-01-21 03:27:23 +08:00
enableEmoji: true
hasCJKLanguage: true
2025-01-21 03:27:23 +08:00
enableInlineShortcodes: true
# services:
# googleAnalytics:
# ID: G-MEASUREMENT_ID
outputs:
home: [HTML]
page: [HTML]
section: [HTML, RSS]
languages:
zh-cn:
languageName: 简体中文
languageCode: zh-CN
weight: 4
title: Hextra
module:
hugoVersion:
extended: true
min: "0.112.0"
markup:
highlight:
noClasses: false
goldmark:
renderer:
unsafe: true
extensions:
passthrough:
delimiters:
block: [['\[', '\]'], ['$$', '$$']]
inline: [['\(', '\)']]
enable: true
menu:
main:
- name: Search
2025-01-21 03:27:23 +08:00
weight: 1
params:
type: search
- name: GitHub
2025-01-21 03:27:23 +08:00
weight: 2
url: "https://github.com/imfing/hextra-starter-template"
params:
icon: github
params:
description: Modern, responsive, batteries-included Hugo theme for creating beautiful static websites.
navbar:
displayTitle: true
displayLogo: true
logo:
path: images/logo.svg
dark: images/logo-dark.svg
# width: 40
# height: 20
# link: /
width: wide
page:
# full (100%), wide (90rem), normal (1280px)
width: normal
theme:
# light | dark | system
default: system
displayToggle: true
footer:
enable: true
displayCopyright: true
displayPoweredBy: true
width: normal
displayUpdatedDate: true
dateFormat: "January 2, 2006"
# Search
# flexsearch is enabled by default
search:
enable: true
type: flexsearch
flexsearch:
# index page by: content | summary | heading | title
index: content
# full | forward | reverse | strict
# https://github.com/nextapps-de/flexsearch/#tokenizer-prefix-search
tokenize: forward
editURL:
2025-01-21 03:27:23 +08:00
enable: false
blog:
list:
displayTags: true
# date | lastmod | publishDate | title | weight
sortBy: date
sortOrder: desc # or "asc"
highlight:
copy:
enable: true
# hover | always
display: hover