summaryrefslogtreecommitdiff
path: root/_includes
diff options
context:
space:
mode:
Diffstat (limited to '_includes')
-rw-r--r--_includes/JB/set_paths20
1 files changed, 20 insertions, 0 deletions
diff --git a/_includes/JB/set_paths b/_includes/JB/set_paths
new file mode 100644
index 0000000..890f2d8
--- /dev/null
+++ b/_includes/JB/set_paths
@@ -0,0 +1,20 @@
+{% 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_URL = site.JB.BASE_PATH %}
+ {% else %}
+ {% assign BASE_PATH = "" %}
+ {% assign HOME_URL = "/" %}
+ {% 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 = null %} \ No newline at end of file