summaryrefslogtreecommitdiffstats
path: root/source/_templates
diff options
context:
space:
mode:
Diffstat (limited to 'source/_templates')
-rw-r--r--source/_templates/sourcelink.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/source/_templates/sourcelink.html b/source/_templates/sourcelink.html
new file mode 100644
index 0000000..5250a4e
--- /dev/null
+++ b/source/_templates/sourcelink.html
@@ -0,0 +1,12 @@
+{%- if show_source and has_source and sourcename %}
+ <h3>{{ _('This Page') }}</h3>
+ <ul class="this-page-menu">
+ <li><a href="{{ pathto('_sources/' + sourcename, true)|e }}"
+ rel="nofollow">{{ _('Show Source') }}</a></li>
+ {%- if edit_on_github_url %}
+ <li><a href="{{ edit_on_github_url }}"
+ rel="nofollow">{{ _('Edit on GitHub') }}</a></li>
+ {%- endif %}
+ </ul>
+{%- endif %}
+