Skip to content

Instantly share code, notes, and snippets.

@shakna-israel
Created November 23, 2014 07:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shakna-israel/b213d04045882db3b381 to your computer and use it in GitHub Desktop.
Save shakna-israel/b213d04045882db3b381 to your computer and use it in GitHub Desktop.
This does not process as sass, due to liquid.
---
---
{% for posts in site.posts %}
#{{ post.id }} {
overflow:hidden;
width:100%;
height:auto;
background-image:url("{{ "assets/img/" | append post.img }}")
}
{% endfor %}
@ellenbrook
Copy link

You cannot put liquid in Sass. In order to do what you're trying to accomplish you could try and use in-line CSS in the body tag of the posts template.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment