-
Notifications
You must be signed in to change notification settings - Fork 5
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
Allow the asset dir to be overridden #2
base: master
Are you sure you want to change the base?
Conversation
With this change, the front matter for a page can specify an alternate asset dir. Useful on legacy sites with plenty fo images in another folder structure.
Thank you for your contribution, it is great to see that this generator is useful for someone! Yes, I think it should be possible to use different asset path layouts than the default. In order to leave the door open for even more options, in casse somebody needs them, I would like to split this into two configuration options:
This way, just defining the assets folder does not change the expected folder structure, and changing the folder structure does not change the base folder name. How does this sound to you? Also, README should be updated to document the new feature. |
Another point that came to my mind: If this new option is used, then using the |
I will update the readme - good idea.
It sounds like the default |
Thank you!
Yes, that is what I meant.
Hmm, I now see that I misunderstood your pull request. I thought the value was being fetched from config. So I was only talking about the first two points. But the combination of what you submitted and I promised (i.e. the above three layer method) is actually the best. I like it.
Yes, in my case that was useful. I can see how it would not be in other cases. One idea that comes to mind would be to add a new entry to the |
With this change, the front matter for a page can specify an alternate asset dir. Useful on legacy sites with plenty fo images in another folder structure.