Skip to content

allow --url commandline option #143

Closed
darwin opened this Issue Mar 21, 2010 · 5 comments

2 participants

@mojombo
mojombo commented Jun 19, 2010

It's not clear to me what the benefit of having this as command line option is. You said you wanted to set this via the config option, which is now possible. Can you explain the use case?

@darwin
darwin commented Jun 20, 2010

Please look at this blogpost:
http://github.com/binaryage/blog/raw/gh-pages/_posts/2010-06-08-totalfinder-with-customizable-shortcuts.md

and search for usage of {site.url}

Sometimes you may be forced to use absolute urls. For example I had problem with FeedBurner's blog post preview page. Image links specified as relative urls were not resolved correctly. I can imagine some poor RSS readers may behave similar way.

I wanted site.url to be configurable, because I didn't want to hard-code final url there. I still want to be able to have working link when doing local web site development and testing. I have small bash script which runs jekyll -serve --auto with this parameter set for local development. My setup is more complicated, because I use several jekylls behind reverse proxy to simulate setup on http://binaryage.com which uses gh-pages from many repos together with layouts linked as git modules.

I've been using my fork for several months and it works nicely for me.

@mojombo
mojombo commented Jun 22, 2010

Ok, that seems reasonable. Can you rebase this on master and include "closes #143" in the commit message?

@mojombo
mojombo commented Jun 22, 2010

Merged in master: 23d26c5

@mgriffin mgriffin pushed a commit that referenced this issue Sep 8, 2011
@darwin darwin allow setting --url <custom_site_url> from commandline (issue #15, cl…
…oses #143)

Sometimes you may be forced to use absolute urls. For example I had problem with FeedBurner's blog post preview page. Image links specified as relative urls were not resolved correctly. I can imagine some poor RSS readers may behave similar way.

I wanted site.url to be configurable, because I didn't want to hard-code final url there. I still want to be able to have working link when doing local web site development and testing. I have small bash script which runs jekyll -serve --auto with this parameter set for local development. My setup is more complicated, because I use several jekylls behind reverse proxy to simulate setup on http://binaryage.com which uses gh-pages from many repos together with layouts linked as git modules.
23d26c5
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.