templates/default/components/molecules/teaser/story-teaser.html.twig line 1

Open in your IDE?
  1. {% extends 'components/molecules/teaser/teaser.html.twig' %}
  2. {% block teaser_headline %}
  3. {% if headline is defined %}
  4. {% include 'components/atoms/headline/headline.html.twig' with {
  5. 'text': headline,
  6. 'headlineTag': 'h3',
  7. 'class': 'teaser__headline headline--no-spacing'
  8. } %}
  9. {% endif %}
  10. {% endblock %}
  11. {% block teaser_description %}
  12. {% if description is defined %}
  13. <div class="teaser__description">
  14. {% include 'components/atoms/paragraph/paragraph.html.twig' with {
  15. 'text': description|default('')|markdown_to_html,
  16. } %}
  17. </div>
  18. {% endif %}
  19. {% endblock %}
  20. {% block teaser_link %}
  21. {% if link is defined and not app.getRequest().attributes.get('storyblok_preview') %}
  22. {% include 'components/atoms/text-link/text-link.html.twig' with {
  23. 'text': 'teaser_link_label'|trans,
  24. 'href': link,
  25. 'class': 'text-link--arrow-right js-teaser-link',
  26. } %}
  27. {% else %}
  28. {% include 'components/atoms/text-link/text-link.html.twig' with {
  29. 'text': 'teaser_link_label'|trans,
  30. 'href': link,
  31. 'class': 'text-link--arrow-right',
  32. } %}
  33. {% endif %}
  34. {% endblock %}