diff options
Diffstat (limited to 'layouts/partials/docs/git-footer.html')
-rw-r--r-- | layouts/partials/docs/git-footer.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/docs/git-footer.html b/layouts/partials/docs/git-footer.html index 4a856d3..4b2f44d 100644 --- a/layouts/partials/docs/git-footer.html +++ b/layouts/partials/docs/git-footer.html @@ -10,9 +10,9 @@ {{ end }} {{ with .Site.Params.BookEditPath }} <div> - <a href="{{ $.Site.Params.BookRepo }}/{{ . }}/{{ $.File.Path }}" target="_blank" rel="noopener"> + {{ if $.File }}<a href="{{ $.Site.Params.BookRepo }}/{{ . }}/{{ $.File.Path }}" target="_blank" rel="noopener"> <img src="{{ "svg/code-fork.svg" | relURL }}" /> Edit this page - </a> + </a>{{ end }} </div> {{ end }} </div> |