Skip to content

Commit

Permalink
HANAMI_GUIDES_GIT_BRANCH => BRANCH for Netlify compat
Browse files Browse the repository at this point in the history
  • Loading branch information
jodosha committed Oct 15, 2018
1 parent fafd1e0 commit 56f85f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .env
@@ -1,3 +1,3 @@
#!/bin/bash

export HANAMI_GUIDES_GIT_BRANCH=$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,')
export BRANCH=$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,')
2 changes: 1 addition & 1 deletion themes/hanami/layouts/_default/single.html
Expand Up @@ -55,7 +55,7 @@
</a>
</li>
<li class="nav-item">
<a class="nav-link nav-link-icon" href="{{ .Site.Params.githubrepo }}/edit/{{ getenv "HANAMI_GUIDES_GIT_BRANCH" }}/content/{{ .File.Path }}" target="_blank" title="Edit this page">
<a class="nav-link nav-link-icon" href="{{ .Site.Params.githubrepo }}/edit/{{ getenv "BRANCH" }}/content/{{ .File.Path }}" target="_blank" title="Edit this page">
<i class="fa fa-pencil-square-o"></i>
</a>
</li>
Expand Down

0 comments on commit 56f85f9

Please sign in to comment.