Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add variable to tell if page is a draft #1470
I have Disqus comments enabled on each post of my blog by including its universal code at the end of my
If I run Jekyll locally with
Whereas when I finally publish and serve it through omgitsmgp.com, a new discussion is created on Disqus with a URL like:
But it's not a complete solution, because if I write a draft over multiple days, it creates multiple URLs like http://omgitsmgp.com/2013/08/28/my-page-title/, http://omgitsmgp.com/2013/08/29/my-page-title/, etc. until finally published.
To remedy this, I was hoping that a draft could set a variable like
Other solutions revolve around including
Perhaps I'm missing an existing solution?
Multiple config files are supported already: http://jekyllrb.com/docs/configuration/#build_command_options
And to expand on the previous comment, by specifying in a separate config
On Thu, Aug 29, 2013 at 2:52 AM, maul-esel email@example.com wrote:
Thanks! I had no idea that multiple configuration files, separated by commas, were supported already. That renders this issue moot. If it sounds good, tonight I'll make a pull request to clarify this in the docs, since I don't think "Specify a config file. Overrides settings in