sinedied / backslide

:sweat_drops: CLI tool for making HTML presentations with Remark.js using Markdown
https://sinedied.github.io/backslide
MIT License
764 stars 50 forks source link

Background image in templates dir are not exported #76

Closed ToBeHH closed 4 years ago

ToBeHH commented 4 years ago

v2.5.0 fixed a lot in exporting to HTML. However, if you have an image in the template folder and reference it in the style.scss file like background-image: url(image.png);, the image is not exported. Actually the export fails with an error message, that the image is not found. It is shown, when serving the file via bs serve. As a "workaround" you can duplicate the file from templates folder the the main folder.

sinedied commented 4 years ago

It is expected, as images are intended to be referenced from the presentation path and not from the css path, that may be confusing a bit at first but that way you can put multiple presentations with different images, but using the same template.

sinedied commented 4 years ago

Closed by #77