# Liquid syntax error in href

**URL:** <https://talk.jekyllrb.com/t/liquid-syntax-error-in-href/1410>\
**Category:** Help\
**Created:** [January 27, 2018, 1:27pm UTC](https://talk.jekyllrb.com/t/liquid-syntax-error-in-href/1410 "2018-01-27T13:27:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![inwardmovement](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/inwardmovement/32/666_2.png) [@inwardmovement](https://talk.jekyllrb.com/u/inwardmovement)\
**Post date:** [January 27, 2018, 1:27pm UTC](https://talk.jekyllrb.com/t/liquid-syntax-error-in-href/1410/1 "2018-01-27T13:27:41Z")

</div>

Do you know why Jekyll keeps returning `Liquid Warning: Liquid syntax error (line 10): Unexpected character in "{{ app.url }}" in applications.md` ?

**[applications.md](http://applications.md):**

```
---
title: Applications
layout: applications
---

<div class="grid-apps">

  {% for app in site.data.applications %}

  <div class="card">
    <img class="card-img-top" src="" alt="Card image cap">
    <div class="card-body">
      <h4 class="card-title">{{ app.name }}</h4>
      <p class="card-text">{{ app.description }}</p>
      <a href="{{ app.url }}" class="btn btn-primary">Visit</a>
    </div>
  </div>

  {% endfor %}

</div>

```

**applications.yml:**

```
- name: app 1
  description: blablabla 1
  url: http://inwardmovement.fr/1

- name: app 2
  description: blablabla 2
  url: http://inwardmovement.fr/2

```

**And Sublime text console:**

`OSError: [Errno 22] Invalid argument: 'C:\\laragon\\www\\inwardmovement.github.io\\applications.md*'`

---

<div class="post-metadata">

**Author:** ![mmistakes](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/mmistakes/32/2169_2.png) [@mmistakes](https://talk.jekyllrb.com/u/mmistakes)\
**Post date:** [January 27, 2018, 3:20pm UTC](https://talk.jekyllrb.com/t/liquid-syntax-error-in-href/1410/2 "2018-01-27T15:20:08Z")

</div>

Looks like your indents are off for `description` and `url` lines. They should be lined up with `name`.

```auto
- name: app 1
  description: blablabla 1
  url: http://inwardmovement.fr/1

- name: app 2
  description: blablabla 2
  url: http://inwardmovement.fr/2

```

Also might want to put the urls in quotes just in case there is something going on with how Liquid is processing those strings.

---

<div class="post-metadata">

**Author:** ![inwardmovement](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/inwardmovement/32/666_2.png) [@inwardmovement](https://talk.jekyllrb.com/u/inwardmovement)\
**Post date:** [January 27, 2018, 3:26pm UTC](https://talk.jekyllrb.com/t/liquid-syntax-error-in-href/1410/3 "2018-01-27T15:26:18Z")

</div>

It was only a layout thing here, the indentation is good (I edited my message).  
I also tried with quotes but nothing changes…

---

<div class="post-metadata">

**Author:** ![Frank](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/frank/32/26_2.png) [@Frank](https://talk.jekyllrb.com/u/Frank)\
**Post date:** [January 27, 2018, 5:12pm UTC](https://talk.jekyllrb.com/t/liquid-syntax-error-in-href/1410/4 "2018-01-27T17:12:48Z")

</div>

What if you try getting rid of the spaces insite the brackets in `{{ app.url }}`?

I found out that Liquid does not like non breakable spaces inside brackets, I configured my IDE to show invisible characters to spot any non standard spaces.

---

<div class="post-metadata">

**Author:** ![inwardmovement](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/inwardmovement/32/666_2.png) [@inwardmovement](https://talk.jekyllrb.com/u/inwardmovement)\
**Post date:** [January 27, 2018, 7:15pm UTC](https://talk.jekyllrb.com/t/liquid-syntax-error-in-href/1410/5 "2018-01-27T19:15:12Z")

</div>

Hey Frank you were right! Thanks. I just deleted these spaces and rewrote them, then no error. I just discovered it’s pretty common as the `alt +` combination can fire an undesirable non-breakable space, but it seems specific to french keyboards.

Just installed [Unicode character highlighter for Sublime Text](https://github.com/possan/sublime_unicode_nbsp), it should help haha.

![image](https://canada1.discourse-cdn.com/flex030/uploads/jekyllrb/original/1X/d562b5f929e3132a83d2da64e1a77c615fdbfc3d.png)

Have a great day folks and thanks again.
