hexo踩坑:hexo使用过程中遇到的问题

布鸽不鸽 Lv4

前言

原文地址:https://xuedongyun.cn/post/9962/

问题一:部署到Github缺少README

  • /source文件夹下的md文件会被渲染为html

解决方法

  • /source文件夹下创建README.md,在配置文件_config.yml中设置过滤项
1
skip_render: README.md

问题二:部署导致Custom domain被清空

  • 使用hexo-deployer-git插件,每次部署后Custom domain会被清空,无法使用自己的域名访问网页

解决方法

  • /source文件夹下新建CNAME文件,内容设为Custom domain的值即可

参考文档

https://blog.maodai.site/2019/05/28/%E7%94%A8Hexo%E5%BB%BA%E7%AB%8BBlog%E6%97%B6%E6%89%80%E7%A2%B0%E5%88%B0%E7%9A%84%E5%90%84%E7%A7%8D%E5%9D%91/

  • 标题: hexo踩坑:hexo使用过程中遇到的问题
  • 作者: 布鸽不鸽
  • 创建于 : 2023-04-20 16:55:50
  • 更新于 : 2023-06-23 22:00:34
  • 链接: https://xuedongyun.cn//post/9962/
  • 版权声明: 本文章采用 CC BY-NC-SA 4.0 进行许可。
评论