diff options
author | Jade Dominguez <plusjade@gmail.com> | 2012-01-23 00:48:40 -0800 |
---|---|---|
committer | Jade Dominguez <plusjade@gmail.com> | 2012-01-23 00:48:40 -0800 |
commit | 7ef7288a3338be437ff41c824aa4814631b88add (patch) | |
tree | 0314f66ca3cf90caf7f2c612bbc23a88945b531b /_includes | |
parent | 779afdd016d0ee406fe40f411f6c625f76a13156 (diff) |
Rename set_paths to more generic 'setup'
This is because 'setup' will need to be included in every post/page file if we want to have access to BASE_PATH. So I figure 'setup' will be a good access path for any future inclusions we need to make
Diffstat (limited to '_includes')
-rw-r--r-- | _includes/JB/setup (renamed from _includes/JB/set_paths) | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/_includes/JB/set_paths b/_includes/JB/setup index 890f2d8..337a2a7 100644 --- a/_includes/JB/set_paths +++ b/_includes/JB/setup @@ -1,13 +1,12 @@ {% capture jbcache %} -<!-- - Dynamically set liquid variables for working with URLs/paths ---> - + <!-- + - 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 BASE_PATH = nil %} {% assign HOME_URL = "/" %} {% endif %} @@ -17,4 +16,4 @@ {% capture ASSET_PATH %}{{ BASE_PATH }}/assets/themes/{{ page.theme.name }}{% endcapture %} {% endif %} -{% endcapture %}{% assign jbcache = null %}
\ No newline at end of file +{% endcapture %}{% assign jbcache = nil %}
\ No newline at end of file |