summaryrefslogtreecommitdiff
path: root/_security
diff options
context:
space:
mode:
authorAilin Nemui <ailin@z30a.localdomain>2018-04-24 19:32:45 +0200
committerAilin Nemui <ailin@z30a.localdomain>2018-04-24 19:32:45 +0200
commit81e234de0bdb9aa05e76928bc16c79c279a0b27b (patch)
treef03bd57eb13c6935635abf607bffe51ccede443b /_security
parent6fcf04ba9b387fcded55fdba43fbaa9c4bddd575 (diff)
downloadirssi.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.html5
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&#64;irssi&#46;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>