Commit cc2a2c3a authored by Stuart Robson's avatar Stuart Robson Committed by Ken Hawkins
Browse files

updates figure and logo to make use of | path correctly so it works (#365)

* updates figure and logo to make use of | path correctly so it works

* Sneak in a fix for broken close on P tag
parent c55ba5f3
Pipeline #17555 passed with stages
in 2 minutes and 34 seconds
......@@ -12,5 +12,5 @@ class="vf-box
">
<h3 class="vf-box__heading">{{- heading -}}</h3>
<p class="vf-box__text">{{- text -}}/p>
<p class="vf-box__text">{{- text -}}</p>
</div>
......@@ -3,6 +3,6 @@
{% if id %} id="{{-id-}}"{% endif %}
class="vf-figure
{%- if override_class %} | {{override_class}}{% endif -%}">
<img class="vf-figure__image" src="{{imageUrl}}" alt="{{alttext}}">
<img class="vf-figure__image" src="{{imageUrl | path}}" alt="{{alttext}}">
<figcaption class="vf-figure__caption">{{- html | safe if html else text -}}</figcaption>
</figure>
......@@ -5,3 +5,4 @@ context:
component-type: element
href: http://www.embl.de
sreen_reader_text: Visual Framework 2.0
image: '/assets/vf-logo/assets/logo.png'
......@@ -3,6 +3,6 @@
{% if id %} id="{{-id-}}"{% endif %}
class="vf-logo
{%- if override_class %} | {{override_class}}{% endif -%}">
<img src="{{ '/assets/vf-logo/assets/logo.png' | path }}" alt="{{ _config.project.title }}">
<img src="{{ image | path }}" alt="{{ _config.project.title }}">
<span class="vf-sr-only">{{sreen_reader_text}}</span>
</a>
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