Hexo 的文档写的很莫名其妙。

脚本 / 插件

this 是当前被处理的文章数据。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
this {
title: 'Hexo 博客的中文排版自动修正插件',
lang: 'zh',
mathjax: false,
hidden: false,
abbrlink: 'b52f',
date: Moment<2025-09-16T18:15:28-04:00>,
description: '本文介绍了一款作者开发的 Hexo 插件 hexo-filter-copywriting。受《中文文案排版指北》启发,该插件旨在自动化中文排版修正工作,如自动在中英文之间添加空格、转换标点符号等。文章分享了开发该插件的思路与技术方案,并介绍了如何使用它来提升博客文章的可读性与专业性。',
_content: 文章的 Markdown 内容
source: '_posts/Hexo博客的中文排版自动修正插件.md',
raw: 文章的 Markdown 内容
slug: 'Hexo博客的中文排版自动修正插件',
published: true,
updated: Moment<2025-10-14T12:05:49-04:00>,
comments: true,
layout: 'post',
photos: [],
_id: 'cuidrb-2ItIhTGnrNYWp6hqBH',
path: 'posts/b52f.html',
permalink: 'https://cytrogen.icu/posts/b52f.html',
full_source: 'D:\\Programs\\blog-local\\source\\_posts\\Hexo博客的中文排版自动修正插件.md',
asset_dir: 'D:\\Programs\\blog-local\\source\\_posts\\Hexo博客的中文排版自动修正插件\\',
tags: _Query { data: [ [_Document], [_Document] ], length: 2 },
categories: _Query { data: [ [_Document] ], length: 1 },
content: 文章的 HTML 内容
}
content _content raw
除了 Nunjucks 外都被渲染过的 HTML Markdown 包含 Front Matter 等内容的 Markdown