Skip to content

Commit 71ff16a

Browse files
committed
guard against syntax error when dynamicly creating JS
1 parent 1b8d7af commit 71ff16a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

_layouts/page.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ <h1 class="entry-title">{{ page.title }}</h1>
2727
]{% endcapture %}
2828
{% endif %}
2929

30+
{% if files %}
3031
<script>
3132
var Files = {
3233
all : {{ files }}
3334
}
3435
</script>
36+
{% endif %}

0 commit comments

Comments
 (0)