summaryrefslogtreecommitdiffstats
path: root/projects.html
blob: b24bc90d1aacb5c3d15ec55315974b6daff3a649 (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
25
26
---
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: '/' %}
            <a href="{{ parts[2] }}" class="link-decor-none">
              <img src="{{ parts[2] }}/{{ item.thumbnail }}" alt="{{ item.title }}">
              <h5>{{ item.title }}</h5>
            </a>
          </td>
      {% endfor %}
      </tr>
    {% endfor %}
  </table>
</div>