Skip to content

Commit

Permalink
Place paths to main pages in JB hash
Browse files Browse the repository at this point in the history
  • Loading branch information
plusjade committed Jan 23, 2012
1 parent 6c0b6c1 commit 3f0579c
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
15 changes: 8 additions & 7 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 :
Expand Down
4 changes: 2 additions & 2 deletions _includes/JB/categories_list
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down
4 changes: 2 additions & 2 deletions _includes/JB/tags_list
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down
2 changes: 1 addition & 1 deletion _includes/themes/twitter/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ <h1>{{ page.title }} <small>Supporting tagline</small></h1>
{% 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 %}
Expand Down

0 comments on commit 3f0579c

Please sign in to comment.