aboutsummaryrefslogtreecommitdiff
path: root/tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'tmpl')
-rw-r--r--tmpl/kanji.html6
-rw-r--r--tmpl/term.html6
2 files changed, 12 insertions, 0 deletions
diff --git a/tmpl/kanji.html b/tmpl/kanji.html
index 380e16ff..e22dd660 100644
--- a/tmpl/kanji.html
+++ b/tmpl/kanji.html
@@ -35,10 +35,16 @@
</div>
<div class="kanji-glossary">
+ {{#if glossary.[1]}}
<ol>
{{#each glossary}}
<li><span>{{.}}</span></li>
{{/each}}
</ol>
+ {{else}}
+ <p>
+ {{glossary.[0]}}
+ </p>
+ {{/if}}
</div>
</div>
diff --git a/tmpl/term.html b/tmpl/term.html
index 36f8f4fc..6185ca25 100644
--- a/tmpl/term.html
+++ b/tmpl/term.html
@@ -28,10 +28,16 @@
</div>
<div class="term-glossary">
+ {{#if glossary.[1]}}
<ol>
{{#each glossary}}
<li><span>{{.}}</span></li>
{{/each}}
</ol>
+ {{else}}
+ <p>
+ {{glossary.[0]}}
+ </p>
+ {{/if}}
</div>
</div>