Skip to content

Commit 81fd9a2

Browse files
committed
Add image to navbar github link
1 parent 6c873b7 commit 81fd9a2

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

_includes/JB/pages_list

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,15 @@ Usage:
2626
{% for node in pages_list %}
2727
{% if node.title != null %}
2828
{% if group == null or group == node.group %}
29-
{% if page.url == node.url %}
30-
<li class="active"><a href="{{ BASE_PATH }}{{node.url}}" class="active">{{node.title}}</a></li>
31-
{% else %}
32-
<li><a href="{{ BASE_PATH }}{{node.url}}">{{node.title}}</a></li>
33-
{% endif %}
29+
{% if page.url == node.url %}
30+
<li class="active">
31+
{% else %}
32+
<li>
33+
{% endif %}
34+
{% if node.image != null %}
35+
<img style="height: 1em; vertical-align:top; margin: 0px" src="{{node.image}}"></img>
36+
{% endif %}
37+
<a href="{{ BASE_PATH }}{{node.url}}" class="active">{{node.title}}</a></li>
3438
{% endif %}
3539
{% endif %}
3640
{% endfor %}

_layouts/forward.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ <h1>{{ title }}</h1>
3838
<p>This document has moved!</p>
3939
{% endif %}
4040

41-
<p>Redirecting to <a href="{{ page.target }}">{{ targetname }}</a> in {{ time }} seconds.</p>
41+
<p>Redirecting to <a href="{{ page.target }}">{{ targetname }}</a>.</p>
4242

4343
</body>
4444
</html>

github.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ group: navigation
55
order: 7
66
targettitle: Taking you to github.com/PlusToolkit/PlusLib
77
time: 0
8+
message: ""
89
target: "https://github.com/PlusToolkit/PlusLib"
910
description: ""
11+
image: "images/GitHub-Mark-Light-32px.png"
1012
---

0 commit comments

Comments
 (0)