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