Open cdrfun opened 7 years ago
I've found a workaround: Instead of writing
{% if book.projectName == "One" %}
![One](assets/one.png)
{% elif book.projectName == "Two" %}
![Two](assets/two.png)
{% endif %}
This one works:
{% if book.projectName == "One" %}
![One](assets/one.png)
{% elif book.projectName == "Two" %}
![Two](assets/two.png)
{% endif %}
I can't judge of this is intended or not, but for me the first example should work too.
Using the current gitbook and gitbook-plugin-image-captions images within version {% if %} seem to be ignored. I didn't try other Templating features, but I gues they won't work either. If needed I can supply a demo gitbook, but it make take some time to prepare ;)