Skip to content

Commit bbae23e

Browse files
committed
Add 'Edit on Github' link.
1 parent bae452e commit bbae23e

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

‎source/_templates/sourcelink.html‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{%- if has_source %}
2+
<h3>{{ _('This Page') }}</h3>
3+
<ul class="this-page-menu">
4+
{%- if show_source and sourcename %}
5+
<li><a href="{{ pathto('_sources/' + sourcename, true)|e }}"
6+
rel="nofollow">{{ _('Show Source') }}</a></li>
7+
{%- endif %}
8+
<li><a href="https://github.com/opentechschool/python-beginners/edit/master/source/{{ pagename }}.rst">
9+
{{ _('Edit on Github') }}</a></li>
10+
</ul>
11+
{%- endif %}

0 commit comments

Comments
 (0)