wangchucheng / hugo-eureka

Eureka is a feature-rich and highly customizable Hugo theme.
https://www.wangchucheng.com/en/docs/hugo-eureka/
Apache License 2.0
926 stars 193 forks source link

docs don't work in multilingual mode #204

Closed romankurnovskii closed 2 years ago

romankurnovskii commented 2 years ago

To Reproduce

  1. turn o multilingual mode in languages.yaml
  2. add 2nd language post in docs
ERROR 2022/06/30 07:35:49 render of "page" failed: "/Users/user/Desktop/del/hugo-eureka/layouts/docs/single.html:2:3": execute of template failed: template: docs/single.html:2:3: executing "main" at <partial "components/doc-layout" .>: error calling partial: "/Users/user/Desktop/del/hugo-eureka/layouts/partials/components/doc-layout.html:56:55": execute of template failed: template: partials/components/doc-layout.html:56:55: executing "doc-sidebar" at <.context.Parent.Layout>: nil pointer evaluating page.Page.Layout
Error: Error building site: failed to render pages: render of "section" failed: "/Users/user/Desktop/del/hugo-eureka/layouts/docs/list.html:2:3": execute of template failed: template: docs/list.html:2:3: executing "main" at <partial "components/doc-layout" .>: error calling partial: "/Users/user/Desktop/del/hugo-eureka/layouts/partials/components/doc-layout.html:56:55": execute of template failed: template: partials/components/doc-layout.html:56:55: executing "doc-sidebar" at <.context.Parent.Layout>: nil pointer evaluating page.Page.Layout

for post works

wangchucheng commented 2 years ago

Please follow the docs or refer to examples in exampleSite folder and it will work.