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

command: Add themesDir command argument to specify themes directory #2817

Merged
merged 1 commit into from
Dec 22, 2016

Conversation

avinassh
Copy link
Contributor

Currently, I don't see a way to specify themes directory to look for, while running the hugo command. So I added this command line argument which takes the path where themes are located.

Example usage:

$ hugo server --theme=docuapi --themesDir=/Users/avi/snakes/hugo-themes
$ hugo --theme=docuapi --themesDir=/Users/avi/snakes/hugo-themes

@avinassh avinassh changed the title command: add themesDir command argument to specify themes directory command: Add themesDir command argument to specify themes directory Dec 22, 2016
@bep
Copy link
Member

bep commented Dec 22, 2016

I guess you can do

env HUGO_THEMESDIR="/my/themes/" hugo --theme=docuapi

But you are right, this should be a CLI option.

@avinassh
Copy link
Contributor Author

^Oh! I did not know about that option. Even Google also didn't help.

Is there any changes I need to make for this PR?

@bep bep merged commit b2687ab into gohugoio:master Dec 22, 2016
@avinassh avinassh deleted the themes-dir branch December 22, 2016 08:38
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants