aboutsummaryrefslogtreecommitdiff
path: root/tmpl/fields.html
diff options
context:
space:
mode:
Diffstat (limited to 'tmpl/fields.html')
-rw-r--r--tmpl/fields.html19
1 files changed, 10 insertions, 9 deletions
diff --git a/tmpl/fields.html b/tmpl/fields.html
index 6d3756d6..ca2a5ee2 100644
--- a/tmpl/fields.html
+++ b/tmpl/fields.html
@@ -1,15 +1,16 @@
{{#*inline "audio"}}{{/inline}}
{{#*inline "character"}}
-character
+{{definition.character}}
{{/inline}}
{{#*inline "dictionary"}}
-dictionary
+{{definition.dictionary}}
{{/inline}}
{{#*inline "expression"}}
-expression
+{{#if modeTermKana}}{{#if definition.reading}}{{definition.reading}}{{else}}{{definition.expression}}{{/if}}{{/if}}
+{{#if modeTermKanji}}{{definition.expression}}{{/if}}
{{/inline}}
{{#*inline "furigana"}}
@@ -21,27 +22,27 @@ glossary
{{/inline}}
{{#*inline "kunyomi"}}
-kunyomi
+{{definition.kunyomi}}
{{/inline}}
{{#*inline "onyomi"}}
-onyomi
+{{definition.onyomi}}
{{/inline}}
{{#*inline "reading"}}
-reading
+{{definition.reading}}
{{/inline}}
{{#*inline "sentence"}}
-sentence
+{{definition.sentence}}
{{/inline}}
{{#*inline "tags"}}
-tags
+{{#each definition.tags}}{{name}}{{#unless @last}}, {{/unless}}{{/each}}
{{/inline}}
{{#*inline "url"}}
-url
+{{#if html}}<a href="{{definition.url}}">{{definition.url}}</a>{{else}}{{definition.url}}{{/if}}
{{/inline}}
{{> (lookup . 'marker') }}