summaryrefslogtreecommitdiffstats
path: root/projects.html
blob: f46dec290c9ab9cea38576c96db72cffabfde4f4 (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">
  <h1>Projects</h1>
  <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>
</div>