Permalink
Browse files

Place paths to main pages in JB hash

  • Loading branch information...
1 parent 6c0b6c1 commit 3f0579cc7c1090ccd31308807ac011e8cc56057d @plusjade committed Jan 23, 2012
Showing with 13 additions and 12 deletions.
  1. +8 −7 _config.yml
  2. +2 −2 _includes/JB/categories_list
  3. +2 −2 _includes/JB/tags_list
  4. +1 −1 _includes/themes/twitter/post.html
View
15 _config.yml
@@ -3,11 +3,6 @@
permalink: /:categories/:year/:month/:day/:title
auto: true
pygments: true
-var:
- archive_path: /archive.html
- categories_path : /categories.html
- tags_path : /tags.html
- rss_path: /atom.xml
production_url : http://username.github.com # or your custom domain name
title : Jekyll Bootstrap
@@ -40,8 +35,14 @@ JB :
# /assets
#
ASSET_PATH : false
-
-
+
+ # These paths are to the main pages Jekyll-Bootstrap ships with.
+ # Some JB helpers refer to these paths; change theme here if needed.
+ #
+ archive_path: /archive.html
+ categories_path : /categories.html
+ tags_path : /tags.html
+
comments :
engine : disqus
disqus :
View
4 _includes/JB/categories_list
@@ -22,13 +22,13 @@ Usage:
{% else %}
{% if categories_list.first[0] == null %}
{% for category in categories_list %}
- <li><a href="{{ BASE_PATH }}{{ site.var.categories_path }}#{{ category }}-ref">
+ <li><a href="{{ BASE_PATH }}{{ site.JB.categories_path }}#{{ category }}-ref">
{{ category | join: "/" }} <span>{{ site.categories[category].size }}</span>
</a></li>
{% endfor %}
{% else %}
{% for category in categories_list %}
- <li><a href="{{ BASE_PATH }}{{ site.var.categories_path }}#{{ category[0] }}-ref">
+ <li><a href="{{ BASE_PATH }}{{ site.JB.categories_path }}#{{ category[0] }}-ref">
{{ category[0] | join: "/" }} <span>{{ category[1].size }}</span>
</a></li>
{% endfor %}
View
4 _includes/JB/tags_list
@@ -22,11 +22,11 @@ Usage:
{% else %}
{% if tags_list.first[0] == null %}
{% for tag in tags_list %}
- <li><a href="{{ BASE_PATH }}{{ site.var.tags_path }}#{{ tag }}-ref">{{ tag }} <span>{{ site.tags[tag].size }}</span></a></li>
+ <li><a href="{{ BASE_PATH }}{{ site.JB.tags_path }}#{{ tag }}-ref">{{ tag }} <span>{{ site.tags[tag].size }}</span></a></li>
{% endfor %}
{% else %}
{% for tag in tags_list %}
- <li><a href="{{ BASE_PATH }}{{ site.var.tags_path }}#{{ tag[0] }}-ref">{{ tag[0] }} <span>{{ tag[1].size }}</span></a></li>
+ <li><a href="{{ BASE_PATH }}{{ site.JB.tags_path }}#{{ tag[0] }}-ref">{{ tag[0] }} <span>{{ tag[1].size }}</span></a></li>
{% endfor %}
{% endif %}
{% endif %}
View
2 _includes/themes/twitter/post.html
@@ -13,7 +13,7 @@
{% else %}
<li class="prev disabled"><a>&larr; Previous</a></li>
{% endif %}
- <li><a href="{{ BASE_PATH }}{{site.var.archive_path}}">Archive</a></li>
+ <li><a href="{{ BASE_PATH }}{{ site.JB.archive_path }}">Archive</a></li>
{% if page.next %}
<li class="next"><a href="{{ BASE_PATH }}{{ page.next.url }}" title="{{ page.next.title }}">Next &rarr;</a></li>
{% else %}

0 comments on commit 3f0579c

Please sign in to comment.