I have the following content:
post/
|
+->post-1/
| |
| +->index.en.md
| +->index.de.md
| +->header.jpeg
|
+->post-2/
|
+->index.en.md
+->index.de.md
+->header.jpeg
I can display the header image in the single page without problems with:
{{ with .Resources.GetMatch "header.jpeg" }}{{ . }}{{ end }}
Is it possible to access the resources (the header.jpeg
in my case) inside list.html
? I range over the pages and I can get the .Title
, .Content
and so on, but not the header.jpeg
:
{{range where .Site.RegularPages "Section" "post" }}
???
{{ end }}
I guess that’s not possible? How would you solve that? Thanks for your time!