Introduce custom Jekyll tags for better glossary integration

This commit is contained in:
Jessica Yao
2017-10-17 18:23:17 -07:00
committed by Andrew Chen
parent 8ff083b0f3
commit 46d9cbe5ae
51 changed files with 546 additions and 197 deletions
+3 -3
View File
@@ -1,10 +1,10 @@
{% assign term_data = site.data.glossary.[include.term] %}
{% assign term_data = site.data.glossary.[include.term_id] %}
{% if include.length == "all" or include.length == "short" %}
{% if term_data.short-description %}
{{ term_data.short-description | markdownify }}
{{ term_data.short-description | liquify | markdownify }}
{% else %}
@@ -18,7 +18,7 @@
{% if term_data.long-description %}
{{ term_data.long-description | markdownify }}
{{ term_data.long-description | liquify | markdownify }}
{% else %}