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

Support custom config file name and publishdir #8

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

silsha
Copy link

@silsha silsha commented Oct 4, 2015

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"

@@ -2,9 +2,13 @@

BUILD_DIR=$1

CONFIG_FILE="`ls $BUILD_DIR | grep config`"
if [ -z "$HUGOCONFIG" ]; then
CONFIG_FILE="`ls $BUILD_DIR | grep config | head -n1`"
Copy link

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
Copy link
Owner

roperzh commented Jan 27, 2016

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