基于 Hugo 的食谱/烹饪类博客主题,README 自述为简单主题
hugo-cuisine-book — Hugo 博客模板
作者 ntk148v
hugo-cuisine-book 是一个基于 Hugo 的食谱类博客主题,采用 MIT 许可,支持以 git submodule 或 Hugo module 方式安装。
看看你的网站会是什么样
浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。
全部页面与视图 2
截图用于了解视觉与布局,交互效果请以实际项目为准。
值得关注的模板亮点
从已有项目资料中,快速了解它的特点。
要求 Hugo extended 版本,README 标注需 0.128.0 及以上
支持 git submodule 与 Hugo module 两种安装方式
config.toml 可配置作者、描述、logo、评论、仓库与编辑/新建链接
可通过 _custom.scss、_fonts.scss、favicon.png 和 comments.html 覆盖默认样式与模板
采用 MIT 许可,仓库提供桌面端与手机端首页截图
模板详细介绍
hugo-cuisine-book 是 ntk148v 发布的 Hugo 主题,定位为简单的食谱/烹饪类博客模板,README 中将其描述为 "A simple Hugo theme",并说明灵感来自 Recipe-Book。主题要求使用 Hugo extended 版本,README 标注版本需不低于 0.128.0。
安装方式有两种:作为 git submodule 克隆到 themes/cuisine-book,或作为 Hugo module 在 config.toml 的 [module] 段中引入 github.com/ntk148v/hugo-cuisine-book。站点配置集中在 config.toml,可设置 baseURL、title、theme,以及 params 下的 author、description、logo、comment、repo、editpath、newpath;enableGitInfo 为可选开关。
定制方面,README 列出四个可覆盖的文件:static/favicon.png 替换默认图标,assets/_custom.scss 覆盖或自定义 SCSS 样式,assets/_fonts.scss 替换默认字体,layouts/partials/comments.html 覆盖评论模板。评论模板默认包含 Disqus,可通过 params.comment 或页面 frontmatter 中的同名参数控制。仓库附带桌面端与手机端首页截图,演示站点为 ntk148v.github.io/mammam。
适合你的项目吗?
适用场景
- 搭建以食谱、菜谱为主要内容的 Hugo 博客
- 为烹饪类站点提供带作者信息与评论入口的页面结构
- 需要在现有 Hugo 项目中通过 module 方式引入主题
- 希望用 SCSS 变量覆盖默认配色、背景或字体的站点
适合人群
- 使用 Hugo 并熟悉 config.toml 配置的开发者
- 以图文食谱文章为主的个人博客
- 接受 MIT 许可条款并愿意保留版权声明的项目
- 需要自定义评论模板或样式的站点维护者
上手与定制指南
结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。
- 1
需使用 Hugo extended 版本,README 标注版本不低于 0.128.0
- 2
git submodule 方式:git submodule add https://github.com/ntk148v/hugo-cuisine-book themes/cuisine-book
- 3
Hugo module 方式:在 config.toml 添加 [module] 段并 import github.com/ntk148v/hugo-cuisine-book,然后执行 hugo mod get -u
- 4
在 config.toml 中设置 theme = "cuisine-book",并按需填写 params 下的 author、description、logo、repo 等字段
- 5
覆盖样式或模板时,将自定义文件放在 assets/_custom.scss、assets/_fonts.scss、static/favicon.png 或 layouts/partials/comments.html
授权与来源资料
使用条件与限制
免费使用 · 保留许可声明本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。
使用时需要遵守
- 允许免费使用、修改、商用和分发该版本代码。
- 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
- 代码按现状提供;担保与责任限制以原许可证及适用法律为准。
额外费用与待核对事项
- 主题默认在 partials/comments.html 中集成 Disqus 评论模板;启用评论功能需使用 Disqus 第三方服务,可能涉及注册账号及外部服务条款。
- README 注明图片素材来自 Freepik,这些图片可能受单独的素材许可约束,与主题代码的 MIT 许可不同,使用前需自行核实授权。
- 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
- 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据
Permission is hereby granted, free of charge
许可证原文
By default partials/comments.html includes Disqus template
README 原文
https://github.com/ntk148v/hugo-cuisine-book/blob/master/LICENSEhttps://github.com/ntk148v/hugo-cuisine-book/blob/master/README.mdImages from [Freepik](https://freepik.com/)
README 原文
DeepSeek 根据仓库许可证和 README 整理 ·2026-10-03。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。
项目核对记录与介绍依据
模板资料
- 来源平台
- Hugo Themes
- 资料与维护参考分
- 资料较完整 · 79 / 100
- 技术栈
- Hugo
- 网站类型
- 博客
这个分数如何计算
本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。
这个项目需要核对什么
- 记录的仓库更新时间
- 2026-04-25
- 截图检查日期
- 2026-10-03
已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。
目录记录的主要技术栈是 Hugo。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。
查看具体选型方法 →介绍的制作与核对状态
介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。
审核声明: [email protected] · 2026-10-04
查看当时使用的来源资料
SHA-256: d8e1405dc5cefc231baf200cf5b2dc36e662c3f9fdedf237b5316eb215e65e68
2026-10-03T20:45:47.213Z
来源文件 / 仓库<div align="center">
<h1>Hugo Cuisine Book</h1>
<blockquote align="center">A simple Hugo theme</blockquote>
<p>
<a href="https://github.com/ntk148v/hugo-cuisine-book/blob/master/LICENSE">
<img alt="GitHub license" src="https://img.shields.io/github/license/ntk148v/hugo-cuisine-book?style=for-the-badge">
</a>
<a href="https://github.com/ntk148v/hugo-cuisine-book/stargazers">
<img alt="GitHub stars" src="https://img.shields.io/github/stars/ntk148v/hugo-cuisine-book?style=for-the-badge">
</a>
<a href="https://gohugo.io">
<img alt="Hugo" src="https://img.shields.io/badge/hugo-0.68-blue.svg?style=for-the-badge">
</a>
<a href="https://ntk148v.github.io/mammam">
<img alt="Demo Site" src="https://img.shields.io/badge/demo-site-green.svg?style=for-the-badge">
</a>
</p><br>
<p>
<img src="./images/screenshot.png">
</p>
</div>
- [1. Requirements](#1-requirements)
- [2. Installation](#2-installation)
- [2.1. Install as git module](#21-install-as-git-module)
- [2.2. Install as hugo module](#22-install-as-hugo-module)
- [3. Configuration \& Customization](#3-configuration--customization)
- [3.1. Site configuration](#31-site-configuration)
- [3.2. Customization](#32-customization)
- [4. Contributing](#4-contributing)
Credits:
- Highly inspired by [Recipe-Book](https://github.com/rametta/recipe-book)
- Images from [Freepik](https://freepik.com/)
## 1. Requirements
- Hugo extended version, version >= 0.128.0.
## 2. Installation
### 2.1. Install as git module
- Navigate to your hugo project root and run:
```bash
git submodule add https://github.com/ntk148v/hugo-cuisine-book themes/cuisine-book
```
- Run hugo (or set theme = "cuisine-book"/theme: hugo-book in configuration file)
```bash
hugo server --minify --theme cuisine-book
```
### 2.2. Install as hugo module
You can also add this theme as a Hugo module instead of a git submodule.
- Start with initializing hugo modules, if not done yet:
```bash
hugo mod init github.com/repo/path
```
- Navigate to your hugo project root and add [module] section to `config.toml`:
```bash
[module]
[[module.imports]]
path = 'github.com/ntk148v/hugo-cuisine-book'
```
- Load/update the theme module and run hugo:
```bash
hugo mod get -u
hugo server --minify
```
## 3. Configuration & Customization
### 3.1. Site configuration
- There are a few configuration options that you can add to your `config.toml` file.
```toml
# Your base url
baseURL = "http://localhost/my-title"
# Your page title
title = "my-title"
theme = "cuisine-book"
# (Optional) Set this to true to enable Author.
enableGitInfo = true
[params]
author = "Your Name"
description = "Describe about you"
# (Optional) Your logo in the header navbar which has to be stored in static folder.
# If the logo is /static/logo.png then the path would be 'logo.png'
logo = "logo.png"
# (Optional) Enable comments template on pages
# By default partials/comments.html includes Disqus template
# See https://gohugo.io/content-management/comments/#configure-disqus
# Can be overwritten by same param in page frontmatter
comment = true
# Set source repository location.
repo = 'https://github.com/ntk148v/mammam'
# Enable 'Edit' links.
# Disabled by default. Uncomment to enable. Requires 'repo' param.
# Path must point to the site directory.
editpath = 'edit/master'
# Enable 'Add' links.
# Disabled by default. Uncomment to enable. Requires 'repo' param.
# Path must point to the site directory.
newpath = 'new/master'
```
### 3.2. Customization
- Extra customization:
| File | Description |
| -------------------------------- | ------------------------------------------------------------------------------------- |
| `static/favicon.png` | Override default favicon |
| `assets/_custom.scss` | Customize or override scss styles |
| `assets/_fonts.scss` | Replace default font with custom fonts (e.g. local files or remote like google fonts) |
| `layouts/partials/comments.html` | Override comments.html template |
- For example, you want to change default site's background.
- Add new background to `static/`, named it as `background.png`.
- Add `assets/_custom.scss`
```scss
body {
background-image: url('background.png');
}
```
## 4. Contributing
- Fork it.
- Create your feature branch (`git checkout -b my-new-feature`).
- Commit your changes (`git commit -am 'Add some feature'`).
- Push to the branch (`git push origin my-new-feature`).
- Create new Pull Request.
看看同类模板
对比同技术栈与用途的模板,找到更适合的视觉与内容结构。

hugo-PaperMod
PaperMod 是 Hugo 生态里知名度较高的主题之一,定位很明确:给博客和轻量作品集站点提供一套干净、响应式的阅读界面。
Hugo · 作品集

LoveIt
❤️A clean, elegant but advanced blog theme for Hugo 一个简洁、优雅且高效的 Hugo 主题
Hugo · 博客

hugo-coder
A minimalist blog theme for hugo.
Hugo · 博客

blowfish
Personal Website & Blog Theme for Hugo
Hugo · 博客

hugo-paper
🪺 A simple, clean, customizable Hugo theme
Hugo · 博客

hextra
Hextra 是一个 Hugo 主题,定位在文档站与博客之间:既提供侧边栏导航、目录、面包屑、分页这类文档站结构,也能承载博客内容。
Hugo · 文档
