okfde / codefor.de

The website at codefor.de
https://codefor.de
MIT License
25 stars 36 forks source link

Render of page failed #508

Closed JensWinter closed 5 months ago

JensWinter commented 5 months ago

This PR solves two issues I had when running the website locally:

ERROR render of "page" failed: "C:\Projects\CodeForMD\codefor.de\themes\codefor-theme\layouts\labs\single.html:70:19": execute of template failed: template: labs/single.html:70:19: executing "main" at <partial "project-preview.html" .>: error calling partial: execute of template failed: template: partials/project-preview.html:29:47: executing "partials/project-preview.html" at <fileExists (printf "static/projects/%!s(MISSING)" .Params.imgname)>: error calling fileExists: CreateFile C:\Projects\CodeForMD\codefor.de\static\projects\%!!(MISSING)s(<nil>): The filename, directory name, or volume label syntax is incorrect.

and

Error: error building site: render: failed to render pages: render of "page" failed: "C:\Projects\CodeForMD\codefor.de\themes\codefor-theme\layouts\labs\single.html:70:19": execute of template failed: template: labs/single.html:70:19: executing "main" at <partial "project-preview.html" .>: error calling partial: execute of template failed: template: partials/project-preview.html:29:47: executing "partials/project-preview.html" at <fileExists (printf "static/projects/%s" .Params.imgname)>: error calling fileExists: CreateFile C:\Projects\CodeForMD\codefor.de\static\projects\%!s(<nil>): The filename, directory name, or volume label syntax is incorrect.

Resolves #507