gethexon / hexon

Let's hexo online.
https://hexon-demo.yujianghao.cn/#/
GNU General Public License v3.0
106 stars 22 forks source link

部署成功进入用户页面后抛出 `__page undefined` 错误,无法获取到博客页面内容 #11

Closed DomeenoH closed 2 years ago

DomeenoH commented 2 years ago

部署成功进入用户页面后抛出错误,无法获取到文章内容 image image 左上方各操作选项能够正常工作

下面是安装向导截图和宝塔下的博客文件目录截图 image image

YuJianghao commented 2 years ago

使用 hexo init 新建一个博客,看看是否有相同的问题。

如果没有,还麻烦尝试找到最小重现,看看是哪个文章的什么结构会导致问题。

DomeenoH commented 2 years ago

使用 hexo init 新建博客是能够正常获取文章内容的……我尝试了两个hexo仓库都遇到了报错和无法读取文章的情况,我再确认一下具体是什么原因 image

YuJianghao commented 2 years ago

顺便问下,你的一些版本:

DomeenoH commented 2 years ago

我好像发现问题了,source目录下除_drafts_posts外的文件夹内的index.md会被识别为页面,我在其中有一个404文件夹,里面除了md文件外还有一个css文件,这似乎会导致hexon报错 image

DomeenoH commented 2 years ago

source文件夹根目录出现其它文件的情况下好像同样也会导致没法识别文章内容,我的source文件夹比较混乱…… image

YuJianghao commented 2 years ago

能判断这是 hexo 错误还是 hexon 错误么?404 文件夹下的 style.css 具体是怎么被使用的呢?

DomeenoH commented 2 years ago

应该是hexon的错误,请参考上一条评论 404文件夹中的css文件会在博客的404页面中被调用

YuJianghao commented 2 years ago

了解了,我晚些时候尝试下看看

YuJianghao commented 2 years ago

尝试修复了,请检查 v0.12.3-0

DomeenoH commented 2 years ago

尝试修复了,请检查 v0.12.3-0

能够正常访问博客内容了,感谢修复~