Skip to main content
  1. Posts/

Blowfish 布局说明

·206 words·1 min· loading · loading · ·
Author
Zhenda
A personal website
Hugo Blowfish 指南 - This article is part of a series.
Part : This Article

Blowfish 布局配置
#

首页布局
#

[homepage]
  layout = "page"        # profile, page, hero, background, card
  cardView = true
  showRecentItems = 9
布局说明
profile头像+简介+社交链接
page纯 Markdown 内容
hero大标题 + Markdown
background背景图 + 内容
card卡片式文章列表

列表页布局
#

[list]
  cardView = true        # 卡片视图(true)或列表视图(false)
  showSummary = true     # 显示摘要
  groupByYear = true     # 按年份分组

导航栏布局
#

[header]
  layout = "fixed"      # basic, fixed, fixed-fill, fixed-fill-blur
布局说明
basic普通流动
fixed固定顶部
fixed-fill固定+填充色
fixed-fill-blur固定+毛玻璃

文章 Hero
#

[article]
  showHero = true
  heroStyle = "big"     # basic, big, background, thumbAndBackground

切换方法
#

全局配置: 修改 config/_default/params.toml

文章级别: 在 frontmatter 中覆盖

+++
[params]
  cardView = false
+++
Hugo Blowfish 指南 - This article is part of a series.
Part : This Article