14 packages are looking for funding run `npm fund` for details npm notice npm notice New minor version of npm available! 10.2.4 -> 10.5.0 npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.5.0 npm notice Run npm install -g npm@10.5.0 to update! npm notice >> hexo init blog INFO Cloning hexo-starter https://github.com/hexojs/hexo-starter.git INFO Install dependencies INFO Start blogging with Hexo! >> cd blog >> tree . ├── _config.yml # 配置文件 ├── package.json ├── scaffolds # 存放一些模板类文件 ├── source # 存放博客源文件 | ├── _drafts | └── _posts └── themes # 存放主题 >> hexo generate INFO Validating config INFO Start processing INFO Files loaded in 129 ms INFO Generated: archives/2024/03/index.html INFO Generated: archives/2024/index.html INFO Generated: archives/index.html INFO Generated: index.html INFO Generated: css/style.css INFO Generated: js/script.js INFO Generated: fancybox/jquery.fancybox.min.css INFO Generated: fancybox/jquery.fancybox.min.js INFO Generated: js/jquery-3.6.4.min.js INFO Generated: css/images/banner.jpg INFO Generated: 2024/03/01/hello-world/index.html INFO 11 files generated in 287 ms >> hexo server INFO Validating config INFO Start processing INFO Hexo is running at http://localhost:4000/ . Press Ctrl+C to stop.
Ctrl+C >> INFO Catch you later
2. 发布到 GitHub
在 blog 根目录下有配置文件:_config.yml ,在这个文件中配置网站相关信息,比如网页head信息,网站链接信息,博客名称格式,自动部署信息,配置主题等