Hexo博客

hexo-theme-mingyue — Hexo 博客模板

作者 aeilot

hexo-theme-mingyue 是一款 Hexo 博客主题,采用中国传统竖排书籍版式,正文自上而下、自右向左排列,并配有羊皮纸质感与朱红点缀。

看看你的网站会是什么样

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

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

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

全部页面与视图 3

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

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

值得关注的模板亮点

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

01

正文采用 writing-mode: vertical-rl 竖排,自上而下、自右向左阅读

02

标题自动包裹「」直角引号,中文标点以朱红色突出显示

03

日期使用天干地支与中文数字格式化

04

侧边栏设计为传统书封样式,承载站点标题、导航与社交链接

05

拉丁字母和数字在竖排中自动旋转以正确显示

06

提供简体中文、繁体中文、日文和韩文四种语言文件

模板详细介绍

这是一款面向 Hexo 的博客主题,设计灵感来自中国传统竖排书籍。正文使用 writing-mode: vertical-rl 渲染,阅读方向为自上而下、自右向左。主题在排版细节上做了几项处理:标题自动包裹「」直角引号,中文标点以朱红色突出,日期以天干地支与中文数字显示,拉丁字母和数字在竖排中自动旋转。侧边栏被设计成书封样式,用于放置站点标题、导航与社交链接。

主题通过主题目录下的 _config.mingyue.yml 进行配置,可控制首页是否显示文章、标签和页脚区块,文章列表数量、摘要长度、标签上限,以及站点标题、描述、导航链接和社交链接。样式方面可调整强调红、纸张背景、墨色文字和边框颜色。主题附带简体中文、繁体中文、日文和韩文四种语言文件,社交链接支持 GitHub、X/Twitter、Mastodon、Telegram、微博和知乎图标。

主题为纯 Hexo + EJS + SCSS 实现,不依赖额外的构建工具。响应式布局在 1200px、900px、600px 三个断点调整栏宽与间距。仓库采用 MIT 许可,可免费使用、修改、商用和分发该版本代码;演示站点中的图片、字体、图标等第三方素材需单独核对许可。

Hexo博客

适合你的项目吗?

适用场景

  • 搭建以中文古典风格呈现的个人博客
  • 发布竖排阅读体验的随笔、诗文或文摘类内容
  • 需要中文标点强调与天干地支日期显示的文化类站点
  • 面向简中、繁中、日文或韩文读者的多语言博客

适合人群

  • 使用 Hexo 并希望更换为竖排古典风格主题的博客作者
  • 偏好传统书籍版式与羊皮纸、墨色配色的内容创作者
  • 需要中文标点强调和传统日期格式的文化类站点维护者

上手与定制指南

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

  1. 1

    将主题克隆到 Hexo 站点的 themes 目录,并在站点 _config.yml 中设置 theme: hexo-theme-mingyue

  2. 2

    在主题目录创建或编辑 _config.mingyue.yml 进行配置,主题会自动加载并合并该文件

  3. 3

    在站点 _config.yml 中设置 language,可选 zh-CN、zh-TW、ja、ko

  4. 4

    社交链接通过 bio.social_links 配置,name 支持 github、twitter/x、mastodon、telegram、weibo、zhihu

  5. 5

    主题为纯 Hexo + EJS + SCSS,无需额外构建工具

查看仓库使用说明

授权与来源资料

使用条件与限制

免费使用 · 保留许可声明

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

使用时需要遵守

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

额外费用与待核对事项

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

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

项目核对记录与介绍依据

模板资料

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

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

这个项目需要核对什么

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

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

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

查看具体选型方法 →

介绍的制作与核对状态

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

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

查看当时使用的来源资料

SHA-256: 2d3e5d5d1be4ca9d46c560c6fa102dfa3828bdb3abde2dbda7754127975ae6c9

2026-10-02T15:08:43.248Z

来源文件 / 仓库
# hexo-theme-mingyue

A Hexo theme inspired by the traditional Chinese vertical book layout. Text flows top-to-bottom, right-to-left, replicating the reading experience of a classical Chinese manuscript with parchment textures, ink tones, and brush-red accents.

## Features

- **Vertical right-to-left text** -- content is rendered in `writing-mode: vertical-rl`, the native reading direction of classical Chinese
- **Traditional Chinese date formatting** -- dates displayed in Tiangan-Dizhi (Heavenly Stems & Earthly Branches) notation with Chinese numerals
- **Lenticular bracket titles** -- all titles are automatically wrapped in「」brackets
- **CJK punctuation highlighting** -- punctuation marks rendered in brush-red for typographic emphasis
- **Western text rotation** -- Latin and numeric text automatically rotated for proper display within vertical columns
- **Book-cover title panel** -- sidebar styled as a traditional book cover with navigation and social links
- **Classical aesthetic** -- warm parchment background, ink-dark text, subtle radial gradients, and earth-tone borders
- **Responsive layout** -- three breakpoints (1200px, 900px, 600px) adjusting column dimensions and spacing
- **i18n support** -- Simplified Chinese, Traditional Chinese, Japanese, and Korean localizations included
- **Social links** -- GitHub, X/Twitter, Mastodon, Telegram, Weibo, Zhihu (via Font Awesome icons)
- **Zero build dependencies** -- pure Hexo + EJS + SCSS, no additional tooling required

## Installation

Clone the theme into your Hexo site's `themes` directory:

```bash
cd your-hexo-site
git clone https://github.com/aeilot/hexo-theme-mingyue.git themes/hexo-theme-mingyue
```

Then set the theme in your site's `_config.yml`:

```yaml
theme: hexo-theme-mingyue
```

## Configuration

Create or edit `_config.mingyue.yml` in the theme directory. The theme automatically loads this file and merges it into the Hexo theme config.

### Full default configuration

```yaml
section:
  posts: true
  tags: false
  footer:
    enabled: true
    title: "未启新卷"

home:
  posts:
    limit: 8
    show_excerpt: true
    show_date: true
    show_tags: false
    excerpt_length: 120
  tags:
    limit: 24

bio:
  title: "明月"
  description: "古调虽自爱,今人多不弹。"
  links:
    - name: "文摘"
      url: "/"
    - name: "关于"
      url: "/about/"
    - name: "归档"
      url: "/archives/"
  social_links:
    - name: "github"
      label: "GitHub"
      url: "https://github.com/yourname"
      enabled: true
    - name: "telegram"
      label: "Telegram"
      url: "https://t.me/yourname"
      enabled: true
    - name: "twitter"
      label: "Twitter"
      url: "https://x.com/yourname"
      enabled: true

style:
  accent_red: "#a31f1f"
  paper_bg: "#f7f1e3"
  ink_text: "#2d241c"
  border_ink: "#8b7355"

footer:
  custom_text: ""

content:
  sideways:
    western_enabled: true
```

### Configuration reference

| Option | Type | Default | Description |
|---|---|---|---|
| `section.posts` | boolean | `true` | Show posts section on the home page |
| `section.tags` | boolean | `false` | Show tags section on the home page |
| `section.footer.enabled` | boolean | `true` | Show footer section on the home page |
| `section.footer.title` | string | `"未启新卷"` | Footer column title |
| `home.posts.limit` | number | `8` | Number of posts displayed on the home page |
| `home.posts.show_excerpt` | boolean | `true` | Show post excerpts |
| `home.posts.show_date` | boolean | `true` | Show post dates |
| `home.posts.show_tags` | boolean | `false` | Show post tags on the home page |
| `home.posts.excerpt_length` | number | `120` | Maximum excerpt length in characters |
| `home.tags.limit` | number | `24` | Maximum number of tags to display |
| `bio.title` | string | `"明月"` | Site title shown in the title panel |
| `bio.description` | string | | Site description / motto |
| `bio.links` | array | | Navigation links (`name` + `url`) |
| `bio.social_links` | array | | Social links (`name`, `label`, `url`, `enabled`) |
| `style.accent_red` | color | `#a31f1f` | Accent color for punctuation and highlights |
| `style.paper_bg` | color | `#f7f1e3` | Page background color |
| `style.ink_text` | color | `#2d241c` | Main text color |
| `style.border_ink` | color | `#8b7355` | Border and divider color |
| `footer.custom_text` | string | `""` | Custom footer text |
| `content.sideways.western_enabled` | boolean | `true` | Rotate Western text inline in vertical columns |

### Supported social links

| `name` value | Icon |
|---|---|
| `github` | GitHub |
| `twitter` / `x` | X (Twitter) |
| `mastodon` | Mastodon |
| `telegram` | Telegram |
| `weibo` | Weibo |
| `zhihu` | Zhihu |
| _(any other)_ | Generic link |

## Languages

Set the language in your site's `_config.yml`:

```yaml
language: zh-CN
```

Supported values: `zh-CN`, `zh-TW`, `ja`, `ko`.

## Directory structure

```
hexo-theme-mingyue/
├── _config.mingyue.yml        # Theme configuration
├── index.js                   # Hexo helper registrations
├── scripts/
│   ├── helpers.js             # Date formatting, bracket titles, excerpts
│   └── load-theme-config.js   # Config file loader
├── layout/
│   ├── layout.ejs             # Base HTML shell
│   ├── index.ejs              # Home page
│   ├── post.ejs               # Single post
│   ├── page.ejs               # Generic page
│   ├── archive.ejs            # Archive listing
│   ├── tag.ejs                # Tag listing
│   ├── category.ejs           # Category listing
│   └── partial/               # Reusable partials
├── source/
│   ├── css/                   # SCSS stylesheets
│   └── js/                    # Client-side scripts
└── languages/                 # i18n files
```

## License

MIT
反馈内容错误

看看同类模板

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