@total_onion/onion-library 2.0.200 → 2.0.201
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
{% set textEditorContainerClasses = include('components/text-editor-settings-container-classes-v3.twig', { fields: field, block, blockClassName, is_preview }, with_context = false) %}
|
|
4
4
|
{% set textEditorElementClasses = include('components/text-editor-settings-element-classes-v3.twig', { fields: field, block, blockClassName, is_preview }, with_context = false) %}
|
|
5
5
|
{% set elementType = field.element_type|ru %}
|
|
6
|
-
{%
|
|
6
|
+
{% if field.number_of_tags %}
|
|
7
|
+
{% set numberOfTags = field.number_of_tags %}
|
|
8
|
+
{% endif %}
|
|
7
9
|
|
|
8
10
|
<style>
|
|
9
11
|
.{{blockClassName}}__post-tags.{{block.id}}{
|
|
@@ -14,7 +16,7 @@
|
|
|
14
16
|
<div class="{{blockClassName}}__post-tags {{blockClassName}}__info-item {{block.id}}">
|
|
15
17
|
<div class="{{blockClassName}}__cta cmpl-cta-style-{{field.cta_style}}">
|
|
16
18
|
|
|
17
|
-
{% for tag in post.tags
|
|
19
|
+
{% for tag in post.tags|slice(0, numberOfTags) %}
|
|
18
20
|
{{ tag.name }}
|
|
19
21
|
{% endfor %}
|
|
20
22
|
|