写作指南:Hexo 与 Butterfly 常用写法
这篇文章演示本站支持的常用写法,你可以直接复制本文的源码改成自己的内容。
一、这篇文件的源码在哪打开 source/_posts/writing-guide.md 就能看到本文的全部源码,对照着看最直观。
二、front-matter 必填项1234567891011---title: 写作指南:Hexo 与 Butterfly 常用写法date: 2026-10-11 12:00:00 # 必须写!决定文章 URL,别删updated: 2026-10-11 12:00:00 # 可选,不写则不显示"更新于"tags: - Hexo - 教程categories: - 技术 - 博客搭建---
date 一旦确定就不要改,改了这个链接就变了,旧链接全部失效。
时间请统一用 12:00:00(重要)文章 URL 里的日期来自 date,而 Hexo 生成 URL 时用的是构建机器的本地时区——_config.yml 里的 timezone 配置管不住它。
本站本地构建在 Asia/Shanghai,而 Cloudflare 的构建环 ...
Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick StartCreate a new post1$ hexo new "My New Post"
More info: Writing
Run server1$ hexo server
More info: Server
Generate static files1$ hexo generate
More info: Generating
Deploy to remote sites1$ hexo deploy
More info: Deployment
