How to reuse page bundles in the case of transaltions by folder?

Structure as follows.

$ tree content
├── en
│   └── foo
│       ├── featured.jpg
│       └── index.md
└── zh
    └── foo
        └── index.md

But I couldn’t access the featured.jpg in zh/foo/index.md.

{{ range .Resources.ByType "image" }}
{{ printf "%v" .Name }}
{{ end }}

Which step am I doing wrong or missing?

Works fine for me.

git clone --single-branch -b hugo-forum-topic-42440 https://github.com/jmooring/hugo-testing hugo-forum-topic-42440
cd hugo-forum-topic-42440
hugo server
1 Like

Thank you so much. Just realized I was using content not contentDir after reading your config file.

Sorry about the noise.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.