fix h2 not showing for categories with children
This commit is contained in:
parent
a13fd237f0
commit
6100bf3b3d
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="480" height="750">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="480" height="800">
|
||||
<style>
|
||||
<%= style %>
|
||||
</style>
|
||||
|
@ -9,8 +9,8 @@
|
|||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
>
|
||||
<% for (let key in data) { %>
|
||||
<h2><%- key %></h2>
|
||||
<% if(data[key] instanceof Array){ %>
|
||||
<h2><%- key %></h2>
|
||||
<%- include("badges.ejs", { badges: data[key] }) %>
|
||||
<% } else{ %>
|
||||
<% for (let subKey in data[key]) { %>
|
||||
|
|
Before Width: | Height: | Size: 639 B After Width: | Height: | Size: 638 B |
Loading…
Add table
Add a link
Reference in a new issue