Does anyone disable Disqus or other features locally, while in
"development" mode?
I would like a feature to be able to turn something on or off,
depending on
the environment.
I saw that Jekyll has a site.[CONFIGURATION_OPTIONS] that you can put
in
config.yml. If Jekyll could take command line params this way, it
could be a solution.
For example, in config.yml, I could have:
site.enable_disqus=true (or whatever the correct yaml way is)
And in my "development mode" I could run:
jekyll --server --auto --site.enable_disqus=false
However, I poked around at Jekyll command line and it doesn't appear
you can pass
custom options to jekyll. I also investigated Liquid, to see if it
could access Environment
varaibles, (e.g. {% if $DEVMODE %} ) but I couldn't find anything
there, either.
On Fri, Feb 4, 2011 at 2:40 PM, Nate <nathan.n...@gmail.com> wrote: > Does anyone disable Disqus or other features locally, while in > "development" mode?
> I would like a feature to be able to turn something on or off, > depending on > the environment.
> I saw that Jekyll has a site.[CONFIGURATION_OPTIONS] that you can put > in > config.yml. If Jekyll could take command line params this way, it > could be a solution.
> For example, in config.yml, I could have:
> site.enable_disqus=true (or whatever the correct yaml way is)
> However, I poked around at Jekyll command line and it doesn't appear > you can pass > custom options to jekyll. I also investigated Liquid, to see if it > could access Environment > varaibles, (e.g. {% if $DEVMODE %} ) but I couldn't find anything > there, either.
> Any ideas?
> Thanks, > --Nate
> -- > You received this message because you are subscribed to the Google Groups > "jekyll.rb" group. > To post to this group, send email to jekyll-rb@googlegroups.com. > To unsubscribe from this group, send email to > jekyll-rb+unsubscribe@googlegroups.com<jekyll-rb%2Bunsubscribe@googlegroups .com> > . > For more options, visit this group at > http://groups.google.com/group/jekyll-rb?hl=en.
On Fri, Feb 4, 2011 at 10:50 AM, Davi Barbosa <dbarb...@gmail.com> wrote: > Passing options as parameters would be very useful! > I am simulating this with a Rake file that changes the config.yml, but it is > an ugly hack.
Would you mind posting your rake file? My Ruby is rusty.
> On Fri, Feb 4, 2011 at 2:40 PM, Nate <nathan.n...@gmail.com> wrote:
>> Does anyone disable Disqus or other features locally, while in >> "development" mode?
>> I would like a feature to be able to turn something on or off, >> depending on >> the environment.
>> I saw that Jekyll has a site.[CONFIGURATION_OPTIONS] that you can put >> in >> config.yml. If Jekyll could take command line params this way, it >> could be a solution.
>> For example, in config.yml, I could have:
>> site.enable_disqus=true (or whatever the correct yaml way is)
>> However, I poked around at Jekyll command line and it doesn't appear >> you can pass >> custom options to jekyll. I also investigated Liquid, to see if it >> could access Environment >> varaibles, (e.g. {% if $DEVMODE %} ) but I couldn't find anything >> there, either.
>> Any ideas?
>> Thanks, >> --Nate
>> -- >> You received this message because you are subscribed to the Google Groups >> "jekyll.rb" group. >> To post to this group, send email to jekyll-rb@googlegroups.com. >> To unsubscribe from this group, send email to >> jekyll-rb+unsubscribe@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/jekyll-rb?hl=en.
> -- > You received this message because you are subscribed to the Google Groups > "jekyll.rb" group. > To post to this group, send email to jekyll-rb@googlegroups.com. > To unsubscribe from this group, send email to > jekyll-rb+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/jekyll-rb?hl=en.
On Fri, Feb 4, 2011 at 2:57 PM, Nathan Neff <nathan.n...@gmail.com> wrote: > On Fri, Feb 4, 2011 at 10:50 AM, Davi Barbosa <dbarb...@gmail.com> wrote: > > Passing options as parameters would be very useful! > > I am simulating this with a Rake file that changes the config.yml, but it > is > > an ugly hack.
> Would you mind posting your rake file? My Ruby is rusty.