_config.fluid.yml 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104
  1. #---------------------------
  2. # Hexo Theme Fluid
  3. # Author: Fluid-dev
  4. # Github: https://github.com/fluid-dev/hexo-theme-fluid
  5. #
  6. # 配置指南: https://hexo.fluid-dev.com/docs/guide/
  7. # 你可以从指南中获得更详细的说明
  8. #
  9. # Guide: https://hexo.fluid-dev.com/docs/en/guide/
  10. # You can get more detailed help from the guide
  11. #---------------------------
  12. #---------------------------
  13. # 全局
  14. # Global
  15. #---------------------------
  16. # 用于浏览器标签的图标
  17. # Icon for browser tab
  18. favicon: https://img.limour.top/2023/08/29/64ee07361815a.webp
  19. # 用于苹果设备的图标
  20. # Icon for Apple touch
  21. apple_touch_icon: https://img.limour.top/2023/08/29/64ee07361815a.webp
  22. # 浏览器标签页中的标题分隔符,效果: 文章名 - 站点名
  23. # Title separator in browser tab, eg: article - site
  24. tab_title_separator: " - "
  25. # 强制所有链接升级为 HTTPS(适用于图片等资源出现 HTTP 混入报错)
  26. # Force all links to be HTTPS (applicable to HTTP mixed error)
  27. force_https: false
  28. # 代码块的增强配置
  29. # Enhancements to code blocks
  30. code:
  31. # 是否开启复制代码的按钮
  32. # Enable copy code button
  33. copy_btn: true
  34. # 代码语言
  35. # Code language
  36. language:
  37. enable: true
  38. default: "TEXT"
  39. # 代码高亮
  40. # Code highlight
  41. highlight:
  42. enable: true
  43. # 代码块是否显示行号
  44. # If true, the code block display line numbers
  45. line_number: true
  46. # 实现高亮的库,对应下面的设置
  47. # Highlight library
  48. # Options: highlightjs | prismjs
  49. lib: "highlightjs"
  50. highlightjs:
  51. # 在链接中挑选 style 填入
  52. # Select a style in the link
  53. # See: https://highlightjs.org/static/demo/
  54. style: "github gist"
  55. style_dark: "dark"
  56. prismjs:
  57. # 在下方链接页面右侧的圆形按钮挑选 style 填入,也可以直接填入 css 链接
  58. # Select the style button on the right side of the link page, you can also set the CSS link
  59. # See: https://prismjs.com/
  60. style: "default"
  61. style_dark: "tomorrow night"
  62. # 设为 true 高亮将本地静态生成(但只支持部分 prismjs 插件),设为 false 高亮将在浏览器通过 js 生成
  63. # If true, it will be generated locally (but some prismjs plugins are not supported). If false, it will be generated via JS in the browser
  64. preprocess: true
  65. # 一些好玩的功能
  66. # Some fun features
  67. fun_features:
  68. # 为 subtitle 添加打字机效果
  69. # Typing animation for subtitle
  70. typing:
  71. enable: true
  72. # 打印速度,数字越大越慢
  73. # Typing speed, the larger the number, the slower
  74. typeSpeed: 70
  75. # 游标字符
  76. # Cursor character
  77. cursorChar: "_"
  78. # 是否循环播放效果
  79. # If true, loop animation
  80. loop: false
  81. # 在指定页面开启,不填则在所有页面开启
  82. # Enable in specified page, all pages by default
  83. # Options: home | post | tag | category | about | links | page | 404
  84. scope: []
  85. # 为文章内容中的标题添加锚图标
  86. # Add an anchor icon to the title on the post page
  87. anchorjs:
  88. enable: true
  89. element: h1,h2,h3,h4,h5,h6
  90. # Options: left | right
  91. placement: left
  92. # Options: hover | always | touch
  93. visible: hover
  94. # Options: § | # | ❡
  95. icon: "§"
  96. # 加载进度条
  97. # Progress bar when loading
  98. progressbar:
  99. enable: true
  100. height_px: 3
  101. color: "#29d"
  102. # See: https://github.com/rstacruz/nprogress
  103. options: { showSpinner: false, trickleSpeed: 100 }
  104. # 主题暗色模式,开启后菜单中会出现切换按钮,用户浏览器会存储切换选项,并且会遵循 prefers-color-scheme 自动切换
  105. # Theme dark mode. If enable, a switch button will appear on the menu, each of the visitor's browser will store his switch option
  106. dark_mode:
  107. enable: true
  108. # 默认的选项(当用户手动切换后则不再按照默认模式),选择 `auto` 会优先遵循 prefers-color-scheme,其次按用户本地时间 18 点到次日 6 点之间进入暗色模式
  109. # Default option (when the visitor switches manually, the default mode is no longer followed), choosing `auto` will give priority to prefers-color-scheme, and then enter the dark mode from 18:00 to 6:00 in the visitor’s local time
  110. # Options: auto | light | dark
  111. default: auto
  112. # 主题颜色配置,其他不生效的地方请使用自定义 css 解决,配色可以在下方链接中获得启发
  113. # Theme color, please use custom CSS to solve other colors, color schema can be inspired by the links below
  114. # See: https://www.webdesignrankings.com/resources/lolcolors/
  115. color:
  116. # body 背景色
  117. # Color of body background
  118. body_bg_color: "#eee"
  119. # 暗色模式下的 body 背景色,下同
  120. # Color in dark mode, the same below
  121. body_bg_color_dark: "#181c27"
  122. # 顶部菜单背景色
  123. # Color of navigation bar background
  124. navbar_bg_color: "#2f4154"
  125. navbar_bg_color_dark: "#1f3144"
  126. # 顶部菜单字体色
  127. # Color of navigation bar text
  128. navbar_text_color: "#fff"
  129. navbar_text_color_dark: "#d0d0d0"
  130. # 副标题字体色
  131. # Color of navigation bar text
  132. subtitle_color: "#fff"
  133. subtitle_color_dark: "#d0d0d0"
  134. # 全局字体色
  135. # Color of global text
  136. text_color: "#3c4858"
  137. text_color_dark: "#c4c6c9"
  138. # 全局次级字体色(摘要、简介等位置)
  139. # Color of global secondary text (excerpt, introduction, etc.)
  140. sec_text_color: "#718096"
  141. sec_text_color_dark: "#a7a9ad"
  142. # 主面板背景色
  143. # Color of main board
  144. board_color: "#fff"
  145. board_color_dark: "#252d38"
  146. # 文章正文字体色
  147. # Color of post text
  148. post_text_color: "#2c3e50"
  149. post_text_color_dark: "#c4c6c9"
  150. # 文章正文字体色(h1 h2 h3...)
  151. # Color of Article heading (h1 h2 h3...)
  152. post_heading_color: "#1a202c"
  153. post_heading_color_dark: "#c4c6c9"
  154. # 文章超链接字体色
  155. # Color of post link
  156. post_link_color: "#0366d6"
  157. post_link_color_dark: "#1589e9"
  158. # 超链接悬浮时字体色
  159. # Color of link when hovering
  160. link_hover_color: "#30a9de"
  161. link_hover_color_dark: "#30a9de"
  162. # 超链接悬浮背景色
  163. # Color of link background when hovering
  164. link_hover_bg_color: "#f8f9fa"
  165. link_hover_bg_color_dark: "#364151"
  166. # 分隔线和表格边线的颜色
  167. # Color of horizontal rule and table border
  168. line_color: "#eaecef"
  169. line_color_dark: "#435266"
  170. # 滚动条颜色
  171. # Color of scrollbar
  172. scrollbar_color: "#c4c6c9"
  173. scrollbar_color_dark: "#687582"
  174. # 滚动条悬浮颜色
  175. # Color of scrollbar when hovering
  176. scrollbar_hover_color: "#a6a6a6"
  177. scrollbar_hover_color_dark: "#9da8b3"
  178. # 按钮背景色
  179. # Color of button
  180. button_bg_color: "transparent"
  181. button_bg_color_dark: "transparent"
  182. # 按钮悬浮背景色
  183. # Color of button when hovering
  184. button_hover_bg_color: "#f2f3f5"
  185. button_hover_bg_color_dark: "#46647e"
  186. # 主题字体配置
  187. # Font
  188. font:
  189. font_size: 16px
  190. font_family:
  191. letter_spacing: 0.02em
  192. code_font_size: 85%
  193. # 指定自定义 .js 文件路径,支持列表;路径是相对 source 目录,如 /js/custom.js 对应存放目录 source/js/custom.js
  194. # Specify the path of your custom js file, support list. The path is relative to the source directory, such as `/js/custom.js` corresponding to the directory `source/js/custom.js`
  195. custom_js:
  196. # 指定自定义 .css 文件路径,用法和 custom_js 相同
  197. # The usage is the same as custom_js
  198. custom_css: /theme-inject/custom.css
  199. # 网页访问统计
  200. # Analysis of website visitors
  201. web_analytics: # 网页访问统计
  202. enable: false
  203. # 遵循访客浏览器"请勿追踪"的设置,如果开启则不统计其访问
  204. # Follow the "Do Not Track" setting of the visitor's browser
  205. # See: https://www.w3.org/TR/tracking-dnt/
  206. follow_dnt: true
  207. # 百度统计的 Key,值需要获取下方链接中 `hm.js?` 后边的字符串
  208. # Baidu analytics, get the string behind `hm.js?`
  209. # See: https://tongji.baidu.com/sc-web/10000033910/home/site/getjs?siteId=13751376
  210. baidu:
  211. # Google Analytics 4 的媒体资源 ID
  212. # Google Analytics 4 MEASUREMENT_ID
  213. # See: https://support.google.com/analytics/answer/9744165#zippy=%2Cin-this-article
  214. google:
  215. measurement_id:
  216. # 腾讯统计的 H5 App ID,开启高级功能才有cid
  217. # Tencent analytics, set APP ID
  218. # See: https://mta.qq.com/h5/manage/ctr_app_manage
  219. tencent:
  220. sid:
  221. cid:
  222. # 51.la 站点统计 ID
  223. # 51.la analytics
  224. # See: https://www.51.la/user/site/index
  225. woyaola: # 51.la 站点统计 ID,参见
  226. # 友盟/cnzz 站点统计 web_id
  227. # cnzz analytics
  228. # See: https://web.umeng.com/main.php?c=site&a=show
  229. cnzz:
  230. # LeanCloud 计数统计,可用于 PV UV 展示,如果 `web_analytics: enable` 没有开启,PV UV 展示只会查询不会增加
  231. # LeanCloud count statistics, which can be used for PV UV display. If `web_analytics: enable` is false, PV UV display will only query and not increase
  232. leancloud:
  233. app_id:
  234. app_key:
  235. # REST API 服务器地址,国际版不填
  236. # Only the Chinese mainland users need to set
  237. server_url:
  238. # 统计页面时获取路径的属性
  239. # Get the attribute of the page path during statistics
  240. path: window.location.pathname
  241. # 开启后不统计本地路径( localhost 与 127.0.0.1 )
  242. # If true, ignore localhost & 127.0.0.1
  243. ignore_local: false
  244. # 对页面中的图片和评论插件进行懒加载处理,可见范围外的元素不会提前加载
  245. # Lazy loading of images and comment plugin on the page
  246. lazyload:
  247. enable: true
  248. # 加载时的占位图片
  249. # The placeholder image when loading
  250. loading_img: https://jscdn.limour.top/gh/Limour-dev/Sakurairo_Vision/load_svg/inload.svg
  251. # 开启后懒加载仅在文章页生效,如果自定义页面需要使用,可以在 Front-matter 里指定 `lazyload: true`
  252. # If true, only enable lazyload on the post page. For custom pages, you can set 'lazyload: true' in front-matter
  253. onlypost: false
  254. # 触发加载的偏移倍数,基数是视窗高度,可根据部署环境的请求速度调节
  255. # The factor of viewport height that triggers loading
  256. offset_factor: 2
  257. # 图标库,包含了大量社交类图标,主题依赖的不包含在内,因此可自行修改,详见 https://hexo.fluid-dev.com/docs/icon/
  258. # Icon library, which includes many social icons, does not include those theme dependent, so your can modify link by yourself. See: https://hexo.fluid-dev.com/docs/en/icon/
  259. iconfont: //at.alicdn.com/t/font_1736178_lbnruvf0jn.css
  260. #---------------------------
  261. # 页头
  262. # Header
  263. #---------------------------
  264. # 导航栏的相关配置
  265. # Navigation bar
  266. navbar:
  267. # 导航栏左侧的标题,为空则按 hexo config 中 `title` 显示
  268. # The title on the left side of the navigation bar. If empty, it is based on `title` in hexo config
  269. blog_title: "Limour's Blog"
  270. # 导航栏毛玻璃特效,实验性功能,可能会造成页面滚动掉帧和抖动,部分浏览器不支持会自动不生效
  271. # Navigation bar frosted glass special animation. It is an experimental feature
  272. ground_glass:
  273. enable: false
  274. # 模糊像素,只能为数字,数字越大模糊度越高
  275. # Number of blurred pixel. the larger the number, the higher the blur
  276. px: 3
  277. # 不透明度,数字越大透明度越低,注意透明过度可能看不清菜单字体
  278. # Ratio of opacity, 1.0 is completely opaque
  279. # available: 0 - 1.0
  280. alpha: 0.7
  281. # 导航栏菜单,可自行增减,key 用来关联 languages/*.yml,如不存在关联则显示 key 本身的值;icon 是 css class,可以省略;增加 name 可以强制显示指定名称
  282. # Navigation bar menu. `key` is used to associate languages/*.yml. If there is no association, the value of `key` itself will be displayed; if `icon` is a css class, it can be omitted; adding `name` can force the display of the specified name
  283. menu:
  284. - { key: "home", link: "/", icon: "iconfont icon-home-fill" }
  285. - { key: "archive", link: "/archives/", icon: "iconfont icon-archive-fill" }
  286. # 搜索功能,基于 hexo-generator-search 插件,若已安装其他搜索插件请关闭此功能,以避免生成多余的索引文件
  287. # Search feature, based on hexo-generator-search. If you have installed other search plugins, please disable this feature to avoid generating redundant index files
  288. search:
  289. enable: true
  290. # 搜索索引文件的路径,可以是相对路径或外站的绝对路径
  291. # Path for search index file, it can be a relative path or an absolute path
  292. path: /local-search.xml
  293. # 文件生成在本地的位置,必须是相对路径
  294. # The location where the index file is generated locally, it must be a relative location
  295. generate_path: /local-search.xml
  296. # 搜索的范围
  297. # Search field
  298. # Options: post | page | all
  299. field: post
  300. # 搜索是否扫描正文
  301. # If true, search will scan the post content
  302. content: true
  303. # 首屏图片的相关配置
  304. # Config of the big image on the first screen
  305. banner:
  306. # 视差滚动,图片与板块会随着屏幕滚动产生视差效果
  307. # Scrolling parallax
  308. parallax: true
  309. # 图片最小的宽高比,以免图片两边被过度裁剪,适用于移动端竖屏时,如需关闭设为 0
  310. # Minimum ratio of width to height, applicable to the vertical screen of mobile device, if you need to close it, set it to 0
  311. width_height_ratio: 1.0
  312. # 向下滚动的箭头
  313. # Scroll down arrow
  314. scroll_down_arrow:
  315. enable: true
  316. # 头图高度不小于指定比例,才显示箭头
  317. # Only the height of the banner image is greater than the ratio, the arrow is displayed
  318. # Available: 0 - 100
  319. banner_height_limit: 80
  320. # 翻页后自动滚动
  321. # Auto scroll after page turning
  322. scroll_after_turning_page: true
  323. # 向顶部滚动的箭头
  324. # Scroll top arrow
  325. scroll_top_arrow:
  326. enable: true
  327. # Open Graph metadata
  328. # See: https://hexo.io/docs/helpers.html#open-graph
  329. open_graph:
  330. enable: true
  331. twitter_card: summary_large_image
  332. twitter_id:
  333. twitter_site:
  334. google_plus:
  335. fb_admins:
  336. fb_app_id:
  337. #---------------------------
  338. # 页脚
  339. # Footer
  340. #---------------------------
  341. footer:
  342. # 页脚第一行文字的 HTML,建议保留 Fluid 的链接,用于向更多人推广本主题
  343. # HTML of the first line of the footer, it is recommended to keep the Fluid link to promote this theme to more people
  344. content: '
  345. <a target="_blank" rel="nofollow noopener" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=43130202000203"><img src="https://img.limour.top/2023/08/27/64eadeb81d6a0.webp">湘公网安备 43130202000203号 </a>
  346. <a target="_blank" rel="nofollow noopener" href="https://beian.miit.gov.cn/">湘ICP备20008299号 </a>
  347. <a target="_blank" rel="nofollow noopener" href="https://icp.gov.moe/?keyword=20210128">萌ICP备20210128号</a>
  348. <br>
  349. <a href="https://www.foreverblog.cn/" target="_blank"> <img src="https://img.foreverblog.cn/logo_en_default.png" alt="" style="width:auto;height:24px"> </a>
  350. <br>
  351. <a href="https://hexo.io" target="_blank" rel="nofollow noopener"><span>Hexo</span></a>
  352. <i class="iconfont icon-love"></i>
  353. <a href="https://github.com/fluid-dev/hexo-theme-fluid" target="_blank" rel="nofollow noopener"><span>Fluid</span></a>
  354. <i class="iconfont icon-love"></i>
  355. <a href="https://github.com/limour-blog/archives-b" target="_blank" rel="nofollow noopener"><span>SRC</span></a>
  356. '
  357. # 展示网站的 PV、UV 统计数
  358. # Display website PV and UV statistics
  359. statistics:
  360. enable: false
  361. # 统计数据来源,使用 leancloud 需要设置 `web_analytics: leancloud` 中的参数;使用 busuanzi 不需要额外设置,但是有时不稳定,另外本地运行时 busuanzi 显示统计数据很大属于正常现象,部署后会正常
  362. # Data source. If use leancloud, you need to set the parameter in `web_analytics: leancloud`
  363. # Options: busuanzi | leancloud
  364. source: "busuanzi"
  365. # 国内大陆服务器的备案信息
  366. # For Chinese mainland website policy, other areas keep disable
  367. beian:
  368. enable: false
  369. # ICP证号
  370. icp_text: 京ICP证123456号
  371. # 公安备案号,不填则只显示ICP
  372. police_text: 京公网安备12345678号
  373. # 公安备案的编号,用于URL跳转查询
  374. police_code: 12345678
  375. # 公安备案的图片. 为空时不显示备案图片
  376. police_icon: /img/police_beian.png
  377. #---------------------------
  378. # 首页
  379. # Home Page
  380. #---------------------------
  381. index:
  382. # 首页 Banner 头图,可以是相对路径或绝对路径,以下相同
  383. # Path of Banner image, can be a relative path or an absolute path, the same on other pages
  384. banner_img: https://img.limour.top/2023/08/29/64ee08e108638.webp
  385. # 头图高度,屏幕百分比
  386. # Height ratio of banner image
  387. # Available: 0 - 100
  388. banner_img_height: 100
  389. # 头图黑色蒙版的不透明度,available: 0 - 1.0, 1 是完全不透明
  390. # Opacity of the banner mask, 1.0 is completely opaque
  391. # Available: 0 - 1.0
  392. banner_mask_alpha: 0.01
  393. # 首页副标题的独立设置
  394. # Independent config of home page subtitle
  395. slogan:
  396. enable: true
  397. # 为空则按 hexo config.subtitle 显示
  398. # If empty, text based on `subtitle` in hexo config
  399. text: "一沙一世界,一花一天堂。君掌盛无边,刹那成永恒。"
  400. # 通过 API 接口作为首页副标题的内容,必须返回的是 JSON 格式,如果请求失败则按 text 字段显示,该功能必须先开启 typing 打字机功能
  401. # Subtitle of the homepage through the API, must be returned a JSON. If the request fails, it will be displayed in `text` value. This feature must first enable the typing animation
  402. api:
  403. enable: false
  404. # 请求地址
  405. # Request url
  406. url: ""
  407. # 请求方法
  408. # Request method
  409. # Available: GET | POST | PUT
  410. method: "GET"
  411. # 请求头
  412. # Request headers
  413. headers: {}
  414. # 从请求结果获取字符串的取值字段,最终必须是一个字符串,例如返回结果为 {"data": {"author": "fluid", "content": "An elegant theme"}}, 则取值字段为 ['data', 'content'];如果返回是列表则自动选择第一项
  415. # The value field of the string obtained from the response. For example, the response content is {"data": {"author": "fluid", "content": "An elegant theme"}}, the expected `keys: ['data','content']`; if the return is a list, the first item is automatically selected
  416. keys: []
  417. # 自动截取文章摘要
  418. # Auto extract post
  419. auto_excerpt:
  420. enable: true
  421. # 打开文章的标签方式
  422. # The browser tag to open the post
  423. # Available: _blank | _self
  424. post_url_target: _self
  425. # 是否显示文章信息(时间、分类、标签)
  426. # Meta information of post
  427. post_meta:
  428. date: true
  429. category: true
  430. tag: true
  431. # 文章通过 sticky 排序后,在首页文章标题前显示图标
  432. # If the posts are sorted by `sticky`, an icon is displayed in front of the post title
  433. post_sticky:
  434. enable: true
  435. icon: "iconfont icon-top"
  436. #---------------------------
  437. # 文章页
  438. # Post Page
  439. #---------------------------
  440. post:
  441. banner_img: https://img.limour.top/2023/08/29/64ee08e108638.webp
  442. banner_img_height: 70
  443. banner_mask_alpha: 0.3
  444. # 文章在首页的默认封面图,当没有指定 index_img 时会使用该图片,若两者都为空则不显示任何图片
  445. # Path of the default post cover when `index_img` is not set. If both are empty, no image will be displayed
  446. default_index_img:
  447. # 文章标题下方的元信息
  448. # Meta information below title
  449. meta:
  450. # 作者,优先根据 front-matter 里 author 字段,其次是 hexo 配置中 author 值
  451. # Author, based on `author` field in front-matter, if not set, based on `author` value in hexo config
  452. author:
  453. enable: false
  454. # 文章日期,优先根据 front-matter 里 date 字段,其次是 md 文件日期
  455. # Post date, based on `date` field in front-matter, if not set, based on create date of .md file
  456. date:
  457. enable: true
  458. # 格式参照 ISO-8601 日期格式化
  459. # ISO-8601 date format
  460. # See: http://momentjs.cn/docs/#/parsing/string-format/
  461. format: "LL a"
  462. # 字数统计
  463. # Word count
  464. wordcount:
  465. enable: true
  466. # 估计阅读全文需要的时长
  467. # Estimated reading time
  468. min2read:
  469. enable: true
  470. # 每个字词的长度,建议:中文≈2,英文≈5,中英混合可自行调节
  471. # Average word length (chars count in word), ZH ≈ 2, EN ≈ 5
  472. awl: 2
  473. # 每分钟阅读字数,如果大部分是技术文章可适度调低
  474. # Words per minute
  475. wpm: 60
  476. # 浏览量计数
  477. # Number of visits
  478. views:
  479. enable: false
  480. # 统计数据来源
  481. # Data Source
  482. # Options: busuanzi | leancloud
  483. source: "busuanzi"
  484. # 在文章开头显示文章更新时间,该时间默认是 md 文件更新时间,可通过 front-matter 中 `updated` 手动指定(和 date 一样格式)
  485. # Update date is displayed at the beginning of the post. The default date is the update date of the md file, which can be manually specified by `updated` in front-matter (same format as date)
  486. updated:
  487. enable: false
  488. # 格式参照 ISO-8601 日期格式化
  489. # ISO-8601 date format
  490. # See: http://momentjs.cn/docs/#/parsing/string-format/
  491. date_format: "LL a"
  492. # 是否使用相对时间表示,比如:"3 天前"
  493. # If true, it will be a relative time, such as: "3 days ago"
  494. relative: false
  495. # 提示标签类型
  496. # Note class
  497. # Options: default | primary | info | success | warning | danger | light
  498. note_class: info
  499. # 侧边栏展示当前分类下的文章
  500. # Sidebar of category
  501. category_bar:
  502. enable: true
  503. # 开启后,只有在文章 Front-matter 里指定 `category_bar: true` 才会展示分类,也可以通过 `category_bar: ["分类A"]` 来指定分类
  504. # If true, only set `category_bar: true` in Front-matter will enable sidebar of category, also set `category_bar: ["CategoryA"]` to specify categories
  505. specific: true
  506. # 置于板块的左侧或右侧
  507. # place in the board
  508. # Options: left | right
  509. placement: left
  510. # 文章的排序字段,前面带减号是倒序,不带减号是正序
  511. # Sort field for posts, with a minus sign is reverse order
  512. # Options: date | title | or other field of front-matter
  513. post_order_by: "title"
  514. # 单个分类中折叠展示文章数的最大值,超过限制会显示 More,0 则不限制
  515. # The maximum number of posts in a single category. If the limit is exceeded, it will be displayed More. If 0 no limit
  516. post_limit: 0
  517. # 侧边栏展示文章目录
  518. # Table of contents (TOC) in the sidebar
  519. toc:
  520. enable: true
  521. # 置于板块的左侧或右侧
  522. # place in the board
  523. # Options: left | right
  524. placement: right
  525. # 目录会选择这些节点作为标题
  526. # TOC will select these nodes as headings
  527. headingSelector: "h1,h2,h3,h4,h5,h6"
  528. # 层级的折叠深度,0 是全部折叠,大于 0 后如果存在下级标题则默认展开
  529. # Collapse depth. If 0, all headings collapsed. If greater than 0, it will be expanded by default if there are sub headings
  530. collapseDepth: 0
  531. # 版权声明,会显示在每篇文章的结尾
  532. # Copyright, will be displayed at the end of each post
  533. copyright:
  534. enable: true
  535. # CreativeCommons license
  536. # Options: BY | BY-SA | BY-ND | BY-NC | BY-NC-SA | BY-NC-ND
  537. license: 'BY-NC-SA'
  538. # 显示作者
  539. author:
  540. enable: true
  541. # 显示发布日期
  542. # Show post date
  543. post_date:
  544. enable: true
  545. format: "LL"
  546. # 显示更新日期
  547. # Show update date
  548. update_date:
  549. enable: false
  550. format: "LL"
  551. # 文章底部上一篇下一篇功能
  552. # Link to previous/next post
  553. prev_next:
  554. enable: true
  555. # 文章图片标题
  556. # Image caption
  557. image_caption:
  558. enable: true
  559. # 文章图片可点击放大
  560. # Zoom feature of images
  561. image_zoom:
  562. enable: true
  563. # 放大后图片链接替换规则,可用于将压缩图片链接替换为原图片链接,如 ['-slim', ''] 是将链接中 `-slim` 移除;如果想使用正则请使用 `re:` 前缀,如 ['re:\\d{3,4}\\/\\d{3,4}\\/', '']
  564. # The image url replacement when zooming, the feature can be used to replace the compressed image to the original image, eg: ['-slim', ''] removes `-slim` from the image url when zooming; if you want to use regular, use prefix `re:`, eg: ['re:\\d{3,4}\\/\\d{3,4}\\/','']
  565. img_url_replace: ['', '']
  566. # 脚注语法,会在文章底部生成脚注,如果 Markdown 渲染器本身支持,则建议关闭,否则可能会冲突
  567. # Support footnote syntax, footnotes will be generated at the bottom of the post page. If the Markdown renderer itself supports it, please disable it, otherwise it may conflict
  568. footnote:
  569. enable: true
  570. # 脚注的节标题,也可以在 front-matter 中通过 `footnote: <h2>Reference</h2>` 这种形式修改单独页面的 header
  571. # The section title of the footnote, you can also modify the header of a single page in the form of `footnote: <h2>Reference</h2>` in front-matter
  572. header: ''
  573. # 数学公式,开启之前需要更换 Markdown 渲染器,否则复杂公式会有兼容问题,具体请见:https://hexo.fluid-dev.com/docs/guide/##latex-数学公式
  574. # Mathematical formula. If enable, you need to change the Markdown renderer, see: https://hexo.fluid-dev.com/docs/en/guide/#math
  575. math:
  576. # 开启后文章默认可用,自定义页面如需使用,需在 Front-matter 中指定 `math: true`
  577. # If you want to use math on the custom page, you need to set `math: true` in Front-matter
  578. enable: true
  579. # 开启后,只有在文章 Front-matter 里指定 `math: true` 才会在文章页启动公式转换,以便在页面不包含公式时提高加载速度
  580. # If true, only set `math: true` in Front-matter will enable math, to load faster when the page does not contain math
  581. specific: true
  582. # Options: mathjax | katex
  583. engine: katex
  584. # 流程图,基于 mermaid-js,具体请见:https://hexo.fluid-dev.com/docs/guide/#mermaid-流程图
  585. # Flow chart, based on mermaid-js, see: https://hexo.fluid-dev.com/docs/en/guide/#mermaid
  586. mermaid:
  587. # 开启后文章默认可用,自定义页面如需使用,需在 Front-matter 中指定 `mermaid: true`
  588. # If you want to use mermaid on the custom page, you need to set `mermaid: true` in Front-matter
  589. enable: false
  590. # 开启后,只有在文章 Front-matter 里指定 `mermaid: true` 才会在文章页启动公式转换,以便在页面不包含公式时提高加载速度
  591. # If true, only set `mermaid: true` in Front-matter will enable mermaid, to load faster when the page does not contain mermaid
  592. specific: false
  593. # See: http://mermaid-js.github.io/mermaid/
  594. options: { theme: 'default' }
  595. # 评论插件
  596. # Comment plugin
  597. comments:
  598. enable: true
  599. # 指定的插件,需要同时设置对应插件的必要参数
  600. # The specified plugin needs to set the necessary parameters at the same time
  601. # Options: utterances | disqus | gitalk | valine | waline | changyan | livere | remark42 | twikoo | cusdis | giscus | discuss
  602. type: waline
  603. #---------------------------
  604. # 评论插件
  605. # Comment plugins
  606. #
  607. # 开启评论需要先设置上方 `post: comments: enable: true`,然后根据 `type` 设置下方对应的评论插件参数
  608. # Enable comments need to be set `post: comments: enable: true`, then set the corresponding comment plugin parameters below according to `type`
  609. #---------------------------
  610. # Utterances
  611. # 基于 GitHub Issues
  612. # Based on GitHub Issues
  613. # See: https://utteranc.es
  614. utterances:
  615. repo:
  616. issue_term: pathname
  617. label: utterances
  618. theme: github-light
  619. theme_dark: github-dark
  620. # Disqus
  621. # 基于第三方的服务,国内用户直接使用容易被墙,建议配合 Disqusjs
  622. # Based on third-party service
  623. # See: https://disqus.com
  624. disqus:
  625. shortname:
  626. # 以下为 Disqusjs 支持, 国内用户如果想使用 Disqus 建议配合使用
  627. # The following are Disqusjs configurations, please ignore if DisqusJS is not required
  628. # See: https://github.com/SukkaW/DisqusJS
  629. disqusjs: false
  630. apikey:
  631. # Gitalk
  632. # 基于 GitHub Issues
  633. # Based on GitHub Issues
  634. # See: https://github.com/gitalk/gitalk#options
  635. gitalk:
  636. clientID:
  637. clientSecret:
  638. repo:
  639. owner:
  640. admin: ['name']
  641. language: zh-CN
  642. labels: ['Gitalk']
  643. perPage: 10
  644. pagerDirection: last
  645. distractionFreeMode: false
  646. createIssueManually: true
  647. # 默认 proxy 可能会失效,解决方法请见下方链接
  648. # The default proxy may be invalid, refer to the links for solutions
  649. # https://github.com/gitalk/gitalk/issues/429
  650. # https://github.com/Zibri/cloudflare-cors-anywhere
  651. proxy: https://cors-anywhere.azm.workers.dev/https://github.com/login/oauth/access_token
  652. # Valine
  653. # 基于 LeanCloud
  654. # Based on LeanCloud
  655. # See: https://valine.js.org/
  656. valine:
  657. appId:
  658. appKey:
  659. path: window.location.pathname
  660. placeholder:
  661. avatar: 'retro'
  662. meta: ['nick', 'mail', 'link']
  663. requiredFields: []
  664. pageSize: 10
  665. lang: 'zh-CN'
  666. highlight: false
  667. recordIP: false
  668. serverURLs: ''
  669. emojiCDN:
  670. emojiMaps:
  671. enableQQ: false
  672. # Waline
  673. # 从 Valine 衍生而来,额外增加了服务端和多种功能
  674. # Derived from Valine, with self-hosted service and new features
  675. # See: https://waline.js.org/
  676. waline:
  677. serverURL: 'https://comments.limour.top'
  678. path: window.location.pathname
  679. meta: ['nick', 'mail', 'link']
  680. requiredMeta: ['nick']
  681. lang: 'zh-CN'
  682. emoji: ['https://jscdn.limour.top/gh/walinejs/emojis/weibo']
  683. dark: 'html[data-user-color-scheme="dark"]'
  684. wordLimit: 0
  685. pageSize: 10
  686. # 畅言 Changyan
  687. # 基于第三方的服务
  688. # Based on third-party service, insufficient support for regions outside China
  689. # http://changyan.kuaizhan.com
  690. changyan:
  691. appid: ''
  692. appkey: ''
  693. # 来必力 Livere
  694. # 基于第三方的服务
  695. # Based on third-party service
  696. # See: https://www.livere.com
  697. livere:
  698. uid: ''
  699. # Remark42
  700. # 需要自托管服务端
  701. # Based on self-hosted service
  702. # See: https://remark42.com
  703. remark42:
  704. host:
  705. site_id:
  706. max_shown_comments: 10
  707. locale: zh
  708. components: ['embed']
  709. # Twikoo
  710. # 支持腾讯云、Vercel、Railway 等多种平台部署
  711. # Based on Tencent CloudBase
  712. # See: https://twikoo.js.org
  713. twikoo:
  714. envId:
  715. region: ap-shanghai
  716. path: window.location.pathname
  717. # Cusdis
  718. # 基于第三方服务或自托管服务
  719. # Based on third-party or self-hosted service
  720. # See https://cusdis.com
  721. cusdis:
  722. host:
  723. app_id:
  724. lang: zh-cn
  725. # Giscus
  726. # 基于 GitHub Discussions,类似于 Utterances
  727. # Based on GitHub Discussions, similar to Utterances
  728. # See: https://giscus.app/
  729. giscus:
  730. repo:
  731. repo-id:
  732. category:
  733. category-id:
  734. theme-light: light
  735. theme-dark: dark
  736. mapping: pathname
  737. reactions-enabled: 1
  738. emit-metadata: 0
  739. input-position: top
  740. lang: zh-CN
  741. # Discuss
  742. # 多平台、多数据库、自托管、免费开源评论系统
  743. # Self-hosted, small size, multi-platform, multi-database, free and open source commenting system
  744. # See: https://discuss.js.org
  745. discuss:
  746. serverURLs:
  747. path: window.location.pathname
  748. #---------------------------
  749. # 归档页
  750. # Archive Page
  751. #---------------------------
  752. archive:
  753. banner_img: https://img.limour.top/2023/08/29/64ee08e108638.webp
  754. banner_img_height: 60
  755. banner_mask_alpha: 0.3
  756. #---------------------------
  757. # 分类页
  758. # Category Page
  759. #---------------------------
  760. category:
  761. enable: true
  762. banner_img: https://img.limour.top/2023/08/29/64ee08e108638.webp
  763. banner_img_height: 60
  764. banner_mask_alpha: 0.3
  765. # 分类的排序字段,前面带减号是倒序,不带减号是正序
  766. # Sort field for categories, with a minus sign is reverse order
  767. # Options: length | name
  768. order_by: "-length"
  769. # 层级的折叠深度,0 是全部折叠,大于 0 后如果存在子分类则默认展开
  770. # Collapse depth. If 0, all posts collapsed. If greater than 0, it will be expanded by default if there are subcategories
  771. collapse_depth: 0
  772. # 文章的排序字段,前面带减号是倒序,不带减号是正序
  773. # Sort field for posts, with a minus sign is reverse order
  774. # Options: date | title | or other field of front-matter
  775. post_order_by: "-date"
  776. # 单个分类中折叠展示文章数的最大值,超过限制会显示 More,0 则不限制
  777. # The maximum number of posts in a single category. If the limit is exceeded, it will be displayed More. If 0 no limit
  778. post_limit: 10
  779. #---------------------------
  780. # 标签页
  781. # Tag Page
  782. #---------------------------
  783. tag:
  784. enable: true
  785. banner_img: https://img.limour.top/2023/08/29/64ee08e108638.webp
  786. banner_img_height: 80
  787. banner_mask_alpha: 0.3
  788. tagcloud:
  789. min_font: 15
  790. max_font: 30
  791. unit: px
  792. start_color: "#BBBBEE"
  793. end_color: "#337ab7"
  794. #---------------------------
  795. # 关于页
  796. # About Page
  797. #---------------------------
  798. about:
  799. enable: true
  800. banner_img: https://img.limour.top/2023/08/29/64ee08e108638.webp
  801. banner_img_height: 60
  802. banner_mask_alpha: 0.3
  803. avatar: /img/avatar.png
  804. name: "Fluid"
  805. intro: "An elegant theme for Hexo"
  806. # 更多图标可从 https://hexo.fluid-dev.com/docs/icon/ 查找,`class` 代表图标的 css class,添加 `qrcode` 后,图标不再是链接而是悬浮二维码
  807. # More icons can be found from https://hexo.fluid-dev.com/docs/en/icon/ `class` is the css class of the icon. If adding `qrcode`, The icon is no longer a link, but a hovering QR code
  808. icons:
  809. - { class: "iconfont icon-github-fill", link: "https://github.com", tip: "GitHub" }
  810. - { class: "iconfont icon-douban-fill", link: "https://douban.com", tip: "豆瓣" }
  811. - { class: "iconfont icon-wechat-fill", qrcode: "/img/favicon.png" }
  812. #---------------------------
  813. # 自定义页
  814. # Custom Page
  815. #
  816. # 通过 hexo new page 命令创建的页面
  817. # Custom Page through `hexo new page`
  818. #---------------------------
  819. page:
  820. banner_img: https://img.limour.top/2023/08/29/64ee08e108638.webp
  821. banner_img_height: 60
  822. banner_mask_alpha: 0.3
  823. #---------------------------
  824. # 404页
  825. # 404 Page
  826. #---------------------------
  827. page404:
  828. enable: true
  829. banner_img: https://img.limour.top/2023/08/29/64ee08e108638.webp
  830. banner_img_height: 85
  831. banner_mask_alpha: 0.3
  832. # 重定向到首页的延迟(毫秒)
  833. # Delay in redirecting to home page (milliseconds)
  834. redirect_delay: 5000
  835. #---------------------------
  836. # 友链页
  837. # Links Page
  838. #---------------------------
  839. links:
  840. enable: true
  841. banner_img: https://img.limour.top/2023/08/29/64ee08e108638.webp
  842. banner_img_height: 60
  843. banner_mask_alpha: 0.3
  844. # 友链的成员项
  845. # Member item of page
  846. items:
  847. - {
  848. title: "Fluid Blog",
  849. intro: "主题博客",
  850. link: "https://hexo.fluid-dev.com/",
  851. avatar: "/img/favicon.png"
  852. }
  853. - {
  854. title: "Fluid Docs",
  855. intro: "主题使用指南",
  856. link: "https://hexo.fluid-dev.com/docs/",
  857. avatar: "/img/favicon.png"
  858. }
  859. - {
  860. title: "Fluid Repo",
  861. intro: "主题 GitHub 仓库",
  862. link: "https://github.com/fluid-dev/hexo-theme-fluid",
  863. avatar: "/img/favicon.png"
  864. }
  865. # 当成员头像加载失败时,替换为指定图片
  866. # When the member avatar fails to load, replace the specified image
  867. onerror_avatar: /img/avatar.png
  868. # 友链下方自定义区域,支持 HTML,可插入例如申请友链的文字
  869. # Custom content at the bottom of the links
  870. custom:
  871. enable: false
  872. content: '<hr><p>在下方留言申请加入我的友链,按如下格式提供信息:</p><ul><li>博客名:Fluid</li><li>简介:Fluid 主题官方博客</li><li>链接:https://hexo.fluid-dev.com</li><li>图片:https://hexo.fluid-dev.com/img/favicon.png</li></ul>'
  873. # 评论插件
  874. # Comment plugin
  875. comments:
  876. enable: false
  877. # 指定的插件,需要同时设置对应插件的必要参数
  878. # The specified plugin needs to set the necessary parameters at the same time
  879. # Options: utterances | disqus | gitalk | valine | waline | changyan | livere | remark42 | twikoo | cusdis | giscus | discuss
  880. type: disqus
  881. #---------------------------
  882. # 以下是配置 JS CSS 等静态资源的 URL 前缀,可以自定义成 CDN 地址,
  883. # 如果需要修改,最好使用与默认配置相同的版本,以避免潜在的问题,
  884. # ** 如果你不知道如何设置,请不要做任何改动 **
  885. #
  886. # Here is the url prefix to configure the static assets. Set CDN addresses you want to customize.
  887. # Be aware that you would better use the same version as default ones to avoid potential problems.
  888. # DO NOT EDIT THE FOLLOWING SETTINGS UNLESS YOU KNOW WHAT YOU ARE DOING
  889. #---------------------------
  890. static_prefix:
  891. # 内部静态
  892. # Internal static
  893. internal_js: /js
  894. internal_css: /css
  895. internal_img: /img
  896. anchor: https://jscdn.limour.top/npm/anchor-js@4.3.1/
  897. github_markdown: https://jscdn.limour.top/npm/github-markdown-css@4.0.0/
  898. jquery: https://jscdn.limour.top/npm/jquery@3.6.4/dist/
  899. bootstrap: https://jscdn.limour.top/npm/bootstrap@4.6.1/dist/
  900. prismjs: https://lib.baomitu.com/prism/1.29.0/
  901. tocbot: https://jscdn.limour.top/npm/tocbot@4.20.1/dist/
  902. typed: https://lib.baomitu.com/typed.js/2.0.12/
  903. fancybox: https://lib.baomitu.com/fancybox/3.5.7/
  904. nprogress: https://jscdn.limour.top/npm/nprogress@0.2.0/
  905. mathjax: https://lib.baomitu.com/mathjax/3.2.2/
  906. katex: https://lib.baomitu.com/KaTeX/0.16.2/
  907. busuanzi: https://busuanzi.ibruce.info/busuanzi/2.3/
  908. clipboard: https://lib.baomitu.com/clipboard.js/2.0.11/
  909. mermaid: https://lib.baomitu.com/mermaid/8.14.0/
  910. valine: https://lib.baomitu.com/valine/1.5.1/
  911. waline: https://cdn.staticfile.org/waline/2.15.5/
  912. gitalk: https://lib.baomitu.com/gitalk/1.8.0/
  913. disqusjs: https://lib.baomitu.com/disqusjs/1.3.0/
  914. twikoo: https://lib.baomitu.com/twikoo/1.6.8/
  915. discuss: https://lib.baomitu.com/discuss/1.2.1/
  916. hint: https://jscdn.limour.top/npm/hint.css@2.7.0/