Skip to content

Commit b5f32a1

Browse files
authored
Check for site github_brance (#43)
Otherwise default to master.
1 parent 57615ce commit b5f32a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_includes/editable.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<a href="{{ site.repo }}/edit/{{ site.github_branch }}/{{ page.path }}" target="_blank"><i class="fa fa-edit fa-fw"></i> Edit this page</a>
1+
<a href="{{ site.repo }}/edit/{% if site.github_branch %}{{ site.github_branch }}{% else %}master{% endif %}/{{ page.path }}" target="_blank"><i class="fa fa-edit fa-fw"></i> Edit this page</a>
22
<a href="{{ site.repo }}/issues/new?labels={% if page.editable %}{{ page.editable }}{% else %}question{% endif %}&title=Question:&body=Question on: {{ site.repo }}/tree/master/{{ page.path }}" target="_blank"><i class="fab fa-github fa-fw"></i> Create documentation issue</a>
33
<a href="{{ site.repo }}/issues/new" target="_blank"><i class="fas fa-tasks fa-fw"></i> Create project issue</a>
44
<!-- this will parse through the header fields and add a button to open

0 commit comments

Comments
 (0)