-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can we use hyphens with liquid #1407
Comments
Hyphens are allowed in variables. E.g.
I think the The leading It does look like we are missing documentation for what is allowed in a variable name. |
actually the site that was build is unable to render header and footer if you want i can give you the link of the file. so i used strict variables so that i can find where the error is and debug it. |
Also, looks like
|
Yeah, strict parsing hasn't been added to the assign tag yet. |
Looks like this issue is actually a duplicate of #1034, where This isn't an issue with hyphens for variables, which does seem to be supported, which can be seen by the variable name in the error message |
I was rendering a page built with jekyll and liquid and it throwed an error.
here is the html code snippet
<header class="intro-header" style="background-image: url('{{ site.baseurl }}/{% if page.header-img %}{{ page.header-img }}{% else %}{{ site.header-img }}{% endif %}');">
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
<div class="post-heading" style="padding: 30px 0">
<h1>{{ page.title }}</h1>
{% if page.subtitle %}
<h2 class="subheading">{{ page.subtitle }}</h2>
{% endif %}
<span class="meta">Posted by {{ page.author }} on {{ page.date | date: "%B %-d, %Y" }}</span>
</div>
</div>
</div>
</div>
</head>
here is the error message:
my config.yml has:
liquid:
error_mode: strict
strict_variables: true
strict_filters: true
further there is some more error messages that I get are :
[:dot, "."] is not a valid expression in "{{ .spec.host }}"
this was the error message when my config_.yml had
liquid:
error_mode: warn
is it a valid expression??
The text was updated successfully, but these errors were encountered: