Liquid syntax error


#1

layout: professionals
permalink: richard-l-robertson/

{% for data in site.data.professionals.richard_l_robertson %}

{{ data.title }}

{{ data.subtitle }}

{{ data.text }}
{% if data.button_text %} {% endif %}

{{ }}

{{ data.text_1 }}
{% endfor %}

git bash keeps saying "Liquid syntax error (line 14): [:end_of_string] is not a valid expression in "{{ }}"
line 14 is this

{{ data.button_text }}

cant seem to understand what the issue is

#2

hard to read like that.

why are there empty {{ }}?


#3

In addition to what @rdyar said, it would help to at least see the structure of your _data/ directory and a sample code of one of the files.

The error is telling you (as far as I understand it) that you are not allowed to have those empty brackets. :confused: