Now all helpers can be overridden by custom implementations without editing JB source. Just define a helper's 'engine' as 'custom' in the _config.yml file and provide a helper file of the same name in _includes/custom/. This helps users cleanly upgrade JB versions since they no longer need to edit the files directly.
22 lines
No EOL
703 B
Text
22 lines
No EOL
703 B
Text
{% capture jbcache %}
|
|
<!--
|
|
- Dynamically set liquid variables for working with URLs/paths
|
|
-->
|
|
{% if site.JB.setup.engine == "custom" %}
|
|
{% include custom/setup %}
|
|
{% else %}
|
|
{% 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 %}
|
|
{% endif %}
|
|
{% endcapture %}{% assign jbcache = nil %} |