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

是否能够将home设置为显示单一文章,而不是文章列表,类似README.md的效果【使用next版本8.13.2】 #674

Closed
3 tasks done
clxering opened this issue Jul 10, 2023 · 2 comments

Comments

@clxering
Copy link

Issue Checklist

Other Information

image

@stevenjoezhang
Copy link
Member

你把设置里面 index 页面的路径改成别的
https://github.com/hexojs/hexo-starter/blob/38b632b2c5486941ac871e7c3128559da4095f23/_config.yml#L64

然后手动创建一个index.md或者index.html作为主页

@clxering
Copy link
Author

感谢回答。试了一下确实可以满足需求了,两个步骤:

1、source目录下新建 index.md

2、修改 _config.ymlpath 参数使之失效

index_generator:
  path: 'xxxx'
  per_page: 10
  order_by: -date

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants