Commit b0850f74 authored by Ken Hawkins's avatar Ken Hawkins
Browse files

bug: vf-figure path handling

This removes the ` | path` from the njk template which made it non-usable outside of fractal (it now follow the docs made sense this pattern was last updated).

Also eats extra white space.
parent 6759c69b
Pipeline #63836 passed with stage
in 3 minutes and 22 seconds
......@@ -7,4 +7,4 @@ context:
text: Version, 1982, Adenovirus with 217 dots
alttext: hello alt text
imageUrl: "/assets/vf-figure/assets/figure-example.png"
imageUrl: "../../assets/vf-figure/assets/figure-example.png"
<figure
{# You're using an ID? Really?? That'll go here #}
{% if id %} id="{{-id-}}"{% endif %}
<figure {# You're using an ID? Really?? That'll go here -#}
{%- if id -%} id="{{-id-}}" {%- endif -%}
class="vf-figure
{%- if override_class %} | {{override_class}}{% endif -%}">
<img class="vf-figure__image" src="{{imageUrl | path}}" alt="{{alttext}}">
<img class="vf-figure__image" src="{{imageUrl}}" alt="{{alttext}}">
<figcaption class="vf-figure__caption">{{- html | safe if html else text -}}</figcaption>
</figure>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment