fix images when running on subfolders, as in the gitlabci environment

This commit is contained in:
emma peel 2022-02-05 08:40:26 +01:00
parent 4e7b62f431
commit 89af17ffea
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@
<h2 class="card-title ">{{ _(child.title) }}</h2>
<p class="card-text">{{ _(child.subtitle) }}</p>
<div class="illo-container">
<img src="/static/images/home/png/{{ child.section_id }}.png" class="img-fluid" alt="{{ _(child.section) }}" />
<img src="{{ ('/static/images/home/png/'+ child.section_id + '.png')|url }}" class="img-fluid" alt="{{ _(child.section) }}" />
</div>
</div>
<a href="{{ child.path|url }}" class="btn btn-primary">{{ _(child.cta) }}</a>

View File

@ -37,7 +37,7 @@
<div class="card mt-5">
<ul class="list-group list-group-flush">
<li class="list-group-item">
<a href="{{ this.parent|url }}">{{ _("Back to ") }}{{ this.parent.title }}</a>
<a href="{{ this.parent|url }}">Back to {{ this.parent.title }}</a>
</li>
</ul>
</div>