Permalink
Browse files

Update setup to use layout.theme.name instead of page.theme.name if i…

…t exists
  • Loading branch information...
parkr committed May 19, 2016
1 parent f16ae95 commit 8579232806a9f553aed95c85f9888b7e3ac3f76a
Showing with 5 additions and 1 deletion.
  1. +5 −1 _includes/JB/setup
View
@@ -17,7 +17,11 @@
{% if site.JB.ASSET_PATH %}
{% assign ASSET_PATH = site.JB.ASSET_PATH %}
{% else %}
{% if layout.theme.name %}
{% capture ASSET_PATH %}{{ BASE_PATH }}/assets/themes/{{ layout.theme.name }}{% endcapture %}
{% else %}
{% capture ASSET_PATH %}{{ BASE_PATH }}/assets/themes/{{ page.theme.name }}{% endcapture %}
{% end %}
{% endif %}
{% endif %}
{% endcapture %}{% assign jbcache = nil %}
{% endcapture %}{% assign jbcache = nil %}

0 comments on commit 8579232

Please sign in to comment.