use html figure and figcaption

Created on 14 June 2019, almost 6 years ago
Updated 23 September 2024, 6 months ago

For the image paragraph
paragraph--bp-image.html.twig

Change to use html figute with figcapture

v{{ attributes.addClass(classes) }}>
  <div class="paragraph__column">
    {% if content.bp_link|render is not empty %}
      <a href="{{ content.bp_link.0['#url'] }}">
    {% endif %}
        <figure class="figure">
      {{ content|without('bp_width', 'bp_background', 'bp_link','field_bijschrift_bp_image') }}
          <figcaption class="figure-caption>{{ content.field_bijschrift_bp_image }}</figcaption>
        </figure>
    {% if content.bp_link|render is not empty %}
      </a>
    {% endif %}
  </div>
</div>
πŸ’¬ Support request
Status

Closed: outdated

Version

2.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium ikeigenwijs

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024