Jens Schauder
Jens Schauder

Reputation: 81862

How to create multiple pages per post?

For my site some of the posts represent events. For these events I want two representations: the normal html version and an ics version.

How can I use jekyll to make a second version of the same post with a different layout?

I tried to specify multiple layouts in the front matter, but that does not seem to work

layout: post, ics

or

layout: [post, ics]

how would I do something like this?

Upvotes: 2

Views: 589

Answers (1)

Ruskin
Ruskin

Reputation: 6161

It seems this is not currently possible in vanilla Jekyll, but if you can use plugins, the multipost plugin found on this jekyll issue should do what you want.

Upvotes: 2

Related Questions