summaryrefslogtreecommitdiff
path: root/ext/bg/data
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bg/data')
-rw-r--r--ext/bg/data/default-anki-field-templates.handlebars8
1 files changed, 5 insertions, 3 deletions
diff --git a/ext/bg/data/default-anki-field-templates.handlebars b/ext/bg/data/default-anki-field-templates.handlebars
index 77818a43..4382f707 100644
--- a/ext/bg/data/default-anki-field-templates.handlebars
+++ b/ext/bg/data/default-anki-field-templates.handlebars
@@ -14,9 +14,11 @@
{{~/if~}}
{{/inline}}
-{{#*inline "audio"~}}
- [sound:{{definition.audioFileName}}]
-{{~/inline}}
+{{#*inline "audio"}}
+ {{~#if definition.audioFileName~}}
+ [sound:{{definition.audioFileName}}]
+ {{~/if~}}
+{{/inline}}
{{#*inline "character"}}
{{~definition.character~}}