File tree Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -32,8 +32,23 @@ permalink: resources/{{ (category | slugify) if category !== "all" }}/
3232 <div class =" transparent-overlay" ></div >
3333 <div class =" mg-resource-tags" >
3434 {% for tag in resource .tags %}
35- <div >{{ tag }} </div >
35+ {% if loop .index <= 3 %}
36+ <div >{{ tag }} </div >
37+ {% endif %}
3638 {% endfor %}
39+
40+ {% if resource .tags .length > 3 %}
41+ {% set additionalTags = ' ' %}
42+ {% for tag in resource .tags %}
43+ {% if loop .index0 > = 3 %}
44+ {% set additionalTags = additionalTags + tag + ' <br/>' %}
45+ {% endif %}
46+ {% endfor %}
47+ <div data-bs-toggle =" tooltip" data-bs-html =" true" data-bs-placement =" bottom" data-bs-title =" {{ additionalTags }}" >
48+ <div >+{{ resource .tags .length - 3 }} </div >
49+ </div >
50+ {% endif %}
51+
3752 </div >
3853 <div class =" mg-resource-footer" >
3954 <div class =" mg-resource-title" >{{ resource .title }} </div >
@@ -46,3 +61,10 @@ permalink: resources/{{ (category | slugify) if category !== "all" }}/
4661 </div >
4762 </section >
4863{% endblock %}
64+
65+ {% block scripts %}
66+ <script type =" text/javascript" >
67+ const tooltipTriggerList = document .querySelectorAll (' [data-bs-toggle="tooltip"]' );
68+ const tooltipList = [... tooltipTriggerList].map (tooltipTriggerEl => new bootstrap.Tooltip (tooltipTriggerEl));
69+ </script >
70+ {% endblock %}
You can’t perform that action at this time.
0 commit comments