From 7ef7288a3338be437ff41c824aa4814631b88add Mon Sep 17 00:00:00 2001 From: Jade Dominguez Date: Mon, 23 Jan 2012 00:48:40 -0800 Subject: 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 --- _includes/JB/set_paths | 20 -------------------- _includes/JB/setup | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+), 20 deletions(-) delete mode 100644 _includes/JB/set_paths create mode 100644 _includes/JB/setup (limited to '_includes') diff --git a/_includes/JB/set_paths b/_includes/JB/set_paths deleted file mode 100644 index 890f2d8..0000000 --- a/_includes/JB/set_paths +++ /dev/null @@ -1,20 +0,0 @@ -{% capture jbcache %} - - - {% 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 diff --git a/_includes/JB/setup b/_includes/JB/setup new file mode 100644 index 0000000..337a2a7 --- /dev/null +++ b/_includes/JB/setup @@ -0,0 +1,19 @@ +{% capture jbcache %} + + {% 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 = nil %} + {% 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 = nil %} \ No newline at end of file -- cgit v1.2.3