Hexo使用方法学习记录
基本操作
Front-matter
Front-matter
是文件开头的 YAML 或 JSON 代码块,用于配置写作设置。
设置 | 描述 | 默认值 |
---|---|---|
layout |
布局 | config.default_layout |
title |
标题 | 文章的文件名 |
date |
建立日期 | 文件建立日期 |
updated |
更新日期 | 文件更新日期 |
comments |
开启文章的评论功能 | true |
tags |
标签(不适用于分页) | |
categories |
分类(不适用于分页) | |
permalink |
覆盖文章的永久链接. 永久链接应该以 / 或 .html 结尾 |
null |
excerpt |
纯文本的页面摘要。 使用 该插件 来格式化文本 | |
disableNunjucks |
启用时禁用 Nunjucks 标签 {{ }} /{% %} 和 标签插件 的渲染功能 |
false |
lang |
设置语言以覆盖 自动检测 | 继承自 _config.yml |
published |
文章是否发布 | 对于 _posts 下的文章为 true ,对于 _draft 下的文章为 false |
引用块
Morality is not really the doctrine of how to make ourselves happy but of how we are to be worthy of happiness.
代码块
1 |
|
插入图片

插入iframe
示例1:网易云音乐
示例2:B站视频
鸣谢API:
https://xbeibeix.com/api/bilibili/biliplayer/?url=<BILIBILI视频地址>
引用其他帖子
利用 Hexo 与 GitHub Pages 搭建个人博客指南Hexo使用方法学习记录
https://younotknowwho.github.io/2025/09/10/Hexo使用方法学习记录/