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

<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] }}">{{ item.title }}</a></h5>
        </td>
    {% endfor %}
    </tr>
  {% endfor %}
</table>