summaryrefslogtreecommitdiff
path: root/util/tmpl/kanji.html
diff options
context:
space:
mode:
Diffstat (limited to 'util/tmpl/kanji.html')
-rw-r--r--util/tmpl/kanji.html36
1 files changed, 27 insertions, 9 deletions
diff --git a/util/tmpl/kanji.html b/util/tmpl/kanji.html
index 66e4647e..0e85e966 100644
--- a/util/tmpl/kanji.html
+++ b/util/tmpl/kanji.html
@@ -1,13 +1,31 @@
-<div class="kanji">{{character}}</div>
+<div class="definition">
+ <div class="kanji">{{character}}</div>
-<div class="reading">
- {{kunyomi}}
-</div>
+ <div class="readings">
+ {{#if kunyomi}}
+ <dl>
+ <dt>Kunyomi</dt>
+ {{#each kunyomi}}
+ <dd>{{.}}</dd>
+ {{/each}}
+ </dl>
+ {{/if}}
-<div class="reading">
- {{onyomi}}
-</div>
+ {{#if onyomi}}
+ <dl>
+ <dt>Onyomi</dt>
+ {{#each onyomi}}
+ <dd>{{.}}</dd>
+ {{/each}}
+ </dl>
+ {{/if}}
+ </div>
-<div class="glossary">
- {{glossary}}
+ <div class="glossary">
+ <ol>
+ {{#each glossary}}
+ <li><span>{{.}}</span></li>
+ {{/each}}
+ </ol>
+ </div>
</div>