Locate and fix - https://github.com/apache/comdev-site/pull/161
Best, tison. tison <wander4...@gmail.com> 于2024年3月10日周日 00:05写道: > Hi, > > The README file writes: run `hugo` to get the static content. > > I got: > > $ hugo > Start building sites … > hugo v0.123.8-5fed9c591b694f314e5939548e11cc3dcb79a79c+extended > darwin/arm64 BuildDate=2024-03-07T13:14:42Z VendorInfo=brew > > ERROR render of "section" failed: > "/Users/tison/Brittani/comdev-site/layouts/_default/baseof.html:87:13": > execute of template failed: template: _default/list.html:87:13: executing > "_default/list.html" at <partial "website-source.html" .>: error calling > partial: > "/Users/tison/Brittani/comdev-site/layouts/partials/website-source.html:5:86": > execute of template failed: template: partials/website-source.html:5:86: > executing "partials/website-source.html" at <.Page.File.Path>: error > calling Path: runtime error: invalid memory address or nil pointer > dereference > Total in 77 ms > Error: error building site: render: failed to render pages: render of > "section" failed: > "/Users/tison/Brittani/comdev-site/layouts/_default/baseof.html:87:13": > execute of template failed: template: _default/list.html:87:13: executing > "_default/list.html" – File is nil; wrap it in if or with: {{ with partial > "website-source.html" .>: error calling partial: > "/Users/tison/Brittani/comdev-site/layouts/partials/website-source.html:5:86": > execute of template failed: template: partials/website-source.html:5:86: > executing "partials/website-source.html" at <.Page.File }}{{ .Path }}{{ end > }} > > Is the version the issue or I miss some steps? > > Best, > tison. >