Header images not showing up when using the Range theme
stanciu opened this issue · 1 comments
Issue Summary
I've installed the latest version of Leafpub on both my workstation and my production server (Apache, PHP 5.6.30, MySQL) and managed to get it to work on both environments (took some time on the prod server due to all the files having the wrong permissions).
The problem is that the header images don't show up on either environment - not on the home page nor on the individual post pages.
I checked the database and the post records reference the correct files, the files do in fact exist, and the following tag does assumes that image is true
<header class="cover" {{#if image}}style="background-image: url('{{img image}}');"{{/if}}>
However, it renders the HTML as follows:
<header class="cover" style="background-image: url('');">
Steps to Reproduce
- Install Leafpub 1.1.9
- Log in as admin
- Edit a post
- Notice the missing header image in the preview although the image option isn't empty under the post settings
Additional info
- Leafpub version: 1.1.9
- PHP version: 5.6.30
- Affected browsers: all
- Operating system: Linux, Windows
I realized that if I upgrade to Range 1.1.0 the header images work.
I suggest bundling this version of the theme with the latest Leafpub release instead of the current one which doesn't work properly.