diff options
author | Alex Yatskov <alex@foosoft.net> | 2016-12-18 12:24:07 -0800 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2016-12-18 12:24:07 -0800 |
commit | 04ff83cc6cc03c5ca868fcc86eeaa85d8f4e0bc8 (patch) | |
tree | 06269b78c975f7a538981252885a06e0dbfdea6e /tmpl/kanji.html | |
parent | 5eb1e4842fbd7e48b4acd2de7fabe07c06a71b39 (diff) |
Don't show list numbering on glossary lists with only one item
Diffstat (limited to 'tmpl/kanji.html')
-rw-r--r-- | tmpl/kanji.html | 6 |
1 files changed, 6 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> |