init-blog

blog init

搭建博客

环境

github + hexo

hexo使用

hexo 命令报错,上网查,使用 npx hexo

插件下载

1
npm install --save hexo-deployer-git

常用命令

1
2
3
4
5
6
7
8
npx hexo init # 初始化一个仓库
npx hexo clean
npx hexo g # 静态界面生成
npx hexo s # 本地启动 service
npx hexo d # 插件。传到github

npx hexo new page <name> # 生成目录
npx hexo new <name>.md #生成文章

常用属性

1
2
3
4
5
6
title: 标题, 使用 {{title}}
date: 日期, 使用 {{date}}
updated: 更新
tags: 标签
categories: 分类
comments: 开启评论 true

本地

  • obsidian 写md
  • vscode

持续学习

  • 简单点也还行,不想折腾了。
  • 官网 + google,满足一切要求

中文文档