Paulus Schoutsen 9cc2bce761 Make edit links GitHub aware (#5038)
* Make edit links GitHub aware

* Fix repo url

* don't mutate existing string

* Move comment

* Fix url
2018-03-28 09:18:38 +02:00

5 lines
246 B
HTML

{% assign url_parts = page.url | split: '/' %}
{% if page.hide_github_edit != true %}
<div class='edit-github'><a href='{{ site.NLY_REPOSITORY_URL }}/tree/{{ site.NLY_HEAD }}/source/{{ page.path }}'>Edit this page on GitHub</a></div>
{% endif %}