-
8000
-
Notifications
You must be signed in to change notification settings - Fork 10.1k
Add {% raw %}
to Liquid example on site
#6179
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
Conversation
I worry this makes it less obvious that the code is Liquid. I understand that I think throughout the site we use |
docs/_docs/collections.md
Outdated
@@ -310,7 +310,7 @@ you specified in your `_config.yml` (if present) and the following information: | |||
when iterating through <code>site.collections</code> as you may need to | |||
filter it out.</p> | |||
<p>You may wish to use filters to find your collection: | |||
<code>{{ site.collections | where: "label", "myCollection" | first }}</code></p> | |||
<code>site.collections | where: "label", "myCollection" | first</code></p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nope this should be
<code>{% raw %}{{ site.collections | where: "label", "myCollection" | first }}{% endraw %}</code>
That's how it is elsewhere in our docs.
The priority is for how it renders at jekyllrb.com/docs
rather than github.com
..and the PR title needs to edited as well. We're no longer removing the braces.. |
@jekyllbot: merge +docs |
{% raw %}
to Liquid example on site
Fix for #6165 (comment)
Discussion: #6165 (comment)
I can change it to escaping the braces if that is what is ultimately wanted.
/cc @jekyll/documentation