-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Blog entries in a subfolder, custom home page #1971
Comments
It seems the only change I had to make is in hexo-generator-index/lib/generator.js on line 10 from '' to, for example, 'blog'. And then create /index.html just as a normal page. Maybe this can be made a configuration option? |
You can just change the "url" and "root" in config to put all your blog into one subfolder. Or you can create a .md file into your favorite folder with specific layout placed in your theme, but at the cost of losing accessibility of properties related to pagination(for hexo will still treat it as an PAGE). For full customization, you have to write your own generator(maybe with new local variables calculated by yourself) and register it into hexo. |
@zyzyz If I change Anyway, my change in |
@pronvit you can try to change the post permalink |
For others to be clear on the change @pronvit made. in You will then need to run To get the "blog" showing up in the menu modify the
Note I don't explicitly have a |
I've created a PR that adds a config option to the |
Thanks @rgfindl, that works like a charm. A tiny modification in |
@pronvit @davidmtobias npm package has updated accordingly. New version is 0.2.1. |
This issue has been automatically marked as stale because lack of recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
1 similar comment
This issue has been automatically marked as stale because lack of recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Is it possible to have all blog entries in a subfolder, that is, blog to be just a part of a site, and /index.html just a custom page? I can configure permalinks, tags, pages, etc. to be generate in, for example, /blog subfolder. But blog index is still hardcoded to be /index.html, right?
If that's not currently possible, can you point me to where I should start looking to change it in the code?
The text was updated successfully, but these errors were encountered: