hexo整合简历

  1. 个人简历
    1. 1,clone 项目(cv)到本地(哪里都可以)
    2. 2,整合hexo 部署
  2. 变更

个人简历

1,clone 项目(cv)到本地(哪里都可以)

git clone https://gitee.com/nateshao/nateshao-cv.git

然后依次执行一下命令

1
2
3
4
5
npm install
npm run dev # 访问localhost:8080

## 编译部署 ##会形成一个dist文件
npm run build //或者 yarn run build

打开浏览器,访问:localhost:8080

就可以看到效果啦

在完成上一步之后,接下来就可以整合hexo 啦

2,整合hexo 部署

依次执行以下步骤

  1. 在根目录下,新建一个页面 hexo new page cv 。然后删除\source\cv 下的index.md文件

  2. hexo根目录下_config.yml找到 skip_render,写成这个格式:

    1
    2
    skip_render:
    - 'cv/**' # 将cv下的文件不被hexo g 生成(渲染)

    在主题目录下_config.yml 设置一下menu路径

    如:

    1
    2
    3
    - name: 个人简历
    url: /cv
    icon: fas fa-cv

    然后复制nateshao-cv/dist下的所有文件(html+css+images+favicon.ico)到根目录下\source\cv

然后 执行以下命令:

1
2
3
4
hexo clean  ## 这一步一定不能少!!!
hexo g
hexo s
hexo d

变更

如果修改为自己的信息

则有以下步骤,

在clone下来的nateshao-cv,

建议采用vscode , 采用全局键Ctrl + Shift + F

查找想修改一下什么内容就修改啦,

然后


转载请注明来源,欢迎对文章中的引用来源进行考证,欢迎指出任何有错误或不够清晰的表达。可以在下面评论区评论,也可以邮件至 1210331079@qq.com

💰

Title:hexo整合简历

Count:302

Author:千 羽

Created At:2020-12-19, 22:39:15

Updated At:2020-12-19, 22:39:27

Url:https://nateshao.github.io/2020/12/19/hexo%E6%95%B4%E5%90%88%E7%AE%80%E5%8E%86/

Copyright: 'Attribution-non-commercial-shared in the same way 4.0' Reprint please keep the original link and author.

×

donation.headline

// 底部音乐
//右上角Github图标