Nayananga opened a new pull request #68: fix: path joins fixed URL: https://github.com/apache/camel-website/pull/68 Problem: When I try to build the website it gave me errors like, `$ hugo --minify Building sites … ERROR 2019/08/08 20:51:53 render of "page" failed: "/home/nayananga/Desktop/camel-webiste/layouts/release-note/single.html:29:51": execute of template failed: template: release-note/single.html:1:3: executing "release-note/single.html" at <partial "header.html" .>: error calling partial: "/home/nayananga/Desktop/camel-webiste/layouts/partials/header.html:29:51": execute of template failed: template: partials/header.html:29:51: executing "partials/header.html" at <index .Site.Data "rev-manifest" "css/site.css">: error calling index: index of nil pointer ERROR 2019/08/08 20:51:53 render of "page" failed: "/home/nayananga/Desktop/camel-webiste/layouts/release-note/single.html:29:51": execute of template failed: template: release-note/single.html:1:3: executing "release-note/single.html" at <partial "header.html" .>: error calling partial: "/home/nayananga/Desktop/camel-webiste/layouts/partials/header.html:29:51": execute of template failed: template: partials/header.html:29:51: executing "partials/header.html" at <index .Site.Data "rev-manifest" "css/site.css">: error calling index: index of nil pointer ERROR 2019/08/08 20:51:53 render of "page" failed: "/home/nayananga/Desktop/camel-webiste/layouts/release-note/single.html:29:51": execute of template failed: template: release-note/single.html:1:3: executing "release-note/single.html" at <partial "header.html" .>: error calling partial: "/home/nayananga/Desktop/camel-webiste/layouts/partials/header.html:29:51": execute of template failed: template: partials/header.html:29:51: executing "partials/header.html" at <index .Site.Data "rev-manifest" "css/site.css">: error calling index: index of nil pointer ERROR 2019/08/08 20:51:53 render of "section" failed: execute of template failed: template: releases/list.html:1:3: executing "releases/list.html" at <partial "header.html" .>: error calling partial: "/home/nayananga/Desktop/camel-webiste/layouts/partials/header.html:29:51": execute of template failed: template: partials/header.html:29:51: executing "partials/header.html" at <index .Site.Data "rev-manifest" "css/site.css">: error calling index: index of nil pointer Total in 6087 ms Error: Error building site: failed to render pages: render of "home" failed: "/home/nayananga/Desktop/camel-webiste/layouts/index.html:29:51": execute of template failed: template: index.html:1:3: executing "index.html" at <partial "header.html" .>: error calling partial: "/home/nayananga/Desktop/camel-webiste/layouts/partials/header.html:29:51": execute of template failed: template: partials/header.html:29:51: executing "partials/header.html" at <index .Site.Data "rev-manifest" "css/site.css">: error calling index: index of nil pointer` So even after I tried rebase into upstream the result was same, Solution : I found that some file paths not correct, So I fixed them. Then I got this, `$ hugo --minify Building sites … ERROR 2019/08/08 21:49:15 render of "home" failed: "/home/nayananga/Desktop/camel-webiste/layouts/index.html:49:35": execute of template failed: template: index.html:158:3: executing "index.html" at <partial "footer.html" .>: error calling partial: "/home/nayananga/Desktop/camel-webiste/layouts/partials/footer.html:49:35": execute of template failed: template: partials/footer.html:49:35: executing "partials/footer.html" at <index .Site.Data "rev-manifest" "js/site.js">: error calling index: index of nil pointer ERROR 2019/08/08 21:49:15 render of "page" failed: execute of template failed: template: security-advisory/single.html:30:3: executing "security-advisory/single.html" at <partial "footer.html" .>: error calling partial: "/home/nayananga/Desktop/camel-webiste/layouts/partials/footer.html:49:35": execute of template failed: template: partials/footer.html:49:35: executing "partials/footer.html" at <index .Site.Data "rev-manifest" "js/site.js">: error calling index: index of nil pointer ERROR 2019/08/08 21:49:15 render of "page" failed: "/home/nayananga/Desktop/camel-webiste/layouts/release-note/single.html:49:35": execute of template failed: template: release-note/single.html:73:3: executing "release-note/single.html" at <partial "footer.html" .>: error calling partial: "/home/nayananga/Desktop/camel-webiste/layouts/partials/footer.html:49:35": execute of template failed: template: partials/footer.html:49:35: executing "partials/footer.html" at <index .Site.Data "rev-manifest" "js/site.js">: error calling index: index of nil pointer ERROR 2019/08/08 21:49:15 render of "section" failed: execute of template failed: template: releases/list.html:25:3: executing "releases/list.html" at <partial "footer.html" .>: error calling partial: "/home/nayananga/Desktop/camel-webiste/layouts/partials/footer.html:49:35": execute of template failed: template: partials/footer.html:49:35: executing "partials/footer.html" at <index .Site.Data "rev-manifest" "js/site.js">: error calling index: index of nil pointer Total in 3857 ms Error: Error building site: failed to render pages: render of "page" failed: "/home/nayananga/Desktop/camel-webiste/layouts/release-note/single.html:49:35": execute of template failed: template: release-note/single.html:73:3: executing "release-note/single.html" at <partial "footer.html" .>: error calling partial: "/home/nayananga/Desktop/camel-webiste/layouts/partials/footer.html:49:35": execute of template failed: template: partials/footer.html:49:35: executing "partials/footer.html" at <index .Site.Data "rev-manifest" "js/site.js">: error calling index: index of nil pointer` So after fixing the footer as well site was buit successfuly without errors and yarn preview worked without errors. Output: This fixed the site build problem and it reduced the number of errors showing in chrome console from 60 to 4 (60 errors showing in [https://camel.apache.org/staging/](url) But still, **svg4everybody.js** not rendered into the public folder so it gives 404 error
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
