Skip to content

Commit

Permalink
Check for site github_brance (#43)
Browse files Browse the repository at this point in the history
Otherwise default to master.
  • Loading branch information
vsoch authored Mar 22, 2021
1 parent 57615ce commit b5f32a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _includes/editable.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<a href="{{ site.repo }}/edit/{{ site.github_branch }}/{{ page.path }}" target="_blank"><i class="fa fa-edit fa-fw"></i> Edit this page</a>
<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>
<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>
<a href="{{ site.repo }}/issues/new" target="_blank"><i class="fas fa-tasks fa-fw"></i> Create project issue</a>
<!-- this will parse through the header fields and add a button to open
Expand Down

0 comments on commit b5f32a1

Please sign in to comment.