Skip to content
This repository
Browse code

Place paths to main pages in JB hash

  • Loading branch information...
commit 3f0579cc7c1090ccd31308807ac011e8cc56057d 1 parent 6c0b6c1
Jade Dominguez authored
15 _config.yml
@@ -3,11 +3,6 @@
3 3 permalink: /:categories/:year/:month/:day/:title
4 4 auto: true
5 5 pygments: true
6   -var:
7   - archive_path: /archive.html
8   - categories_path : /categories.html
9   - tags_path : /tags.html
10   - rss_path: /atom.xml
11 6
12 7 production_url : http://username.github.com # or your custom domain name
13 8 title : Jekyll Bootstrap
@@ -40,8 +35,14 @@ JB :
40 35 # /assets
41 36 #
42 37 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 +
45 46 comments :
46 47 engine : disqus
47 48 disqus :
4 _includes/JB/categories_list
@@ -22,13 +22,13 @@ Usage:
22 22 {% else %}
23 23 {% if categories_list.first[0] == null %}
24 24 {% 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">
26 26 {{ category | join: "/" }} <span>{{ site.categories[category].size }}</span>
27 27 </a></li>
28 28 {% endfor %}
29 29 {% else %}
30 30 {% 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">
32 32 {{ category[0] | join: "/" }} <span>{{ category[1].size }}</span>
33 33 </a></li>
34 34 {% endfor %}
4 _includes/JB/tags_list
@@ -22,11 +22,11 @@ Usage:
22 22 {% else %}
23 23 {% if tags_list.first[0] == null %}
24 24 {% 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>
26 26 {% endfor %}
27 27 {% else %}
28 28 {% 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>
30 30 {% endfor %}
31 31 {% endif %}
32 32 {% endif %}
2  _includes/themes/twitter/post.html
@@ -13,7 +13,7 @@
13 13 {% else %}
14 14 <li class="prev disabled"><a>&larr; Previous</a></li>
15 15 {% 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>
17 17 {% if page.next %}
18 18 <li class="next"><a href="{{ BASE_PATH }}{{ page.next.url }}" title="{{ page.next.title }}">Next &rarr;</a></li>
19 19 {% else %}

0 comments on commit 3f0579c

Please sign in to comment.
Something went wrong with that request. Please try again.