diff options
| -rw-r--r-- | _site/assets/css/main.css | 7 | ||||
| -rw-r--r-- | _site/projects/index.html | 1 | ||||
| -rw-r--r-- | assets/css/main.css | 7 | ||||
| -rw-r--r-- | projects.html | 7 |
4 files changed, 7 insertions, 15 deletions
diff --git a/_site/assets/css/main.css b/_site/assets/css/main.css index fca50c0..127c9c6 100644 --- a/_site/assets/css/main.css +++ b/_site/assets/css/main.css @@ -46,14 +46,9 @@ td { } .project-item { - width: 50%; border: none; vertical-align: top; -} - -#navlist > .active > a { - color: #000; - font-weight: 600; + width: 50%; } .author{ diff --git a/_site/projects/index.html b/_site/projects/index.html index af602a6..15ffb96 100644 --- a/_site/projects/index.html +++ b/_site/projects/index.html @@ -27,6 +27,7 @@ <main class="container" id="main"><table> + <tr> diff --git a/assets/css/main.css b/assets/css/main.css index fca50c0..127c9c6 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -46,14 +46,9 @@ td { } .project-item { - width: 50%; border: none; vertical-align: top; -} - -#navlist > .active > a { - color: #000; - font-weight: 600; + width: 50%; } .author{ diff --git a/projects.html b/projects.html index 5f06646..4f8ce8e 100644 --- a/projects.html +++ b/projects.html @@ -4,11 +4,12 @@ title: Projects --- <table> - {% assign rows = site.projects.size | divided_by: 2.0 | ceil %} + {% assign n = 2 %} + {% assign rows = site.projects.size | divided_by: n | ceil %} {% for i in (1..rows) %} <tr> - {% assign offset = forloop.index0 | times: 2 %} - {% for item in site.projects limit:2 offset:offset %} + {% 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 }}"> |
