So each talk page would have multiple layouts, using the same content.
Is this possible without doing copies of a-talk/index.md => a-talk/fancy-display.md with taxonomy modified (which I would have to do for each talk)? Is there a way to easily define that everything in content/talks/ should have multiple URLs with different layouts?
There are at least a couple of ways to do this. Here’s one that’s somewhat easy to wrap your head around…
git clone --single-branch -b hugo-forum-topic-37238 https://github.com/jmooring/hugo-testing hugo-forum-topic-37238
cd hugo-forum-topic-37238
hugo server
structure
content
├── talks/
│ ├── talk-1/
│ │ ├── fancy.md
│ │ └── _index.md <-- this has the content
│ └── talk-2/
│ ├── fancy.md
│ └── _index.md <-- this has the content
└── _index.md
Thanks @jmooring for an inspirational answer – and in addition to that, templating your forum solutions with Github examples, it’s genius!
The solution seems to have an unquestionable “Hugo-way” about it, so I can guess it doesn’t get much better. It has the slight drawback that I have to create empty stubs for every instance of /talks/<some-talk>/fancy/. I think that I can live with that, but I was hoping that Hugo would have a way of populating several URLs with different templates of the same content.
I see now that what I am talking about would be some kind of non-existing new Template Views feature.