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

Add additional hugo options? #36

Open
mattstratton opened this issue Mar 9, 2018 · 4 comments
Open

Add additional hugo options? #36

mattstratton opened this issue Mar 9, 2018 · 4 comments

Comments

@mattstratton
Copy link

It would be quite helpful to be able to pass additional arguments to the hugo command - for example, in my tests, I have various config files that I want to test my theme against, and I pass the config file as an argument (i.e., --config config-blue-grid.toml)

I can probably add a PR to add this functionality, but wondering the thoughts on this? What might be easier is instead of trying to think of all the options, have an environment variable for "additional arguments" that is a string where you can list them.

@mattstratton
Copy link
Author

aha. It would appear you have this here?

https://github.com/jojomi/docker-hugo/blob/master/run.sh#L10

@jojomi
Copy link
Owner

jojomi commented Mar 9, 2018

Yes, that should already work because of the line you spotted. Would you mind testing it and reporting if it works? If it does, you could close this issue :).

@mattstratton
Copy link
Author

I’ll give it a try. The issue I’m running into is is that for theme testing I need to run inside exampleSite where theme directory is the level above; and that doesn’t seem Tom work with this container :/

@mattstratton
Copy link
Author

I think that my docker-fu is failing me. I'm not sure where to pass the arguments - any ideas?

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

No branches or pull requests

2 participants