Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding a fourth project destroys alignment #130

Open
steremma opened this issue Sep 13, 2018 · 2 comments
Open

Adding a fourth project destroys alignment #130

steremma opened this issue Sep 13, 2018 · 2 comments

Comments

@steremma
Copy link

I am trying to add 4 records in the projects section, but the alignment is off. I initially posted a question on SO but I then tested it on a friends blog and I get the same issue. The problem gets even worse when adding a 5th project. Is this a known issue? Or am I doing something wrong?

@pkmandke
Copy link

pkmandke commented Sep 9, 2019

@steremma Found any workaround for this?

@GuillaumeFavelier
Copy link

The accepted solution of stackoverflow did the trick for me.

I changed line 10 of _includes/sections/projects.html:

            {% assign loopindex = forloop.index | modulo: 2 %}

by:

            {% assign loopindex = forloop.index | modulo: 2 %}
            {% if loopindex == 1 && forloop.index != 1 %}
                </div><div class="row">
            {% endif %}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants