Skip to content

Commit 8579232

Browse files
committed
Update setup to use layout.theme.name instead of page.theme.name if it exists
1 parent f16ae95 commit 8579232

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

_includes/JB/setup

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@
1717
{% if site.JB.ASSET_PATH %}
1818
{% assign ASSET_PATH = site.JB.ASSET_PATH %}
1919
{% else %}
20+
{% if layout.theme.name %}
21+
{% capture ASSET_PATH %}{{ BASE_PATH }}/assets/themes/{{ layout.theme.name }}{% endcapture %}
22+
{% else %}
2023
{% capture ASSET_PATH %}{{ BASE_PATH }}/assets/themes/{{ page.theme.name }}{% endcapture %}
24+
{% end %}
2125
{% endif %}
2226
{% endif %}
23-
{% endcapture %}{% assign jbcache = nil %}
27+
{% endcapture %}{% assign jbcache = nil %}

0 commit comments

Comments
 (0)