Skip to content

Commit

Permalink
Rename set_paths to more generic 'setup'
Browse files Browse the repository at this point in the history
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
  • Loading branch information
plusjade committed Jan 23, 2012
1 parent 779afdd commit 7ef7288
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions _includes/JB/set_paths → _includes/JB/setup
Original file line number Diff line number Diff line change
@@ -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 %}

Expand All @@ -17,4 +16,4 @@
{% capture ASSET_PATH %}{{ BASE_PATH }}/assets/themes/{{ page.theme.name }}{% endcapture %}
{% endif %}

{% endcapture %}{% assign jbcache = null %}
{% endcapture %}{% assign jbcache = nil %}

0 comments on commit 7ef7288

Please sign in to comment.