hexo-next主题配置介绍
env
- nodejs
- hexo
- theme-next
1.hexo部署及初始化
1.1nodejs
1.2部署 hexo 客户端工具
npm install hexo-cli -g
-g 全局模式
1.3初始化 blog 站点目录
hexo init blog && cd blog
npm install
安装依赖
hexo server
启动 hexo 服务
1.4clone theme-next
git clone https://github.com/next-theme/hexo-theme-next themes/next
or
npm install hexo-theme-next
1.5启用next themes
_config.yml
...
theme: next
1.6内置主题
themes/next/_config.yml
# Schemes
scheme: Muse
#scheme: Mist
#scheme: Pisces
#scheme: Gemini
# Dark Mode
darkmode: true
hexo clean
hexo generate
hexo server
仓库目录说明
仓库目录说明:
.deploy_git 目录:存放带有 git 版本控制的静态资源目录,需要部署 hexo-deployer-git 插件
node_modules 目录:存放 npm 工具安装的依赖文件
public 目录:与 .deploy_git 类似,存放 hexo g 生成后的静态资源文件
scaffolds 目录:存放模板文件
source 目录:存放网站源码文件
themes 目录:存放站点主题文件
_config.yml 文件:hexo 站点配置文件
_config.next.yml 文件:next 主题配置文件
package.json:保存 npm 安装插件版本的信息文件
.gitignore:git 版本控制忽略提交推送哪些文件