summaryrefslogtreecommitdiffstats
path: root/projects.html
blob: 6800dcdf4185defcd53f46af24770922f55cd9b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
---
layout: default
title: Projects
---

<div class="container">
  <h2>{{ page.title }}</h2>
  <table>
    {% assign n = 2 %}
    {% assign rows = site.projects.size | divided_by: n | ceil %}
    {% for i in (1..rows) %}
      <tr>
      {% assign offset = forloop.index0 | times: n %}
      {% for item in site.projects limit:n offset:offset %}
          <td class="project-item">
            {% assign parts = item.url | split: '/' %}
            <img src="{{ parts[2] }}/{{ item.thumbnail }}" alt="{{ item.title }}">
            <h5><a href="{{ parts[2] }}" class="link-decor-none">{{ item.title }}</a></h5>
          </td>
      {% endfor %}
      </tr>
    {% endfor %}
  </table>
</div>