Skip to content

Commit 8dbb992

Browse files
committed
Add link to Edit on GitHub
1 parent 89b2d3c commit 8dbb992

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

_includes/lesson_footer.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,12 @@ <h4>
1717
</div>
1818
<div class="col-md-6" align="right">
1919
<h4>
20-
<a href="{{ site.github.repository_url }}/">Source</a>
20+
<a href="{{site.github.repository_url}}/blob/gh-pages/{{page.path}}">Improve this page <span class="glyphicon glyphicon-pencil" aria-hidden="true"></span></a>
2121
/
2222
<a href="{{ site.github.repository_url }}/blob/gh-pages/CONTRIBUTING.md">Contributing</a>
2323
/
24+
<a href="{{ site.github.repository_url }}/">Source</a>
25+
/
2426
<a href="{{ site.github.repository_url }}/blob/gh-pages/CITATION">Cite</a>
2527
/
2628
<a href="{{ site.contact }}">Contact</a>

_includes/navbar.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
{% comment %} Show setup instructions, reference guide, and lesson episodes for lessons. {% endcomment %}
5252
{% if site.kind == "lesson" %}
5353
<li><a href="{{ page.root }}/setup/">Setup</a></li>
54-
<li><a href="{{ page.root }}/reference/">Reference</a></li>
5554
<li class="dropdown">
5655
<a href="{{ page.root }}/" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Episodes <span class="caret"></span></a>
5756
<ul class="dropdown-menu">
@@ -67,6 +66,7 @@
6766
<li class="dropdown">
6867
<a href="{{ page.root }}/" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Extras <span class="caret"></span></a>
6968
<ul class="dropdown-menu">
69+
<li><a href="{{ page.root }}/reference/">Reference</a></li>
7070
{% for extra in site.extras %}
7171
<li><a href="{{ page.root }}{{ extra.url }}">{{ extra.title }}</a></li>
7272
{% endfor %}
@@ -76,6 +76,7 @@
7676

7777
{% comment %} Always show license. {% endcomment %}
7878
<li><a href="{{ page.root }}/license/">License</a></li>
79+
<li><a href="{{site.github.repository_url}}/blob/gh-pages/{{page.path}}">Edit on GitHub</a></li>
7980
</ul>
8081
<form class="navbar-form navbar-right" role="search" id="search" onsubmit="google_search(); return false;">
8182
<div class="form-group">

0 commit comments

Comments
 (0)