Include twig root marker and pending pinnwand DCA/template fixes
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
{% use '@Contao/component/_figure.html.twig' %}
|
||||
|
||||
<link rel="stylesheet" href="{{ asset('bundles/contaopinboard/css/pinboard.css') }}">
|
||||
|
||||
<section class="pinboard" data-pinboard>
|
||||
@@ -10,9 +12,9 @@
|
||||
data-seed="{{ entry.id }}"
|
||||
aria-label="{{ entry.headline }}"
|
||||
>
|
||||
{% if entry.imagePath %}
|
||||
{% if entry.imageFigure %}
|
||||
<figure class="pin-note__image-wrap">
|
||||
<img src="{{ asset(entry.imagePath) }}" alt="" class="pin-note__image">
|
||||
{% with {figure: entry.imageFigure} %}{{ block('figure_component') }}{% endwith %}
|
||||
</figure>
|
||||
{% endif %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user