Skip to content

Support custom config file name and publishdir - #8

Open
silsha wants to merge 4 commits into
roperzh:masterfrom
silsha:master
Open

Support custom config file name and publishdir#8
silsha wants to merge 4 commits into
roperzh:masterfrom
silsha:master

Conversation

@silsha

@silsha silsha commented Oct 4, 2015

Copy link
Copy Markdown

This pull request adds an option to use a different config file name and/or publishdir.

You can set your heroku environment variables with

$ heroku config:set HUGOCONFIG="config_de.toml"

and

$ heroku config:set HUGOPATH="public/custom"

Comment thread bin/detect

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Initialize $CONFIG_FILE to an empty string, then remove this branch entirely.

@roperzh

roperzh commented Jan 27, 2016

Copy link
Copy Markdown
Owner

Hello @silsha!

Thanks so much for such a useful pull request! I'm very sorry for the delay, but I have been really busy.

I really like your approach, and I'm wondering why I decided to use a .hugotheme file instead of an ENV variable (ツ)/¯.

Anyway, what are your thougts about using a more general approach to set hugo flags? Instead of having HUGOCONFIG we can have a HUGOFLAGS variable:

HUGOFLAGS="--config='config_de.toml'"

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

Successfully merging this pull request may close these issues.

3 participants