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

Is it possible to customize the folder directly by `hexo server` ? #3877

Closed
moonlitusun opened this issue Nov 20, 2019 · 3 comments
Closed

Comments

@moonlitusun
Copy link

@moonlitusun moonlitusun commented Nov 20, 2019

Check List

Please check followings before submitting a new feature request.

  • I have already read Docs page
  • I have already searched existing issues

Feature Request

I have so many posts in hexo blog, and it runs server slowly, I think it is very cumbersome by using
_ prefix. so, is it possible to customize the folder directly by hexo server ,

hexo s -f ./travel/landon.md
#
hexo s -d ./travel

and it's base on _post dir

Others

@curbengh

This comment has been minimized.

Copy link
Contributor

@curbengh curbengh commented Nov 27, 2019

I don't think hexo has whitelist-post feature, currently only blacklist (via skip_render:)

A workaround I can think of is to use a reverse pattern in skip_render.

_config.yml
skip_render: "!_posts/travel/**"

don't know if it works though.

@moonlitusun

This comment has been minimized.

Copy link
Author

@moonlitusun moonlitusun commented Dec 10, 2019

It works well, thank you so much.

@curbengh

This comment has been minimized.

Copy link
Contributor

@curbengh curbengh commented Dec 10, 2019

I'm actually surprised it works 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.