This is an automated email from the ASF dual-hosted git repository. zregvart pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel-website.git
The following commit(s) were added to refs/heads/master by this push: new 3159723 fix: warning about .File from Hugo 3159723 is described below commit 31597237927fcdf4718ce38955b70a8a948c84bb Author: Zoran Regvart <zregv...@apache.org> AuthorDate: Wed Apr 1 16:59:03 2020 +0200 fix: warning about .File from Hugo This fixes the warning: ``` WARN 2020/04/01 16:56:54 .File.Path on zero object. ``` --- layouts/partials/footer.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index e8bb5bb..4dd6f08 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,4 +1,6 @@ - <div class="edit"><a title="Improve this document, receive free virtual hugs ♥" href="https://github.com/apache/camel-website/edit/master/content/{{ .File.Path | replaceRE "^/" "" }}">Edit this Page</a></div> + {{ with .File }} + <div class="edit"><a title="Improve this document, receive free virtual hugs ♥" href="https://github.com/apache/camel-website/edit/master/content/{{ .Path | replaceRE "^/" "" }}">Edit this Page</a></div> + {{ end }} <footer> <div class="footer"> <figure class="logo">