Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
HCI-Development
HCI Theme
Commits
0a348fd4
Commit
0a348fd4
authored
Feb 11, 2021
by
Martin Fischbach
Browse files
fixed big blocks in topics
parent
f5bd43b3
Pipeline
#29785
passed with stage
in 12 minutes and 32 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
_includes/block
View file @
0a348fd4
...
...
@@ -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 %}
...
...
_layouts/topics.html
View file @
0a348fd4
...
...
@@ -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>
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment