js/glossary.js: cleanup whitespace and unneeded front-matter

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2020-10-07 16:13:36 +02:00
parent 3cdfb582e7
commit f17ebae568
No known key found for this signature in database
GPG Key ID: 76698F39D527CE8C
1 changed files with 4 additions and 9 deletions

View File

@ -1,11 +1,6 @@
---
layout: null
---
var glossary = [
{% for entry in site.data.glossary %}
{
"term": {{ entry[0] | jsonify }},
"def": {{ entry[1] | markdownify | replace:'href="#','href="/glossary/?term=' | jsonify }}
}{% unless forloop.last %},{% endunless %}
{% endfor %}
{%- for entry in site.data.glossary -%}
{"term": {{ entry[0] | jsonify }}, "def": {{ entry[1] | markdownify | replace:'href="#','href="/glossary/?term=' | jsonify }}}
{%- unless forloop.last -%},{%- endunless -%}
{%- endfor -%}
]