HTML博客

blank-magazine — HTML 博客模板

作者 codesign2020

Blank Magazine 是一款基于 Hugo 的极简杂志风个人博客主题,采用纯白背景与衬线字体排版,支持封面报道、本地图片相册、分类标签与移动端适配。

看看你的网站会是什么样

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

1 个预览视图
作者提供的预览
作者提供的预览首屏预览

来自项目 README 的原始预览。

目前有 1 张原始预览,可打开完整图片查看设计细节。

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

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

值得关注的模板亮点

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

01

纯白背景搭配衬线正文与无衬线界面字体,呈现杂志式排版

02

首页提供宽幅精选报道区块,通过 featured 标记单篇文章

03

相册自动扫描本地图片并按文件名排序,未设封面时自动取首图

04

支持分类与标签两种分类法,并输出 RSS 与 JSON

05

纯 CSS 加原生 JavaScript,无需构建步骤,标准 Hugo 二进制即可运行

06

包含移动端滑入菜单、相册灯箱与带首字母回退的关于页面

模板详细介绍

Blank Magazine 是面向 Hugo 的极简杂志风个人博客主题,仓库采用 MIT 许可。主题以纯白画布配合衬线字体排版,界面使用无衬线字体,整体呈现印刷品式的阅读观感。首页提供一块宽幅精选报道区域,用于突出单篇文章;正文页采用衬线阅读布局。

相册功能以本地图片为核心:在 content/gallery/ 下建立 Page Bundle,放入 index.md 与图片文件,主题会自动扫描图片并按文件名排序,未设置 cover 时自动取首图作为封面,图片数量为奇数时最后一张跨列补齐。同时兼容在 front matter 的 photos 字段中填写外部图片链接,本地与外部图片可以混用。

主题包含分类与标签两种分类法、带居中头像与首字母回退的关于页面、移动端滑入式菜单、相册灯箱查看器,以及 RSS 与用于搜索的 JSON 输出。样式为纯 CSS,脚本为原生 JavaScript,不依赖构建步骤,使用标准(非 extended)Hugo 二进制即可运行。

使用限制方面:主题要求 Hugo 0.120.0 或更高版本;示例站点中的演示照片来自 Unsplash,仅用于演示,字体来自 Google Fonts、图标来自 Font Awesome,这些第三方素材需按各自许可单独核对,不能仅凭代码的 MIT 许可判断。

HTML博客

适合你的项目吗?

适用场景

  • 撰写并发布个人散文、随笔或评论类文章
  • 整理并展示本地拍摄的照片集,无需图床
  • 按分类与标签组织多主题内容,供读者浏览检索
  • 在移动端阅读与浏览博客内容

适合人群

  • 使用 Hugo 搭建个人博客的写作者
  • 偏好极简、杂志风排版与衬线阅读体验的用户
  • 希望以本地图片自建相册、不依赖外部图床的用户
  • 需要分类与标签体系组织内容的个人站点

上手与定制指南

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

  1. 1

    需要 Hugo 0.120.0 或更高版本,标准二进制即可,无需 extended 版本

  2. 2

    可通过 git submodule 将仓库添加到 themes/blank-magazine,并在站点配置中设置 theme

  3. 3

    仓库内 exampleSite/ 提供可直接运行的示例站点,执行 hugo server --source exampleSite --themesDir ../.. 预览

  4. 4

    相册建议使用 Page Bundle:在 content/gallery/ 下建文件夹,放入 index.md 与补零命名的图片

  5. 5

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

查看仓库使用说明

授权与来源资料

使用条件与限制

免费使用 · 保留许可声明

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

使用时需要遵守

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

额外费用与待核对事项

  • 示例站点中的演示照片来自 Unsplash,仅用于演示用途,其许可与代码的 MIT 许可相互独立,需单独核对后方可用于实际站点。
  • 主题字体通过 Google Fonts 加载,属于第三方外部资源,需自行确认其许可与可用性。
  • 图标使用 Font Awesome,属第三方素材,需按 Font Awesome 自身许可单独核对。
  • 使用该主题需 Hugo 0.120.0 或更高版本,标准二进制即可,无需 extended 版本。
  • 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
  • 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据

Permission is hereby granted, free of charge

许可证原文

Demo photographs in `exampleSite` are from Unsplash and are used for demonstration only.

README 原文

Fonts: Source Serif 4, Noto Serif SC and Inter via Google Fonts.

README 原文

Icons: Font Awesome.

README 原文

Hugo **0.120.0** or newer (the standard binary is enough; extended is not required).

README 原文
https://github.com/codesign2020/blank-magazine/blob/main/LICENSEhttps://github.com/codesign2020/blank-magazine/blob/main/README.md

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

项目核对记录与介绍依据

模板资料

来源平台
Hugo Themes
资料与维护参考分
资料一般 · 63 / 100
技术栈
HTML
网站类型
博客
这个分数如何计算

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

这个项目需要核对什么

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

目前没有记录演示链接。请依据仓库说明在本地评估;仅凭截图无法确认交互行为。

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

查看具体选型方法 →

介绍的制作与核对状态

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

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

查看当时使用的来源资料

SHA-256: 194fd402ebfe26dd503b2b6ce9066d92e9d87d2c0bb5460757ccccfd30fd36e2

2026-10-02T19:19:18.551Z

来源文件 / 仓库
# Blank Magazine

**Blank Magazine** is a minimal, editorial-style personal blog theme for [Hugo](https://gohugo.io/). It pairs a pure-white canvas with print-grade serif typography, a magazine-cover featured story, a self-hosted photo gallery that scans local images automatically, and a calm reading experience that stays out of the way of your words.

[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/codesign2020/blank-magazine/blob/main/LICENSE)

![Blank Magazine screenshot](https://raw.githubusercontent.com/codesign2020/blank-magazine/main/images/screenshot.png)

## Features

- **Editorial typography** — Source Serif 4 + Noto Serif SC for content, Inter for the interface; a deliberate "serif for reading, sans for UI" system.
- **Magazine cover** — a wide featured story block on the home page.
- **Self-hosted photo gallery** — drop image files into a gallery folder and the theme scans them automatically; a single `index.md` carries only the text. External image URLs remain supported.
- **Taxonomy** — categories (genres such as essays / tech / reviews) and tags.
- **About page** with centered avatar/name and an initial-letter fallback.
- **Responsive** down to small phones, with a mobile slide-in menu.
- **Lightbox** gallery viewer, RSS feed and JSON output for search.
- No build step required — plain CSS and vanilla JS, works with the **standard (non-extended) Hugo binary**.

## Full page preview

**Home page** — featured cover story, latest posts and the four-up gallery strip:

![Home page full preview](https://raw.githubusercontent.com/codesign2020/blank-magazine/main/images/full-home.jpg)

**Article page** — print-grade serif reading layout:

![Article page full preview](https://raw.githubusercontent.com/codesign2020/blank-magazine/main/images/full-post.jpg)

**Photo gallery** — local-image gallery grid:

![Gallery page full preview](https://raw.githubusercontent.com/codesign2020/blank-magazine/main/images/full-gallery.jpg)

## Requirements

- Hugo **0.120.0** or newer (the standard binary is enough; extended is not required).

## Installation

```bash
# inside your Hugo site
git submodule add https://github.com/codesign2020/blank-magazine.git themes/blank-magazine
```

Then set the theme in your site config:

```toml
theme = "blank-magazine"
```

Or download a release and copy the folder into `themes/blank-magazine`.

## Quick start with the example site

A complete, ready-to-run site ships under [`exampleSite/`](./exampleSite):

```bash
cd blank-magazine
hugo server --source exampleSite --themesDir ../..
```

Open http://localhost:1313/.

## Configuration

A minimal site config (`hugo.toml`):

```toml
baseURL = "https://example.com/"
title = "Your Name"
theme = "blank-magazine"
defaultContentLanguage = "zh"

[pagination]
  pagerSize = 9

[params]
  author = "Your Name"
  authorBio = "writer / reader / walker"
  slogan = "A quiet place for words worth re-reading."
  email = "[email protected]"
  mainSections = ["posts"]

[taxonomies]
  tag = "tags"
  category = "categories"

[outputs]
  home = ["HTML", "RSS", "JSON"]
```

The main navigation is defined through Hugo's `[[menu.main]]` entries; see `exampleSite/hugo.toml` for a full example.

### Writing a post

Posts live in `content/posts/`. Recommended front matter:

```toml
+++
title = 'My Essay'
date = 2026-09-01
categories = ['散文']
tags = ['生活', '阅读']
featured = false
cover = '/images/cover.jpg'
+++
```

Set `featured = true` on exactly one post to render it as the magazine-cover story.

## Photo gallery

Galleries live in `content/gallery/`. The recommended form is a **Page Bundle with local images** — no image host and no per-image links required:

```text
content/gallery/by-the-window/
├── index.md      # title, date and the written description only
├── 01.jpg
├── 02.jpg
└── 03.jpg
```

`index.md`:

```toml
+++
title = 'By the Window'
date = 2026-09-03
description = 'A short caption for this set'
+++

Write the story behind these photographs here. Markdown is supported.
```

Rules and behaviour:

- Images are sorted by file name — use zero-padded names (`01.jpg`, `02.jpg`, …) to control order. `jpg/jpeg/png/webp/gif` are supported.
- The cover is the first image automatically when no `cover` is set.
- An odd number of photos makes the last image span the full width, so the grid never leaves a gap.
- The legacy external form still works — list URLs in `photos = [...]` in front matter, and you may mix local and external images.

## Project structure

```text
blank-magazine/
├── archetypes/
├── layouts/          # baseof, home, list/single, gallery, about, partials
├── static/css/       # style.css
├── static/js/        # main.js
├── images/           # screenshot.png (1500×1000) and tn.png (900×600)
├── exampleSite/      # runnable demo content and config
├── theme.toml
├── hugo.toml         # supported Hugo version declaration
├── LICENSE
└── README.md
```

## Credits

- Fonts: Source Serif 4, Noto Serif SC and Inter via Google Fonts.
- Icons: Font Awesome.
- Demo photographs in `exampleSite` are from Unsplash and are used for demonstration only.

---

## 中文说明

Blank Magazine 是一款简约、杂志风的 Hugo 个人博客主题:纯白纸面、Source Serif 4 与思源宋体的印刷感衬线排版,封面报道式精选、可自建的本地图片相册、分类与标签体系,并完整适配移动端。

- 运行示例:在主题根目录执行 `hugo server --source exampleSite --themesDir ../..`
- 新建相册:在 `content/gallery/` 下建文件夹,把图片(建议 `01.jpg、02.jpg…` 补零命名)和一个只写文字的 `index.md` 放进去即可,主题会自动扫描图片、自动取首图为封面,奇数张时最后一张自动跨列补齐;也兼容在 front matter 用 `photos` 填写外链。
- 无需 extended 版本,普通 Hugo ≥ 0.120.0 即可。

## License

Released under the [MIT License](https://github.com/codesign2020/blank-magazine/blob/main/LICENSE).
反馈内容错误

看看同类模板

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