I'm using Jekyll and Liquid to generate a static web site on GitHub pages. I have found a template from templated.co (this one, specifically) that I am using for the page's layout.
I have Jekyll delivering the content properly, but I would like to use a different background image on each page (in place of the default that's there now) by using Liquid in the CSS. I have Jekyll/Liquid recognizing the CSS by adding an empty front matter section to style.css, but I cannot get the following line to allow me to tweak the background image as I'd like:
background: url(../images/{% if page.bgimage %}{{ page.bgimage }}{% else %}{{ site.bgimage }}{% endif %}) no-repeat bottom center;
I can change the background image across all pages by putting bgimage: whatever.jpg
in _config.yml, but cannot add a line like bgimage: otherimage.jpg
in a page's front matter to have it use otherimage.jpg instead of whatever.jpg as the background image.
Is what I want to do even possible, or do I just have some syntax problems going on?
Thanks in advance for your help.