diff options
author | Ailin Nemui <ailin@z30a.localdomain> | 2018-04-24 19:32:45 +0200 |
---|---|---|
committer | Ailin Nemui <ailin@z30a.localdomain> | 2018-04-24 19:32:45 +0200 |
commit | 81e234de0bdb9aa05e76928bc16c79c279a0b27b (patch) | |
tree | f03bd57eb13c6935635abf607bffe51ccede443b /_security | |
parent | 6fcf04ba9b387fcded55fdba43fbaa9c4bddd575 (diff) | |
download | irssi.github.io-81e234de0bdb9aa05e76928bc16c79c279a0b27b.zip |
fix rendering issue with empty tbody
the index itself was included in the collection. filter it by checking for whether the document has any "bugs"
Diffstat (limited to '_security')
-rw-r--r-- | _security/index.html | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/_security/index.html b/_security/index.html index e88b664..6993c40 100644 --- a/_security/index.html +++ b/_security/index.html @@ -20,7 +20,8 @@ Please report security issues to staff@irssi.org. Thanks! </thead> {% assign advisories = site.data.security | concat: site.security %}{% assign lttrs = 'abcdefghijklmn' | split: '' %}{% -for advisory in advisories reversed %} +for advisory in advisories reversed %}{% +if advisory.bugs %} <tbody> <tr> <th colspan="3">{% if advisory.link %}<a href="{{ advisory.link }}">{{ advisory.name }}</a>{% elsif advisory.name contains "-SA-" %}<a href="{{ site.baseurl }}/security/html/{{ advisory.name | slugify | replace: '-', '_' }}">{{ advisory.name }}</a>{% else %}{{ advisory.name }}{% endif %}</th> @@ -81,7 +82,7 @@ for advisory in advisories reversed %} </tr> {% endfor %} </tbody> -{% endfor %} +{% endif %}{% endfor %} </table> |