summaryrefslogtreecommitdiff
path: root/_includes/JB/setup
blob: 30342fe0b7dcd618b7bb212a14ef40617c8a1686 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{% capture jbcache %}
  <!--
  - Dynamically set liquid variables for working with URLs/paths
  -->
  {% if site.safe and site.JB.BASE_PATH %}
    {% assign BASE_PATH = site.JB.BASE_PATH %}
    {% assign HOME_PATH = site.JB.BASE_PATH %}
  {% else %}
    {% assign BASE_PATH = nil %}
    {% assign HOME_PATH = "/" %}
  {% endif %}

  {% if site.JB.ASSET_PATH %}
    {% assign ASSET_PATH = site.JB.ASSET_PATH %}
  {% else %}
    {% capture ASSET_PATH %}{{ BASE_PATH }}/assets/themes/{{ page.theme.name }}{% endcapture %}
  {% endif %}  

{% endcapture %}{% assign jbcache = nil %}