razon
January 15, 2023, 5:34am
1
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
razon
January 15, 2023, 9:34am
3
Thank you so much. Just realized I was using content
not contentDir
after reading your config file.
Sorry about the noise.
system
Closed
January 17, 2023, 9:35am
4
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.