diff options
| author | Sadeep Madurange <sadeep@asciimx.com> | 2025-10-25 11:35:29 +0800 |
|---|---|---|
| committer | Sadeep Madurange <sadeep@asciimx.com> | 2025-10-25 11:35:29 +0800 |
| commit | dd08a2afcd2b008186096e2f41f26102854372e5 (patch) | |
| tree | a73532c28b21d9a9fbf3f95416d667ff76b5dac6 /projects.html | |
| parent | 79e9eec0ac05634fe367220df701b20c91523291 (diff) | |
| download | www-dd08a2afcd2b008186096e2f41f26102854372e5.tar.gz | |
Use template for project list.
Diffstat (limited to 'projects.html')
| -rw-r--r-- | projects.html | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/projects.html b/projects.html new file mode 100644 index 0000000..5f06646 --- /dev/null +++ b/projects.html @@ -0,0 +1,20 @@ +--- +layout: default +title: Projects +--- + +<table> + {% assign rows = site.projects.size | divided_by: 2.0 | ceil %} + {% for i in (1..rows) %} + <tr> + {% assign offset = forloop.index0 | times: 2 %} + {% for item in site.projects limit:2 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> |
