diff options
Diffstat (limited to 'projects.html')
| -rw-r--r-- | projects.html | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/projects.html b/projects.html index 4f8ce8e..c30b3be 100644 --- a/projects.html +++ b/projects.html @@ -3,19 +3,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> +<div class="container"> + <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 %} - </tr> - {% endfor %} -</table> + </table> +</div> |
