Skip to content

Commit

Permalink
feat(template): use data-assets-inline attribute for `grunt-assets-…
Browse files Browse the repository at this point in the history
…inline`
  • Loading branch information
sparanoid committed Sep 9, 2015
1 parent a00cc6d commit 02c96e0
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion _app/_includes/themes/curtana/includes/css-variables.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,30 @@
{% endif %}

<!-- Post specified styles -->
<style>
<style data-assets-inline>
body {
{% if page.scheme-text %}
color: {{ page.scheme-text }};
{% endif %}

{% if page.scheme-bg %}
background-color: {{ page.scheme-bg }};
{% endif %}

{% if page.scheme-bg-img %}
{% assign first = true %}
background-image:
{% for image in page.scheme-bg-img %}
{% unless first %},{% endunless %}
{% if page.scheme-bg-img-local == true %}
url("{{ site.assets | prepend: site.base }}/{{ page.scheme-bg-img[forloop.index0] }}")
{% else %}
url("{{ site.file }}/{{ page.scheme-bg-img[forloop.index0] }}")
{% endif %}
{% assign first = false %}
{% endfor %}
;
{% endif %}
}

{% if page.scheme-text %}
Expand Down

0 comments on commit 02c96e0

Please sign in to comment.