Skip to content

Commit 3f0579c

Browse files
committed
Place paths to main pages in JB hash
1 parent 6c0b6c1 commit 3f0579c

File tree

4 files changed

+13
-12
lines changed

4 files changed

+13
-12
lines changed

_config.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@
33
permalink: /:categories/:year/:month/:day/:title
44
auto: true
55
pygments: true
6-
var:
7-
archive_path: /archive.html
8-
categories_path : /categories.html
9-
tags_path : /tags.html
10-
rss_path: /atom.xml
116

127
production_url : http://username.github.com # or your custom domain name
138
title : Jekyll Bootstrap
@@ -40,8 +35,14 @@ JB :
4035
# /assets
4136
#
4237
ASSET_PATH : false
43-
44-
38+
39+
# These paths are to the main pages Jekyll-Bootstrap ships with.
40+
# Some JB helpers refer to these paths; change theme here if needed.
41+
#
42+
archive_path: /archive.html
43+
categories_path : /categories.html
44+
tags_path : /tags.html
45+
4546
comments :
4647
engine : disqus
4748
disqus :

_includes/JB/categories_list

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ Usage:
2222
{% else %}
2323
{% if categories_list.first[0] == null %}
2424
{% for category in categories_list %}
25-
<li><a href="{{ BASE_PATH }}{{ site.var.categories_path }}#{{ category }}-ref">
25+
<li><a href="{{ BASE_PATH }}{{ site.JB.categories_path }}#{{ category }}-ref">
2626
{{ category | join: "/" }} <span>{{ site.categories[category].size }}</span>
2727
</a></li>
2828
{% endfor %}
2929
{% else %}
3030
{% for category in categories_list %}
31-
<li><a href="{{ BASE_PATH }}{{ site.var.categories_path }}#{{ category[0] }}-ref">
31+
<li><a href="{{ BASE_PATH }}{{ site.JB.categories_path }}#{{ category[0] }}-ref">
3232
{{ category[0] | join: "/" }} <span>{{ category[1].size }}</span>
3333
</a></li>
3434
{% endfor %}

_includes/JB/tags_list

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ Usage:
2222
{% else %}
2323
{% if tags_list.first[0] == null %}
2424
{% for tag in tags_list %}
25-
<li><a href="{{ BASE_PATH }}{{ site.var.tags_path }}#{{ tag }}-ref">{{ tag }} <span>{{ site.tags[tag].size }}</span></a></li>
25+
<li><a href="{{ BASE_PATH }}{{ site.JB.tags_path }}#{{ tag }}-ref">{{ tag }} <span>{{ site.tags[tag].size }}</span></a></li>
2626
{% endfor %}
2727
{% else %}
2828
{% for tag in tags_list %}
29-
<li><a href="{{ BASE_PATH }}{{ site.var.tags_path }}#{{ tag[0] }}-ref">{{ tag[0] }} <span>{{ tag[1].size }}</span></a></li>
29+
<li><a href="{{ BASE_PATH }}{{ site.JB.tags_path }}#{{ tag[0] }}-ref">{{ tag[0] }} <span>{{ tag[1].size }}</span></a></li>
3030
{% endfor %}
3131
{% endif %}
3232
{% endif %}

_includes/themes/twitter/post.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ <h1>{{ page.title }} <small>Supporting tagline</small></h1>
1313
{% else %}
1414
<li class="prev disabled"><a>&larr; Previous</a></li>
1515
{% endif %}
16-
<li><a href="{{ BASE_PATH }}{{site.var.archive_path}}">Archive</a></li>
16+
<li><a href="{{ BASE_PATH }}{{ site.JB.archive_path }}">Archive</a></li>
1717
{% if page.next %}
1818
<li class="next"><a href="{{ BASE_PATH }}{{ page.next.url }}" title="{{ page.next.title }}">Next &rarr;</a></li>
1919
{% else %}

0 commit comments

Comments
 (0)