mlibre
mlibre

Reputation: 2540

Two variable in one block - liquid

consider these variables in liquid in jeyll:

url: ex.com
baseurl: /blog

Now I want address ex.com/blog with liquid in one block like this:

{{url,baseurl}}

But it not permitted. How I can do this?
I do this in this way now:

{{url}}{{baseurl}}

Upvotes: 0

Views: 54

Answers (1)

mlibre
mlibre

Reputation: 2540

append good for this.

{{url | append: baseurl}}

Upvotes: 1

Related Questions