From f17ebae568a15033c914d2024f5e939dee89a4a8 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Wed, 7 Oct 2020 16:13:36 +0200 Subject: [PATCH] js/glossary.js: cleanup whitespace and unneeded front-matter Signed-off-by: Sebastiaan van Stijn --- js/glossary.js | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/js/glossary.js b/js/glossary.js index 3cabd25e1c..4d02ca6b66 100644 --- a/js/glossary.js +++ b/js/glossary.js @@ -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 -%} ]