Interface: SiteConfig
Defined in: packages/valaxy/types/config.ts:43
Properties
author
author: object;Defined in: packages/valaxy/types/config.ts:97
The owner of this blog
avatar
avatar: string;email
email: string;intro?
optional intro: string;Zh
个人简介
link
link: string;name
name: string;Your name
Description
你的名字
status
status: object;The status of you
Description
状态
status.emoji
emoji: string;Emoji representation of your status like '👨💻'
Description
你的状态的 Emoji 表示,如 '👨💻'
status.message
message: string;show when hover emoji
Description
当鼠标悬浮在图标上时显示
Description
博客作者
cdn
cdn: object;Defined in: packages/valaxy/types/config.ts:237
third-party plugin need cdn aplayer, twikoo
prefix
prefix: string;prefix for your third-party
Default
'https://unpkg.com/'Default
'https://unpkg.com/'codeHeightLimit?
optional codeHeightLimit: number;Defined in: packages/valaxy/types/config.ts:392
@description:en-US Limit the height of the code block in px @description:zh-CN 限制代码块的高度,单位是 px
comment
comment: object;Defined in: packages/valaxy/types/config.ts:228
comment: waline/...
enable
enable: boolean;description
description: string;Defined in: packages/valaxy/types/config.ts:92
站点描述
encrypt
encrypt: object;Defined in: packages/valaxy/types/config.ts:373
algorithm
algorithm: string;Default
AES-CBCenable
enable: boolean;iv
iv: Uint8Array;salt
salt: Uint8Array;Description
Encrypt article @description:zh-CN 加密文章 default algorithm: AES-CBC
favicon
favicon: string;Defined in: packages/valaxy/types/config.ts:149
icon for your website
feed
feed: object;Defined in: packages/valaxy/types/config.ts:151
favicon
favicon: string;name
name: string;name: feed -> feed.xml / feed.atom / feed.json
Default
'' -> feed.xml / atom.xml / feed.jsonfloatingVue
floatingVue: any;Defined in: packages/valaxy/types/config.ts:336
Floating Vue configuration for floating footnote tooltips.
See
https://floating-vue.starpad.dev/guide/config
frontmatter
frontmatter: Partial<PostFrontMatter>;Defined in: packages/valaxy/types/config.ts:223
set post default frontmatter
fuse
fuse: object;Defined in: packages/valaxy/types/config.ts:190
fuse search
dataPath
dataPath: string;Default
'valaxy-fuse-list.json'Description
搜索结果列表数据所在路径
options
options: FuseOptions<FuseListItem> & object;Type Declaration
keys
keys: FuseOptionKey<FuseListItem>[] | undefined;@en_US The fields to be searched. @zh_CN 搜索的字段
Default
['title', 'tags', 'categories', 'excerpt']
@description:en-US List of keys that will be searched. This supports nested paths, weighted search, and searching in arrays of strings and objects
@description:zh-CN 搜索将会涉及的字段列表,支持嵌套路径、加权搜索以及在字符串和对象数组中进行搜索See
https://fusejs.io/api/options.html#keys
See
https://fusejs.io/api/options.html
pattern?
optional pattern: string;fast-glob pattern to match Fuse List Data
Default
pages/**/*.md
await fg(`${userRoot}/pages/posts/**/*.md`)See
Description
本地搜索 Please set search.type to 'fuse'
lang
lang: string;Defined in: packages/valaxy/types/config.ts:54
Default language
Description
默认语言,设置 zh-CN 以改变默认语言为中文
Default
'en'languages
languages: string[];Defined in: packages/valaxy/types/config.ts:63
alternative languages
Description
可选语言
En
If you want to disable multi-language support for your site, you can set this to only include one language (e.g. ['en'])
Zh
如果你想要禁言站点的多语言支持,可以将此项设置为仅包含一个语言 (例如 ['zh-CN'])
Default
['en', 'zh-CN']See
lastUpdated
lastUpdated: boolean;Defined in: packages/valaxy/types/config.ts:144
show last updated time by git/mtime
Default
falselicense
license: object;Defined in: packages/valaxy/types/config.ts:250
The license of your posts
enabled
enabled: boolean;Whether to show at the bottom of the article
Description
是否显示在文章底部
Default
truelanguage
language: string;Creative License Language, same with your config.lang when lang === 'zh-CN', use 'zh'
Description
默认与站点语言相同
Default
'en'type
type: "zero" | "by-sa" | "by-nd" | "by-nc" | "by-nc-sa" | "by-nc-nd";Type of license
Description
证书类型
Default
'by-nc-sa'Description
文章所使用的协议,默认使用 Creative Commons
Default
https://creativecommons.org/licenses/mediumZoom
mediumZoom: object;Defined in: packages/valaxy/types/config.ts:305
image preview by medium-zoom
enable
enable: boolean;Zh
启用图片预览
options
options: ZoomOptions;Zh
配置项
See
https://github.com/francoischalifour/medium-zoom#options
selector
selector: string | HTMLElement | HTMLElement[];For example: '.markdown-body img'
Default
'' content.value querySelectorAll('img')Url
https://github.com/francoischalifour/medium-zoom
mode
mode: "light" | "dark" | "auto";Defined in: packages/valaxy/types/config.ts:48
enable auto (light/dark mode)
Default
'auto'orderBy
orderBy: "date" | "updated";Defined in: packages/valaxy/types/config.ts:138
order posts by 'date' or 'updated'
- date: 按创建时间排序
- updated: 按最后更新时间排序
当开启 lastUpdated 时,updated 会按照文件的更新时间自动赋值
Default
'date'pageSize
pageSize: number;Defined in: packages/valaxy/types/config.ts:342
displayed posts length in every page
Default
7redirects?
optional redirects: object;Defined in: packages/valaxy/types/config.ts:398
@description:en-US client redirect rules @description:zh-CN 客户端重定向规则
rules?
optional rules: RedirectRule[];useVueRouter?
optional useVueRouter: boolean;search
search: object;Defined in: packages/valaxy/types/config.ts:169
enable
enable: boolean;Zh
是否启用
type
type: "algolia" | "engine" | "fuse";Search Type
- algolia: Algolia Search
- engine: Engine Search, like Google/Baidu
- fuse: Local Search by fuse.js
En
search engine for your site
Zh
搜索功能
social
social: SocialLink[];Defined in: packages/valaxy/types/config.ts:163
社交链接
sponsor
sponsor: object;Defined in: packages/valaxy/types/config.ts:276
donate for author
description?
optional description: string;Donate content description
Description
打赏的描述内容,在按钮下方所有图片上方,与图片一起折叠
Default
undefined 不显示内容enable
enable: boolean;methods
methods: object[];Zh
赞助方式
title?
optional title: string;Donate button title attribute
Description
打赏按钮的 title 属性
Default
zh:'打赏' en:'Donate'Description
打赏/赞助
statistics
statistics: object;Defined in: packages/valaxy/types/config.ts:348
statistics readingTime and wordCount
enable
enable: boolean;readTime
readTime: object;readTime.speed
speed: object;readTime.speed.cn
cn: number;Chinese word count speed
Description
中文每分钟阅读字数
Default
300 (300 字/分钟)readTime.speed.en
en: number;English word count speed
Description
英文每分钟阅读字数
Default
100 (200 字/分钟)Description
统计阅读时间和字数
subtitle
subtitle: string;Defined in: packages/valaxy/types/config.ts:88
副标题
timezone
timezone: string;Defined in: packages/valaxy/types/config.ts:78
See
https://wikipedia.org/wiki/List_of_tz_database_time_zones @en_US Timezone configuration @zh_CN 时区配置,国内推荐使用 'Asia/Shanghai' @description:en-US This configuration is used to generate times with timezone when no timezone is set @description:zh-CN 当时间没有设置时区时,使用该配置生成带时区的时间
Default
''title
title: string;Defined in: packages/valaxy/types/config.ts:84
Site title
Description
站点标题
url
url: string;Defined in: packages/valaxy/types/config.ts:79
vanillaLazyload
vanillaLazyload: object;Defined in: packages/valaxy/types/config.ts:327
lazyload by vanilla-lazyload and markdown-it-image-figures when vanillaLazyLoad.enable is true, imageFigures removeSrc is true, classes is 'lazy'
enable
enable: boolean;options
options: ILazyLoadOptions;