Skip to content

Commit 2b04e4a

Browse files
author
Alexander
authored
Merge pull request #11 from corneadoug/fix/otherRenderingIssues
Backport plusjade/jekyll-bootstrap#293 + add .html to `pages_list` links
2 parents 09f770e + f774bb0 commit 2b04e4a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

_includes/JB/pages_list

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ Usage:
2828
{% for cat in node.group %}
2929
{% if cat == group %}
3030
{% if page.url == node.url %}
31-
<li class="active"><a href="{{ BASE_PATH }}{{node.url}}" class="active">{{node.title}}</a></li>
31+
<li class="active"><a href="{{ BASE_PATH }}{{node.url}}.html" class="active">{{node.title}}</a></li>
3232
{% else %}
33-
<li><a href="{{ BASE_PATH }}{{node.url}}">{{node.title}}</a></li>
33+
<li><a href="{{ BASE_PATH }}{{node.url}}.html">{{node.title}}</a></li>
3434
{% endif %}
3535
{% endif %}
3636
{% endfor %}

_includes/JB/setup

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
{% if site.JB.ASSET_PATH %}
1818
{% assign ASSET_PATH = site.JB.ASSET_PATH %}
1919
{% else %}
20-
{% capture ASSET_PATH %}{{ BASE_PATH }}/assets/themes/{{ page.theme.name }}{% endcapture %}
21-
{% endif %}
20+
{% capture ASSET_PATH %}{{ BASE_PATH }}/assets/themes/{% if page.theme.name %}{{ page.theme.name }}{% else if %}{{ layout.theme.name }}{% endif %}{% endcapture %}
21+
{% endif %}
2222
{% endif %}
23-
{% endcapture %}{% assign jbcache = nil %}
23+
{% endcapture %}{% assign jbcache = nil %}

0 commit comments

Comments
 (0)