Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

想问问有什么办法可以实现归档页面的优化? #74

Open
Ha1baraA1 opened this issue Jul 19, 2022 · 3 comments
Open

想问问有什么办法可以实现归档页面的优化? #74

Ha1baraA1 opened this issue Jul 19, 2022 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@Ha1baraA1
Copy link

我安装了hexo-generator-archive来做归档,但是修改配置以及google之后,只能得到这种界面
image
,发现插件不支持这种我想要看到的界面 想要看到的界面,请问这样的格式需要怎么修改archive源码?(没接触过前端,不知道怎么弄诶)

@Ha1baraA1 Ha1baraA1 added the enhancement New feature or request label Jul 19, 2022
@songhn233 songhn233 self-assigned this Jul 19, 2022
@songhn233 songhn233 added bug Something isn't working and removed bug Something isn't working labels Jul 19, 2022
@songhn233
Copy link
Member

songhn233 commented Jul 19, 2022

我简单看了一下这个插件,本来就是官方预置的,改了一下 per_page 表现也正常,应该不会造成问题

确定一下在配置 _config.yml 中增加 archive_generator 字段后有重新 hexo clean && hexo g

如果还是有问题可以把 archive_generator 具体内容列一下,以及 hexo-generator-archive 是默认安装的,如果你重新 npm 安装的话确定一下没有安装错位置(要在站点目录下 npm 而不是在主题目录下 npm)

@Ha1baraA1
Copy link
Author

我简单看了一下这个插件,本来就是官方预置的,改了一下 per_page 表现也正常,应该不会造成问题

确定一下在配置 _config.yml 中增加 archive_generator 字段后有重新 hexo clean && hexo g

如果还是有问题可以把 archive_generator 具体内容列一下,以及 hexo-generator-archive 是默认安装的,如果你重新 npm 安装的话确定一下没有安装错位置(要在站点目录下 npm 而不是在主题目录下 npm)
正常渲染是没有问题啦,只是我想得到的是每个月份的归档,以及在一个卡片内显示当月全部文章的日期和标题。现在渲染出来的是每一个archive-timeline-item都是单篇文章的标题和日期,并且都占了一大块。
image
(另:虽然按着官方的配置配置了,但是归档下面依旧只有年份的归档tag2022,但是浏览器输入.../2022/04这样又可以看到四月份的归档,好怪)
这两个有什么办法改进吗,如果太麻烦就躺尸算了orz

@songhn233
Copy link
Member

了解了,这个应该好改的

晚点时候我适配一下,你可以对应着改或者pull最新的分支

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants