# Liquid Warning: Liquid syntax error (line 10): Unexpected character

**URL:** <https://talk.jekyllrb.com/t/liquid-warning-liquid-syntax-error-line-10-unexpected-character/905>\
**Category:** Uncategorized\
**Created:** [August 19, 2017, 10:58am UTC](https://talk.jekyllrb.com/t/liquid-warning-liquid-syntax-error-line-10-unexpected-character/905 "2017-08-19T10:58:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nayabbashasayed](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/nayabbashasayed/32/175_2.png) [@nayabbashasayed](https://talk.jekyllrb.com/u/nayabbashasayed)\
**Post date:** [August 19, 2017, 10:58am UTC](https://talk.jekyllrb.com/t/liquid-warning-liquid-syntax-error-line-10-unexpected-character/905/1 "2017-08-19T10:58:10Z")

</div>

I’ve updated from jekyll 3.3.1 to 3.5.2. I guess liquid version is upgraded to 4.0.

Here is the full warning/error:  
Liquid Warning: Liquid syntax error (line 10): Unexpected character { in “{{{{category|first}} }}” in /\_layouts/home.html

The following snippet was working fine for 3.3.1.:

```auto
{% for category in site.categories %}
{% assign catg = {{category|first}} %}
{% if catg == "me" %}
    {% continue %}
{% endif %}
<a href="/category/{{ category | first }}.html" >{{ category | first }}</a>
{% endfor %}

```

Though it seems working fine, how to resolve the warning/error?
