Hugo博客

hugo-notebook — Hugo 博客模板

作者 its-ammu

hugo-notebook 是一个 Hugo 博客主题,以点阵纸背景、页边书脊导航和高亮笔触强调营造笔记本观感,支持深色模式。

看看你的网站会是什么样

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

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

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

全部页面与视图 2

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

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

值得关注的模板亮点

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

01

整页点阵纸背景,配合页边线与粘性垂直书脊导航

02

链接和标题悬停时呈现荧光笔涂抹,导航与标签使用扫过式下划线

03

深色模式开关状态存入 localStorage,并在绘制前应用以避免闪烁,可配置默认主题

04

文章卡片显示摘要、阅读时间、标签和翻起的页角

05

使用系统字体栈,不加载网络字体;样式表经 Hugo Pipes 压缩与指纹处理

06

颜色集中为 CSS 变量,浅色与深色主题分别定义,便于调整

模板详细介绍

hugo-notebook 是一个面向博客的 Hugo 主题,整体视觉模仿纸质笔记本:整页使用点阵纸背景,左侧沿彩色页边线放置粘性垂直导航(margin spine nav),链接与标题在悬停时呈现荧光笔涂抹效果,导航与标签使用扫过式下划线。主题自带深色模式开关,状态保存在 localStorage 并在页面绘制前应用,避免闪烁,同时支持在配置中指定默认主题。首页包含带副标题与社交图标的介绍卡片,文章以卡片形式展示摘要、阅读时间、标签和翻起的页角。主题使用系统字体栈,不下载网络字体;样式表通过 Hugo Pipes 的 resources.Get、minify、fingerprint 处理,因此需要 Hugo extended 0.146.0 或更新版本。README 说明其从零构建,除一个用于深色模式切换的内联小脚本外没有外部 JS 依赖。响应式方面,窄屏下书脊导航折叠为顶部栏。颜色通过 assets/css/notebook.css 顶部的 CSS 变量控制,浅色主题在 :root,深色主题在 :root[data-theme="dark"],可调整高亮色、页边线、纸面与文字颜色、垂直节奏和点阵间距。文章放在 content/posts/ 下,标签与阅读时间自动显示在卡片和文章头部。

Hugo博客

适合你的项目吗?

适用场景

  • 搭建带有手写笔记本视觉风格的 Hugo 个人博客
  • 需要深色模式且希望避免主题切换闪烁的博客站点
  • 希望通过 CSS 变量统一调整高亮色、纸面与页边线外观的项目
  • 在窄屏设备上阅读、需要导航折叠为顶部栏的博客

适合人群

  • 使用 Hugo extended 0.146.0 或更新版本的用户
  • 偏好点阵纸与荧光笔视觉、而非通用极简风格的博客作者
  • 接受以 Hugo Module 或 Git submodule 方式安装主题的开发者
  • 需要文章卡片展示摘要、阅读时间与标签的博客

上手与定制指南

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

  1. 1

    需要 Hugo extended 0.146.0 或更新版本,因为样式表使用 Hugo Pipes 的 resources.Get、minify、fingerprint 处理

  2. 2

    可通过 Hugo Module(hugo mod init 后配置 module.imports 并执行 hugo mod get -u)或 Git submodule 安装,submodule 方式需在站点配置中设置 theme = "notebook"

  3. 3

    在 hugo.toml 的 [params] 中配置 description、author、defaultTheme、ShowReadingTime、DateFormat、favicon 等,社交图标通过 [[params.socialIcons]] 添加

  4. 4

    书脊导航通过 [[menu.main]] 定义,外部链接需标记 params.external = true

  5. 5

    如需在文章中内嵌 SVG 或 HTML 插图,需在 [markup.goldmark.renderer] 中设置 unsafe = true

查看仓库使用说明

授权与来源资料

使用条件与限制

免费使用 · 保留许可声明

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

使用时需要遵守

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

额外费用与待核对事项

  • 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
  • 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据

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

项目核对记录与介绍依据

模板资料

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

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

这个项目需要核对什么

记录的仓库更新时间
2026-09-16
截图检查日期
2026-10-02

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

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

查看具体选型方法 →

介绍的制作与核对状态

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

已完成服务器许可规则与 AI 来源核对;未经过人工编辑审核。

查看当时使用的来源资料

SHA-256: f2cdbd9c0e3c72128e22dbe94a26b89c291c4ff51dee08f0c1c019bc651ee7f3

2026-10-02T17:20:59.189Z

来源文件 / 仓库
# Notebook

A dotted-paper, notebook-feel Hugo theme for blogs. Built from scratch with no
external font or JS dependencies — just one stylesheet and a tiny inline script
for the dark-mode toggle.

![Notebook screenshot](images/screenshot.png)

## Features

- **Dotted-paper background** across the whole page
- **Margin spine navigation** — a sticky vertical nav along a colored margin line
- **Highlighter accents** — links and titles fill with a marker swipe on hover; nav
and tags use a sweeping underline
- **Dark mode** with a toggle, persisted in `localStorage` and applied before paint
(no flash). Honors a configurable default theme.
- **Post cards** with summaries, reading time, tags, and a turned-up page corner
- **System font stack** (matches the OS UI) — no web fonts to download
- Responsive; the spine nav collapses to a top bar on small screens

## Requirements

Hugo **extended** `0.146.0` or newer (the stylesheet is processed with Hugo Pipes:
`resources.Get | minify | fingerprint`).

## Installation

### As a Hugo Module (recommended)

```sh
hugo mod init github.com/you/your-site
```

```toml
# hugo.toml
[module]
  [[module.imports]]
    path = "github.com/its-ammu/hugo-notebook"
```

```sh
hugo mod get -u
```

### As a Git submodule

```sh
git submodule add https://github.com/its-ammu/hugo-notebook.git themes/notebook
```

Then set the theme in your site config:

```toml
theme = "notebook"
```

## Configuration

A minimal `hugo.toml`:

```toml
baseURL = "https://example.com/"
languageCode = "en"
title = "My Notebook"
theme = "notebook"

[params]
  description = "Notes on whatever I'm building."
  author = "Your Name"
  defaultTheme = "light"   # "light" or "dark"
  ShowReadingTime = true
  DateFormat = "January 2, 2006"
  favicon = "favicon.ico"

  # Shown on the home intro card
  [params.profileMode]
    subtitle = "Engineer & writer"

  # Social buttons on the home intro card (icon-only: github, linkedin)
  [[params.socialIcons]]
    name = "github"
    url = "https://github.com/your-handle"
  [[params.socialIcons]]
    name = "linkedin"
    url = "https://www.linkedin.com/in/your-handle/"

# Spine navigation. Mark external links with params.external = true.
[[menu.main]]
  identifier = "posts"
  name = "Posts"
  url = "/posts/"
  weight = 15
[[menu.main]]
  identifier = "tags"
  name = "Tags"
  url = "/tags/"
  weight = 20

[markup.goldmark.renderer]
  unsafe = true   # allow inline SVG/HTML illustrations in posts
```

### Customizing colors

All colors are CSS variables at the top of `assets/css/notebook.css` (light theme in
`:root`, dark theme in `:root[data-theme="dark"]`). The key knobs:

- `--accent` / `--hl` / `--hl-strong` — highlighter color
- `--margin` — the spine / margin line
- `--paper`, `--ink`, `--card` — surfaces and text
- `--rule` (vertical rhythm) and `--dot` (dot-grid spacing)

## Writing posts

Posts live under `content/posts/`. Front matter:

```toml
---
title = "My first post"
date = 2026-01-01
tags = ["hugo", "notebook"]
---
```

Tags and reading time appear automatically on cards and the post header.

## License

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

看看同类模板

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