easystats / blog

:mega: The collaborative blog
https://easystats.github.io/blog/
10 stars 1 forks source link

Trouble rendering the website #52

Closed IndrajeetPatil closed 2 years ago

IndrajeetPatil commented 2 years ago

Can someone else please try rendering the website ASAP.

If I try, I get the following error:

==> rmarkdown::render_site(encoding = 'UTF-8')

Start building sites … 
hugo v0.92.0-B3549403+extended windows/amd64 BuildDate=2022-01-12T08:23:18Z VendorInfo=gohugoio
ERROR 2022/01/27 04:03:31 Page.Hugo is deprecated and will be removed in Hugo 0.93.0. Use the global hugo function.
ERROR 2022/01/27 04:03:31 Page.RSSLink is deprecated and will be removed in Hugo 0.93.0. Use the Output Format's link, e.g. something like:
    {{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}
ERROR 2022/01/27 04:03:31 render of "page" failed: execute of template failed: template: _default/single.html:11:7: executing "footer" at <partial "page-single/footer.html" .>: error calling partial: execute of template failed: template: partials/page-single/footer.html:6:3: executing "partials/page-single/footer.html" at <partial "highlight-js.html" .>: error calling partial: "C:\Users\IndrajeetPatil\Documents\GitHub\blog\themes\hyde-hyde\layouts\partials\highlight-js.html:1:10": execute of template failed: template: partials/highlight-js.html:1:10: executing "partials/highlight-js.html" at <(not (isset .Params "highlight")) and ((isset .Params "highlight") .Params.highlight)>: can't give argument to non-function not (isset .Params "highlight")
ERROR 2022/01/27 04:03:31 render of "page" failed: execute of template failed: template: _default/single.html:11:7: executing "footer" at <partial "page-single/footer.html" .>: error calling partial: execute of template failed: template: partials/page-single/footer.html:6:3: executing "partials/page-single/footer.html" at <partial "highlight-js.html" .>: error calling partial: "C:\Users\IndrajeetPatil\Documents\GitHub\blog\themes\hyde-hyde\layouts\partials\highlight-js.html:1:10": execute of template failed: template: partials/highlight-js.html:1:10: executing "partials/highlight-js.html" at <(not (isset .Params "highlight")) and ((isset .Params "highlight") .Params.highlight)>: can't give argument to non-function not (isset .Params "highlight")
ERROR 2022/01/27 04:03:31 render of "page" failed: execute of template failed: template: _default/single.html:11:7: executing "footer" at <partial "page-single/footer.html" .>: error calling partial: execute of template failed: template: partials/page-single/footer.html:6:3: executing "partials/page-single/footer.html" at <partial "highlight-js.html" .>: error calling partial: "C:\Users\IndrajeetPatil\Documents\GitHub\blog\themes\hyde-hyde\layouts\partials\highlight-js.html:1:10": execute of template failed: template: partials/highlight-js.html:1:10: executing "partials/highlight-js.html" at <(not (isset .Params "highlight")) and ((isset .Params "highlight") .Params.highlight)>: can't give argument to non-function not (isset .Params "highlight")
ERROR 2022/01/27 04:03:31 render of "page" failed: execute of template failed: template: _default/single.html:11:7: executing "footer" at <partial "page-single/footer.html" .>: error calling partial: execute of template failed: template: partials/page-single/footer.html:6:3: executing "partials/page-single/footer.html" at <partial "highlight-js.html" .>: error calling partial: "C:\Users\IndrajeetPatil\Documents\GitHub\blog\themes\hyde-hyde\layouts\partials\highlight-js.html:1:10": execute of template failed: template: partials/highlight-js.html:1:10: executing "partials/highlight-js.html" at <(not (isset .Params "highlight")) and ((isset .Params "highlight") .Params.highlight)>: can't give argument to non-function not (isset .Params "highlight")
Total in 401 ms
Error: Error building site: failed to render pages: render of "page" failed: execute of template failed: template: _default/single.html:11:7: executing "footer" at <partial "page-single/footer.html" .>: error calling partial: execute of template failed: template: partials/page-single/footer.html:6:3: executing "partials/page-single/footer.html" at <partial "highlight-js.html" .>: error calling partial: "C:\Users\IndrajeetPatil\Documents\GitHub\blog\themes\hyde-hyde\layouts\partials\highlight-js.html:1:10": execute of template failed: template: partials/highlight-js.html:1:10: executing "partials/highlight-js.html" at <(not (isset .Params "highlight")) and ((isset .Params "highlight") .Params.highlight)>: can't give argument to non-function not (isset .Params "highlight")

==> The site has been generated to the directory 'docs'.

** Note that normally you cannot just open the .html files in this directory to view them in a browser. This directory need to be served before you can preview web pages correctly (e.g., you may deploy the folder to a web server). Alternatively, blogdown::serve_site() gives you a local preview of the site.

For now, I am just including the static HTML generated on my local machine to not have 404, but the page look is completely off, and we need to fix it ASAP by clearing the site and rendering it again.

IndrajeetPatil commented 2 years ago

Never mind, updating theme was all that was needed.

Published! https://easystats.github.io/blog/posts/easystats_threeyears/

IndrajeetPatil commented 2 years ago

But the images are still missing, so need to figure how to provide paths in a way that images are rendered.

IndrajeetPatil commented 2 years ago

All good now!