aboutsummaryrefslogtreecommitdiff
path: root/tmpl/term-definition.html
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-01-08 18:39:59 -0800
committerAlex Yatskov <alex@foosoft.net>2017-01-08 18:39:59 -0800
commit67ca7adc4cabb79a87b51ebd9b112e641de31af9 (patch)
tree652ea04970a25f2f479cf71cbf9e9dbeedf794af /tmpl/term-definition.html
parent53a8e9061c482400186c8b041be520a519795c07 (diff)
WIP
Diffstat (limited to 'tmpl/term-definition.html')
-rw-r--r--tmpl/term-definition.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/tmpl/term-definition.html b/tmpl/term-definition.html
new file mode 100644
index 00000000..03356a59
--- /dev/null
+++ b/tmpl/term-definition.html
@@ -0,0 +1,16 @@
+{{#if tags}}
+<div class="term-tags">
+ {{#each tags}}
+ <span class="tag tag-{{category}}" title="{{notes}}">{{name}}</span>
+ {{/each}}
+</div>
+{{/if}}
+{{#if glossary.[1]}}
+<ul class="term-glossary-group">
+ {{#each glossary}}
+ <li><span class="term-glossary-item">{{.}}</span></li>
+ {{/each}}
+</ul>
+{{else}}
+<div class="term-glossary-group term-glossary-item">{{glossary.[0]}}</div>
+{{/if}}