I am thinking that they could all be driven from data files (since these aren’t ‘pages’, they are just lists. However, I am not sure where the resources would go…
It took me forever to figure out that for each ‘person’ to have an image, I would need to structure my content like this:
content/people/
├── Fred
│ ├── index.md
│ └── Fred.png
├── Geno
│ ├── Geno.jpg
│ └── index.md
├── _index.md
└── Tim
└── index.md
But this approach seems like overkill. We don’t need a page for every piece of content…
How could I associate a PDF file with each publication in a list, or an image with a person, without creating a directory structure?
One (potentially naive) approach: in content/people/_index.md you could add some custom front matter. Then loop through that front matter. Roughly something like:
Thanks for the suggestion!
With this approach there is only one sub-directory and all the images are right there within it.
I like the simplicity of the approach!
People also have a ‘association’ label [Faculty, Researcher, Alumi…], and the listing would need to be ordered by ‘association’. Do you think that I could extend your approach to meet that use case?