Hugo博客

gastrophysics — Hugo 博客模板

作者 brege

Gastrophysics 是一个基于 Hugo 的主题,面向拥有多重职业轨迹的人,提供分段式 CV、食谱与品鉴菜单页面,并注重打印与电子阅读器显示效果。

看看你的网站会是什么样

浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。

2 个预览视图
桌面端首页1 / 2
桌面端截图首屏预览

由服务器浏览器实际访问页面后截取。

全部页面与视图 2

截图用于了解视觉与布局,交互效果请以实际项目为准。

采集于 2026-10-11查看来源

值得关注的模板亮点

从已有项目资料中,快速了解它的特点。

01

浅色/深色模式,自动跟随系统设置

02

11 套配色方案与配色选择器,语法高亮随配色变化

03

由 cv.yaml 驱动的分段式 CV 布局

04

提供 recipe、recipe-list、menu、menu-list 等食谱与菜单 shortcode

05

导航与主标题支持均衡换行,标题锚点深度可配置

06

内置搜索、RSS、Open Graph、Twitter Cards 与 JSON-LD

模板详细介绍

Gastrophysics 是一个 Hugo 主题,最初从 PaperMod 分叉而来,用于更好地呈现多条职业发展路径,随后逐渐融入偏教科书式的作品集风格与 The Atlantic 式的编辑排版特征。它适合需要同时展示简历、食谱和菜单的个人站点。

主题内置浅色/深色模式并自动跟随系统,提供 11 套配色方案与配色选择器组件,语法高亮会随配色变化。CV 采用分段式布局,由 cv.yaml 驱动;食谱与品鉴菜单通过 recipe、recipe-list、menu、menu-list 等 shortcode 和类型渲染。其他功能包括导航与主标题的均衡换行、可配置深度的标题锚点、紧凑与展开两种文章卡片布局、集中式 SVG 图标注册,以及搜索、RSS、Open Graph、Twitter Cards 和 JSON-LD。

使用前需先安装 Hugo,然后克隆仓库并进入 exampleSite 运行 hugo server 查看示例。主题以 MIT 许可发布,但演示图片、字体、图标等第三方素材需单独核对许可。

Hugo博客

适合你的项目吗?

适用场景

  • 为拥有多重职业经历的人制作分段式在线简历
  • 发布结构化食谱并生成食谱列表页
  • 展示餐厅品鉴菜单并归档菜单列表
  • 搭建兼顾打印与电子阅读器阅读的博客或作品集

适合人群

  • 使用 Hugo 构建静态站点的个人用户
  • 需要同时呈现 CV、食谱与菜单的内容创作者
  • 希望站点支持浅色/深色模式与多套配色的用户

上手与定制指南

结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。

  1. 1

    需先安装 Hugo,再克隆仓库并进入 exampleSite 目录运行 hugo server

  2. 2

    CV 内容通过 cv.yaml 配置,具体说明见 layouts/cv/README.md

  3. 3

    配色可在 hugo.toml 的 params 中通过 colorLight 与 colorDark 指定

  4. 4

    演示图片、字体、图标等第三方素材需按各自许可单独核对

查看仓库使用说明

授权与来源资料

使用条件与限制

免费使用 · 保留许可声明

本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。

使用时需要遵守

  • 允许免费使用、修改、商用和分发该版本代码。
  • 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
  • 代码按现状提供;担保与责任限制以原许可证及适用法律为准。

额外费用与待核对事项

  • 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
  • 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
  • 使用该主题前需先自行安装 Hugo 静态站点生成器,主题本身不包含 Hugo 运行时。
  • 快速开始依赖从 GitHub 克隆仓库并进入 exampleSite 目录运行 hugo server,需要本地具备 git 与 Hugo 环境。
查看原文依据

Permission is hereby granted, free of charge

许可证原文

Assuming you've [installed Hugo](https://gohugo.io/getting-started/installing/):

README 原文

git clone https://github.com/brege/gastrophysics.git cd gastrophysics/exampleSite hugo server

README 原文
https://github.com/brege/gastrophysics/blob/main/LICENSEhttps://github.com/brege/gastrophysics/blob/main/README.md

DeepSeek 根据仓库许可证和 README 整理 ·2026-10-11。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。

项目核对记录与介绍依据

模板资料

来源平台
GitHub
资料与维护参考分
资料较完整 · 83 / 100
技术栈
Hugo
网站类型
博客
这个分数如何计算

本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。

这个项目需要核对什么

记录的仓库更新时间
2026-05-31
截图检查日期
2026-10-11

已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。

目录记录的主要技术栈是 Hugo。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。

查看具体选型方法 →

介绍的制作与核对状态

介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。

审核声明: [email protected] · 2026-10-13

查看当时使用的来源资料

SHA-256: 869427c064e5053674b1900d21f390be2cf0525c022d82c1b68a1b4416100da9

2026-10-11T23:41:04.225Z

来源文件 / 仓库
<h1 align="center">Gastrophysics | <a href="https://gastrophysics.brege.org"><b>Demo</b></a></h1>

A Hugo theme for people with split careers. It is print- and e-reader-friendly, with sectional CVs, recipes, and tasting menus.

---

Gastrophysics started as a fork of [PaperMod](https://github.com/adityatelange/hugo-PaperMod/) for better presenting multiple career trajectories. It then moved toward a slightly textbook-y portfolio flair mixed with the editorial signatures of [The Atlantic](https://www.theatlantic.com/).

Interested in Markdown reuse? See [Related Projects](#related-projects).

## Quickstart

Assuming you've [installed Hugo](https://gohugo.io/getting-started/installing/):

```bash
git clone https://github.com/brege/gastrophysics.git
cd gastrophysics/exampleSite
hugo server
```

## Gallery

<table>
  <tr>
    <td colspan="2">
      <img src="docs/img/home.png" width="100%">
      <br><strong>Hero Page</strong>
    </td>
  </tr>
  <tr>
    <td>
      <img src="docs/img/menu.png" width="100%">
      <br><strong>Restaurant Menu</strong>
    </td>
    <td>
      <img src="docs/img/cv.png" width="100%">
      <br><strong>CV Layout</strong> (via <a href="https://github.com/brege/gastrophysics/tree/main/layouts/cv">cv.yaml</a>)
    </td>
  </tr>
</table>

## Features

- Light/dark mode with automatic system detection
- 11 [color palettes](#color-palettes) and palette picker widget
- Palette-aware syntax highlighting
- Sectional CV layout driven by `cv.yaml`
- Recipe and tasting-menu shortcodes and types
- Balanced text wrapping for navigation and hero titles
- Anchored headings with configurable depth
- Compact and expanded post card layouts
- Centralized SVG icon registry
- Search, RSS, Open Graph, Twitter Cards, and JSON-LD

## Color Palettes

You can mix and match palettes in `hugo.toml`:

```toml
[params]
  colorLight = 'linen'
  colorDark = 'nord'
```

- linen (my custom palette)
- [rose-pine](https://github.com/rose-pine/rose-pine-theme)
- [rose-pine-moon](https://github.com/rose-pine/rose-pine-theme)
- [catppuccin-frappe](https://github.com/catppuccin/catppuccin)
- [catppuccin-macchiato](https://github.com/catppuccin/catppuccin)
- [catppuccin-mocha](https://github.com/catppuccin/catppuccin)
- [nord](https://github.com/nordtheme/nord)
- [gruvbox](https://github.com/morhetz/gruvbox)
- [everforest](https://github.com/sainnhe/everforest)
- nordic-linen
- sepia

Syntax highlighting is palette-aware across all palettes.

## CV Module

See [layouts/cv/README.md](layouts/cv/README.md).

## Recipe/Menu Module

- `recipe`: renders structured recipe markup
- `recipe-list`: renders recipes from a subsection
- `menu`: renders a tasting menu card and pulls the author from page or site params
- `menu-list`: renders a menu archive with optional H3 preview extraction

## Related Projects

1. [**oshea**](https://github.com/brege/oshea) for a Node.js plugin framework for Markdown-to-PDF pipelines.
2. [**ghrm**](https://github.com/brege/ghrm) for local GitHub README rendering with admonitions, header anchors, Mermaid diagrams, math, and many more embeddings, based on [Hugo](https://github.com/gohugoio/hugo) with a [Neovim](https://neovim.io/) [plugin](https://github.com/brege/ghrm/blob/main/lua/ghrm/init.lua).

## License

[MIT](LICENSE)
反馈内容错误

看看同类模板

对比同技术栈与用途的模板,找到更适合的视觉与内容结构。