新增hexo个人页面

前言

使用hexo博客创建个人页面/工具页面

步骤

  1. 确认主题,我使用的是next主题,编辑themes\next_config.yml
  2. 修改menu 新增分类与路径
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    menu:
    home: / || home
    #about: /about/ || user
    #tags: /tags/ || tags
    categories: /categories/ || th
    archives: /archives/ || archive
    #schedule: /schedule/ || calendar
    #sitemap: /sitemap.xml || sitemap
    #commonweal: /404/ || heartbeat
    tools: /tools/ || tools # 新增工具分类

3.修改样式

1
2
3
4
5
6
7
8
9
- 编辑
\themes\next\source\lib\font-awesome\css\font-awesome.css
\themes\next\source\lib\font-awesome\css\font-awesome.min.css[真实生效的文件]
- 添加
.fa-tools:before {
content: "\f189"; #自定义图标
}
4. 命令行执行hexo new page tools
5. 编辑source\tools\index.md


title: 小工具
date: 2019-05-16 10:35:17

type: tools

  1. 将自定义的文件夹/页面放在 public\tools 下 这里是文件夹 contentToMarkdown
  2. 注意重新执行 hexo clean 会清空该自定义文件夹, 建议在source\user_file 下保存一份用于替换清空或者hexo生成的文件,注意不要放在tools下,会自动添加hexo的html头
  3. 正常部署发布
感谢你对我的支持 让我继续努力分享有用的技术和知识点.