--- title: 使用Hexo搭建自己的博客网站 date: 2021/10/4 tags: - Hexo categories: - blog --- ## first blog hello world! 6. 将博客发布到github 创建一个以你的github用户名命名的代码仓库例如 xxxx.github.io 修改配置文件_config.yml配置代码库 yaml # Deployment ## Docs: https://hexo.io/docs...
npm install --save hexo-deployer-git Hexo 的使用 Hexo 常用命令有: # 清除缓存文件。 hexo clean # 生成文件 hexo g # 本地预览 hexo s # 部署至服务器/网站托管 hexo d # 同步操作 hexo clean && hexo g hexo clean && hexo g && hexo s hexo clean && hexo g && hexo d # 新增文件,可直接...
npminstall--savehexo-helper-live2d//(黑猫,也可以选择其他动画[仓库地址](https://github.com/EYHN/hexo-helper-live2d)npminstall--savelive2d-widget-model-hijiki//在文件末尾hexo配置文件live2d:enable:truescriptFrom:localmodel:use:live2d-widget-model-hijiki//对应动画display:position:rightwidth:200height...
# Hexo Configuration## Docs: https://hexo.io/docs/configuration.html## Source: https://github.com/hexojs/hexo/# Sitetitle:Hexosubtitle:''description:''keywords:author:JohnDoelanguage:entimezone:''# URL## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' ...
1.4 安装Hexo 1 $ npm install -g hexo 2.配置Hexo目录 2.1 命令行进入博客文件存放目录 1 2 $ mkdir myblog $cdmyblog 2.2 初始化 1 $ hexo init 2.3 安装依赖模块 1 $ npm install 2.4 创建新的文章 1 $ hexo new"MyNewPost" 2.5 生成博客页面 ...
如果不清楚根目录路径,请回到教程 基于Hexo 从零开始搭建个人博客(二),查看你执行hexo init xxx这条命令时所选择的路径,例如我选择的路径是【G:/hexo-blog】,我的博客根目录即为【G:/hexo-blog/xxx】。 修改站点配置文件_config.yml,路径为【BlogRoot/_config.yml】。 修改主题配置文件_config.butterfly.yml...
在当前目录下新建一个名为blog的文件夹,用于存放博客网站的信息 在命令行进入blog,初始化该文件夹,并安装所需组件 hexo init npm install 1. 2. 安装完成后,检测是否安装成功 hexo g 1. hexo s 1. 根据提示访问https://localhost:4000/ 出现该界面说明Hexo在本地的配置完成了。(因为我改了配置文件,所以显示...
一、项目博客构建 1、新建仓库 在GitHub上创建仓库,建议仓库名称为: 【your_user_name.github.io】; 2、克隆代码 通过命令行进入项目目录,克隆代码,执行命令: git clone <仓库地址> 3、安装hexo 安装hexo,执行命令行: npm install -g hexo 4、初始化hexo ...
hexonew"此处输入文章名字" 项目名称 /source/_posts 目录下,直接创建md文件 5.next主题的细致美化 1. next主题风格选择 主题文件夹下(非根目录)的 _config.yml 配置文件 scheme: Mist 2. 博客site设置,中文设置 根目录下的_config.yml # Site title: 网站名 ...
要用GitHub 和 hexo 搭建个人的博客网站,首先必须有自己的github账号没什么问题吧,其次需要提前准备的环境:下载安装git, nodeJs,这个怎么去安装我想应该不用说了吧(真不知道的话分别百度nodejs, git去官网点击下载安装即可)。准备好环境后我们还要安装 hexo: ...