diff options
Diffstat (limited to 'util')
-rw-r--r-- | util/tmpl/kanji.html | 59 |
1 files changed, 30 insertions, 29 deletions
diff --git a/util/tmpl/kanji.html b/util/tmpl/kanji.html index b52f29f5..c1883b19 100644 --- a/util/tmpl/kanji.html +++ b/util/tmpl/kanji.html @@ -1,33 +1,34 @@ -<div class="definition"> - <div class="kanji-info kanji-glyph">{{character}}</div> +<div class="kanji-definition"> + <div class="kanji-glyph">{{character}}</div> + <div class="kanji-info"> + <dl> + {{#if glossary}} + <dt>Meanings</dt> + <dd> + {{#each glossary}} + {{.}}{{#unless @last}}, {{/unless}} + {{/each}} + </dd> + {{/if}} - <dl class="kanji-info"> - {{#if glossary}} - <dt>Meanings</dt> - <dd> - {{#each glossary}} - {{.}}{{#unless @last}}, {{/unless}} - {{/each}} - </dd> - {{/if}} + {{#if kunyomi}} + <dt>Kunyomi</dt> + <dd> + {{#each kunyomi}} + {{.}}{{#unless @last}}, {{/unless}} + {{/each}} + </dd> + {{/if}} - {{#if kunyomi}} - <dt>Kunyomi</dt> - <dd> - {{#each kunyomi}} - {{.}}{{#unless @last}}, {{/unless}} - {{/each}} - </dd> - {{/if}} - - {{#if onyomi}} - <dt>Onyomi</dt> - <dd> - {{#each onyomi}} - {{.}}{{#unless @last}}, {{/unless}} - {{/each}} - </dd> - {{/if}} - </dl> + {{#if onyomi}} + <dt>Onyomi</dt> + <dd> + {{#each onyomi}} + {{.}}{{#unless @last}}, {{/unless}} + {{/each}} + </dd> + {{/if}} + </dl> + </div> </div> </div> |