Commit 0a348fd4 authored by Martin Fischbach's avatar Martin Fischbach

fixed big blocks in topics

parent f5bd43b3
Pipeline #29785 passed with stage
in 12 minutes and 32 seconds
......@@ -4,7 +4,13 @@
{% assign url = include.url | prepend: site.baseurl %}
{% endif %}
<div class="block {{ include.class }}">
{% if include.big %}
{% assign style = 'style="flex-basis: 35%;"' %}
{% else %}
{% assign style = "" %}
{% endif %}
<div class="block {{ include.class }}" {{ style }} >
{% if include.image %}
{% if include.imagedimension %}
{% assign dimension = include.imagedimension %}
......
......@@ -48,6 +48,7 @@ layout: base
{% endfor %}
{% assign topics = topTopics | concat: otherTopics %}
{% assign counter = 0 %}
{% for topic in topics %}
{% assign typeClasses = "topic " %}
{% if topic.type-mcs-bachelor-project == true %}
......@@ -87,8 +88,14 @@ layout: base
{% if topic.put-on-top-of-the-list == true %}
{% assign title = title | append: " &#9733;" %}
{% endif %}
{% include block class=typeClasses image=topic.image title=title teaser=topic.teaser url=topic.url %}
<!--{% if counter < 6 %}
{% include block class=typeClasses image=topic.image title=title teaser=topic.teaser url=topic.url big=true%}
{% else %}-->
{% include block class=typeClasses image=topic.image title=title teaser=topic.teaser url=topic.url %}
<!--{% endif %}-->
{% assign counter = counter | plus: 1 %}
{% endfor %}
{% include placeholderBlocks itemListLength=counter hiddenItems=0 %}
{% endif %}
</div>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment