Skip to content

hudsonhu/hutian.su

Repository files navigation

Tiansu's Blog(Hexo)

这是一个基于 Hexo 搭建的个人博客项目,当前站点配置如下:

  • 站点标题:Tiansu's Blog
  • 站点地址:https://blog.tiansu.hu
  • 语言:zh-CN
  • 主题:hueman(本地主题目录:themes/hueman

环境要求

  • Node.js:20.x
  • npm:10.x

项目中的版本约束见 package.jsonengines 字段。

快速开始

  1. 安装依赖
npm install
  1. 本地启动开发服务器
npm run server

默认访问地址通常为 http://localhost:4000

  1. 生成静态文件
npm run build

生成结果位于 public/ 目录。

  1. 清理缓存和生成产物
npm run clean

常用内容维护

  1. 新建文章
npx hexo new post "文章标题"
  1. 新建草稿
npx hexo new draft "草稿标题"
  1. 发布草稿(转为正式文章)
npx hexo publish "草稿标题"

文章默认放在 source/_posts/,并使用 front-matter 管理标题、日期、标签、分类等信息。

项目结构

.
├── _config.yml             # Hexo 主配置
├── package.json            # 依赖与脚本命令
├── scaffolds/              # 新建文章/页面模板
├── source/
│   ├── _posts/             # 博客文章
│   ├── about/              # 关于页面
│   └── images/             # 站点图片资源
└── themes/
    └── hueman/             # 当前启用主题

部署说明

仓库已预留 npm run deploy 命令(hexo deploy),如需使用请先在 _config.yml 中补充 deploy 配置,并安装对应部署插件(例如 hexo-deployer-git)。

参考文档

About

Just a static website.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors