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 Start

Create a new post

Windows 系统默认的 PowerShell 执行策略通常是 Restricted 或 Undefined ,这会禁止运行任何脚本文件(包括 Hexo 的 .ps1 启动脚本和虚拟环境的 Activate.ps1 )。

# 临时修复(推荐,仅对当前终端窗口有效)
Set-ExecutionPolicy -ExecutionPolicy Process -Scope Bypass
# 或者永久修复(针对当前用户)
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
$ hexo new "My New Post"

More info: Writing

Run server

$ hexo server

More info: Server

Generate static files

$ hexo generate

More info: Generating

Deploy to remote sites

$ hexo deploy

More info: Deployment


文章作者: Mealsee
版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。转载请注明来源 Mealsee !
  目录