diff options
| author | Sadeep Madurange <sadeep@asciimx.com> | 2025-10-25 21:25:25 +0800 |
|---|---|---|
| committer | Sadeep Madurange <sadeep@asciimx.com> | 2025-10-26 08:40:31 +0800 |
| commit | 2bc8f57fec98913b7ae6dbd84ce921284b36e92d (patch) | |
| tree | aa17fea8a90dc1af63541e105def54260f6b7a5d /projects.html | |
| parent | fad35e21d2bf8a2e1398e83887bb779a28e60ee6 (diff) | |
| download | www-2bc8f57fec98913b7ae6dbd84ce921284b36e92d.tar.gz | |
Improve style.
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> |
