Hexo主题fluid配置基础

Fluid 主题的配置选项很多,我应该分类整理,给出最实用的配置项,而不是全部(因为全部太多太杂)。好的,Fluid 主题常用配置速查表。


一、基础信息

表格

复制

配置项 说明 示例
title 网站标题 Rex.Sprk
subtitle 副标题 个人哲学与AI养老探索
description 网站描述(SEO用) Rex的个人博客...
author 作者名 Rex
language 语言 zh-CN
timezone 时区 Asia/Shanghai

文件:博客根目录 _config.yml


二、导航菜单

表格

复制

配置项 说明 示例
menu.Home 首页 / | fas fa-home
menu.Archives 归档 /archives/ | fas fa-archive
menu.Categories 分类 /categories/ | fas fa-th
menu.Tags 标签 /tags/ | fas fa-tags
menu.About 关于 /about/ | fas fa-user

文件themes/fluid/_config.yml


三、首页大图

表格

复制

配置项 说明 示例
banner_img 首页背景图 /images/banner.jpg
banner_img_height 图片高度 70(百分比)
banner_mask_alpha 遮罩透明度 0.3(0-1)

四、头像与侧边栏

表格

复制

配置项 说明 示例
avatar 头像路径 /images/avatar.jpg
avatar_rounded 圆形头像 true
links.enable 开启友链 true

五、字体配置

表格

复制

配置项 说明 示例
font.enable 启用自定义字体 true
font.article.family 正文字体 "Noto Serif SC", serif
font.code.family 代码字体 "Fira Code", monospace

六、功能开关

表格

复制

配置项 说明 示例
dark_mode.enable 暗色模式 true
search.enable 站内搜索 true
toc.enable 文章目录 true
comments.enable 评论系统 false(先关闭)

七、页脚信息

表格

复制

配置项 说明 示例
footer.content 页脚文字 © 2025 Rex.Sprk
footer.statistics.enable 显示统计 true

配置文件位置

表格

复制

文件 用途
_config.yml(根目录) 站点基础信息
themes/fluid/_config.yml 主题外观配置

Hexo主题fluid配置基础
https://rexo.wang/2025/02/03/Rexo/Hexo theme-fluid config/
Author
Rex Wang
Posted on
February 3, 2025
Licensed under