Do a sloppy override to have only class 'section' for view paragraphs
This commit is contained in:
parent
c15eca3088
commit
17a52237be
1 changed files with 15 additions and 0 deletions
15
agaric/templates/paragraph/paragraph--view.html.twig
Normal file
15
agaric/templates/paragraph/paragraph--view.html.twig
Normal file
|
@ -0,0 +1,15 @@
|
|||
{# extends 'paragraph.html.twig' #}
|
||||
|
||||
{%
|
||||
set classes = [
|
||||
'section',
|
||||
not paragraph.isPublished() ? 'paragraph--unpublished'
|
||||
]
|
||||
%}
|
||||
{% block paragraph %}
|
||||
<div{{ attributes.addClass(classes) }}>
|
||||
{% block content %}
|
||||
{{ content }}
|
||||
{% endblock %}
|
||||
</div>
|
||||
{% endblock paragraph %}
|
Loading…
Reference in a new issue