Fix bugs in PR-aware "Edit in GitHub" code

works around BashFAQ #050 etc.
This commit is contained in:
mDuo13
2018-03-07 15:47:59 -08:00
parent 3dae8a13a3
commit d351f409c6
4 changed files with 10 additions and 7 deletions

View File

@@ -58,7 +58,6 @@
{% set githuburl = target.github_forkurl + "/edit/"
+ target.github_branch
+ "/content/" + currentpage.md %}
{% endif %}
{% elif currentpage.template is defined %}
{% set githuburl = target.github_forkurl + "/edit/"
+ target.github_branch + "/tool/" + currentpage.template %}