Add link to Edit on GitHub
authorRaniere Silva <raniere@rgaiacs.com>
Thu, 23 Feb 2017 17:22:53 +0000 (17:22 +0000)
committerRaniere Silva <raniere@rgaiacs.com>
Fri, 3 Mar 2017 21:00:46 +0000 (21:00 +0000)
_includes/lesson_footer.html
_includes/navbar.html

index 352dcf06c27024bde814b23719f9c6f075a121c3..9d214d54c38c715f2f793d71ada70097c9d2199c 100644 (file)
     </div>
     <div class="col-md-6" align="right">
       <h4>
-       <a href="{{ site.github.repository_url }}/">Source</a>
+        <a href="{{site.github.repository_url}}/blob/gh-pages/{{page.path}}">Improve this page <span class="glyphicon glyphicon-pencil" aria-hidden="true"></span></a>
        /
        <a href="{{ site.github.repository_url }}/blob/gh-pages/CONTRIBUTING.md">Contributing</a>
        /
+       <a href="{{ site.github.repository_url }}/">Source</a>
+       /
        <a href="{{ site.github.repository_url }}/blob/gh-pages/CITATION">Cite</a>
        /
        <a href="{{ site.contact }}">Contact</a>
index effea29dbd061db10d1b68d47a3a4ca82e45f4a9..fa8def7bf6d0519e85ba60eb7de8ed6469e07621 100644 (file)
@@ -51,7 +51,6 @@
        {% comment %} Show setup instructions, reference guide, and lesson episodes for lessons. {% endcomment %}
         {% if site.kind == "lesson" %}
         <li><a href="{{ page.root }}/setup/">Setup</a></li>
-        <li><a href="{{ page.root }}/reference/">Reference</a></li>
         <li class="dropdown">
           <a href="{{ page.root }}/" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Episodes <span class="caret"></span></a>
           <ul class="dropdown-menu">
@@ -67,6 +66,7 @@
         <li class="dropdown">
           <a href="{{ page.root }}/" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Extras <span class="caret"></span></a>
           <ul class="dropdown-menu">
+            <li><a href="{{ page.root }}/reference/">Reference</a></li>
             {% for extra in site.extras %}
             <li><a href="{{ page.root }}{{ extra.url }}">{{ extra.title }}</a></li>
             {% endfor %}
@@ -76,6 +76,7 @@
 
        {% comment %} Always show license. {% endcomment %}
         <li><a href="{{ page.root }}/license/">License</a></li>
+       <li><a href="{{site.github.repository_url}}/blob/gh-pages/{{page.path}}">Edit on GitHub</a></li>
       </ul>
       <form class="navbar-form navbar-right" role="search" id="search" onsubmit="google_search(); return false;">
         <div class="form-group">