Skip to content

Commit 1108de8

Browse files
committed
Convert User's guide on navbar to a link
1 parent 949a8b7 commit 1108de8

File tree

3 files changed

+19
-15
lines changed

3 files changed

+19
-15
lines changed

_includes/JB/pages_list

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@ Usage:
55
2) include JB/pages_list
66
example:
77
<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+
1212
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+
2020
This helper can be seen in use at: ../_layouts/default.html
2121
-->{% endcomment %}
2222

@@ -31,7 +31,12 @@ Usage:
3131
{% else %}
3232
<li>
3333
{% 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 %}
3540
{% if node.image != null %}
3641
<img style="height: 1em; vertical-align:middle; margin: 0px" src="{{node.image}}"/>
3742
{% endif %}

_layouts/forward.html renamed to _layouts/link.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ <h1>{{ title }}</h1>
3434

3535
{% if page.message %}
3636
<p>{{ page.message }}</p>
37-
{% else %}
38-
<p>This document has moved!</p>
3937
{% endif %}
4038

4139
<p>Redirecting to <a href="{{ page.target }}">{{ targetname }}</a>.</p>

usersguide.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
---
2-
layout: page
2+
layout: link
33
title: User's guide
44
group: navigation
55
order: 4
66
description: ""
7+
link_url: "http://perk-software.cs.queensu.ca/plus/doc/nightly/user/index.html"
78
---
89
{% include JB/setup %}
910

0 commit comments

Comments
 (0)