Hi all,
I’m using this DocDock theme with a specific folder setup for the menu:
content
├── level-one
│ ├── level-two
│ │ ├── level-three
│ │ │ ├── level-four
│ │ │ │ ├── _index.md
│ │ │ │ ├── page-4-a.md
│ │ │ │ ├── page-4-b.md
│ │ │ │ └── page-4-c.md
My content goes to level-two as such:
content
├── level-one
│ ├── level-two
│ │ ├── _index.md
│ │ ├── page-4-a.md
│ │ ├── page-4-b.md
tags: ["energy_systems", "4_5"]
However, adding tags to any page besides _index.md throws an error to a partial in the theme:
Building sites … WARN 2019/10/30 21:27:43 .File.BaseFileName on zero object. Wrap it in if or with: {{ with .File }}{{ .BaseFileName }}{{ end }}
ERROR 2019/10/30 21:27:48 render of "taxonomy" failed: execute of template failed: template: _default/list.html:8:3: executing "main" at <partial "pagination.html" $paginator>: error calling partial: "project_repo/themes/docdock/layouts/partials/pagination.html:3:42": execute of template failed: template: partials/pagination.html:3:42: executing "partials/pagination.html" at <.Prev.RelPermalink>: can't evaluate field RelPermalink in type *page.Pager
ERROR 2019/10/30 21:27:48 render of "taxonomy" failed: execute of template failed: template: _default/list.html:8:3: executing "main" at <partial "pagination.html" $paginator>: error calling partial: "project_repo/themes/docdock/layouts/partials/pagination.html:7:42": execute of template failed: template: partials/pagination.html:7:42: executing "partials/pagination.html" at <.Next.RelPermalink>: can't evaluate field RelPermalink in type *page.Pager
ERROR 2019/10/30 21:27:48 render of "taxonomy" failed: execute of template failed: template: _default/list.html:8:3: executing "main" at <partial "pagination.html" $paginator>: error calling partial: "project_repo/themes/docdock/layouts/partials/pagination.html:3:42": execute of template failed: template: partials/pagination.html:3:42: executing "partials/pagination.html" at <.Prev.RelPermalink>: can't evaluate field RelPermalink in type *page.Pager
Total in 5334 ms
Error: Error building site: failed to render pages: render of "taxonomy" failed: execute of template failed: template: _default/list.html:8:3: executing "main" at <partial "pagination.html" $paginator>: error calling partial: "project_repo/themes/docdock/layouts/partials/pagination.html:7:42": execute of template failed: template: partials/pagination.html:7:42: executing "partials/pagination.html" at <.Next.RelPermalink>: can't evaluate field RelPermalink in type *page.Pager
Some more quirks:
- It can handle a few of the pages just fine (let’s say half) but when I add tags to all I get an error.
- If I add the tags while the server is running it’s fine. But if I shut down the server and attempt to run or compile again I get the error.
Any help is appreciated.