From 4b5ddb61fbf852c91eeada399792517472d0a779 Mon Sep 17 00:00:00 2001 From: YourtionGuo Date: Thu, 4 Aug 2016 10:46:14 +0800 Subject: [PATCH] update setup --- _includes/JB/setup | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/_includes/JB/setup b/_includes/JB/setup index e510353..08ab0a9 100644 --- a/_includes/JB/setup +++ b/_includes/JB/setup @@ -17,7 +17,11 @@ {% elsif site.safe %} {% capture ASSET_PATH %}{{ site.cdn_url }}/assets/{% endcapture %} {% else %} - {% capture ASSET_PATH %}{{ BASE_PATH }}/assets/{% endcapture %} + {% 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 %} + {% endif %} {% endif %} {% if site.JB.IMAGE_PATH %} {% assign IMAGE_PATH = site.JB.IMAGE_PATH %}