implements requested branch and edit mode configs

This commit is contained in:
Matthew Wang
2020-01-12 13:47:05 -08:00
parent 2c94928917
commit 9b86e292fa
3 changed files with 21 additions and 8 deletions

View File

@@ -94,9 +94,16 @@ layout: table_wrappers
Page last modified: {{ page.last_modified_date | date: site.last_edit_time_format }}.
</p>
{% endif %}
{% if site.show_gh_edit_link and site.edit_link_text %}
{%
if
site.show_gh_edit_link and
site.edit_link_text and
site.gh_edit_repository and
site.gh_edit_view_mode and
site.gh_edit_branch
%}
<p class="text-small text-grey-dk-000 mb-0">
<a href="{{ site.gh_edit_repository }}/tree/master/{{ page.path }}">{{ site.edit_link_text }}</a>
<a href="{{ site.gh_edit_repository }}/{{site.gh_edit_view_mode}}/{{site.gh_edit_branch}}/{{ page.path }}">{{ site.edit_link_text }}</a>
</p>
{% endif %}
{% if site.footer_content != nil %}