From 04ff83cc6cc03c5ca868fcc86eeaa85d8f4e0bc8 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Sun, 18 Dec 2016 12:24:07 -0800 Subject: Don't show list numbering on glossary lists with only one item --- tmpl/kanji.html | 6 ++++++ tmpl/term.html | 6 ++++++ 2 files changed, 12 insertions(+) (limited to 'tmpl') 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 @@
+ {{#if glossary.[1]}}
    {{#each glossary}}
  1. {{.}}
  2. {{/each}}
+ {{else}} +

+ {{glossary.[0]}} +

+ {{/if}}
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 @@
+ {{#if glossary.[1]}}
    {{#each glossary}}
  1. {{.}}
  2. {{/each}}
+ {{else}} +

+ {{glossary.[0]}} +

+ {{/if}}
-- cgit v1.2.3