HiNinoJay / hexo-theme-A4

A hexo theme that looks like an A4 paper.(一个类A4纸张质感的hexo博客主题。)
https://ninojay.top
MIT License
320 stars 25 forks source link

hexo generate output #47

Closed solaim closed 11 months ago

solaim commented 1 year ago
13|     

14| <% var array = pageTagData.posts.data %> 15| <% array.sort((a, b) => { 16| if (a.date > b.date) { 17| return -1;

Cannot read properties of undefined (reading 'posts')

why and how to solve?

HiNinoJay commented 1 year ago

because your hexo's version is 7.0.0-rc2. that's too new for A4. try this commend:

npm install hexo@6.3.0

因为你的hexo版本太高了,hexo7.0的版本是最新还在测试的版本,A4是基于6.3版本的hexo开发的,所以你可以试试安装6.3版本的hexo,执行以下命令:

npm install hexo@6.3.0
solaim commented 1 year ago

I tried the command, hexo generate is ok. But there is no layout warning and 404 when I tried to get http://localhost:4000/

tobenot commented 11 months ago

终于知道为什么标签和分类没法打开了,安装hexo6.3就可以了