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

Configurable location for Jekyll config file location #17

Open
paulrobertlloyd opened this issue May 4, 2017 · 1 comment
Open

Configurable location for Jekyll config file location #17

paulrobertlloyd opened this issue May 4, 2017 · 1 comment

Comments

@paulrobertlloyd
Copy link
Contributor

This project is fascinating, and opening my eyes to the myriad possibilities of publishing directly to/from my GitHub repos, so thanks so much for putting this together!

Right now I have my repo set-up such that posts are located within src/_posts/ and my config is located at etc/jekyll/config.yml. If I could point this service to the location of my config file, my thinking is the source location for content (src) could then be detected, posts written to the correct folder, rather than defaulting to root of my repo.

@voxpelli
Copy link
Owner

voxpelli commented May 4, 2017

Thanks!

Making the path to the config file configurable would be fairly simple.

One would add a new optional value to the site config:

And then have that carry through to the auto-config somewhere here:

: autoConfigure(publisher).then(autoConfig => Object.assign(autoConfig, options))

And then use it there to replace the hard-coded _config.yml:

const lookup = publisher.retrieve('_config.yml')

Using the info in there to alter the source location of content would certainly be doable then, as the option pointed out in #18 is sent in using the result from the auto-config.

I can try to find time to take a look at it in the weekend 🙂

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