5
5
2) include JB/pages_list
6
6
example:
7
7
<ul>
8
- {% assign pages_list = site.pages %}
9
- {% include JB/pages_list %}
10
- </ul>
11
-
8
+ {% assign pages_list = site.pages %}
9
+ {% include JB/pages_list %}
10
+ </ul>
11
+
12
12
Grouping: (optional):
13
- assign the 'group' variable to constrain the list to only pages/posts
14
- in the given group. Note you must define the group manually in the page/post
15
- meta-data to use this feature.
16
- Grouping is mainly helpful for non-post pages.
17
- If you want to group posts, it's easier/better to tag them, then pass the tagged posts array.
18
- i.e. site.tags.cool_tag (this returns an array of posts tagged: cool_tag)
19
-
13
+ assign the 'group' variable to constrain the list to only pages/posts
14
+ in the given group. Note you must define the group manually in the page/post
15
+ meta-data to use this feature.
16
+ Grouping is mainly helpful for non-post pages.
17
+ If you want to group posts, it's easier/better to tag them, then pass the tagged posts array.
18
+ i.e. site.tags.cool_tag (this returns an array of posts tagged: cool_tag)
19
+
20
20
This helper can be seen in use at: ../_layouts/default.html
21
21
-->{% endcomment %}
22
22
@@ -31,7 +31,12 @@ Usage:
31
31
{% else %}
32
32
<li>
33
33
{% endif %}
34
- <a href="{{ BASE_PATH }}{{node.url}}" class="active">
34
+
35
+ {% if node.layout == "link" %}
36
+ <a href="{{node.link_url}}" class="active"></a>
37
+ {% else %}
38
+ <a href="{{ BASE_PATH }}{{node.url}}" class="active">
39
+ {% endif %}
35
40
{% if node.image != null %}
36
41
<img style="height: 1em; vertical-align:middle; margin: 0px" src="{{node.image}}"/>
37
42
{% endif %}
0 commit comments