setup 770 B

1234567891011121314151617181920212223
  1. {% capture jbcache %}
  2. <!--
  3. - Dynamically set liquid variables for working with URLs/paths
  4. -->
  5. {% include JB/is_production %}
  6. {% if site.JB.setup.provider == "custom" %}
  7. {% include custom/setup %}
  8. {% else %}
  9. {% if is_production and site.JB.BASE_PATH and site.JB.BASE_PATH != '' %}
  10. {% assign BASE_PATH = site.JB.BASE_PATH %}
  11. {% assign HOME_PATH = site.JB.BASE_PATH %}
  12. {% else %}
  13. {% assign BASE_PATH = nil %}
  14. {% assign HOME_PATH = "/" %}
  15. {% endif %}
  16. {% if site.JB.ASSET_PATH %}
  17. {% assign ASSET_PATH = site.JB.ASSET_PATH %}
  18. {% else %}
  19. {% capture ASSET_PATH %}{{ BASE_PATH }}/assets/themes/{{ page.theme.name }}{% endcapture %}
  20. {% endif %}
  21. {% endif %}
  22. {% endcapture %}{% assign jbcache = nil %}