Add support for multiple configurations#86
Conversation
Allow using an array with multiple configurations in _config.yml.
This allow to generate different archives with different layouts for the
same type.
For instance, this example would generate two different archives in
different places:
jekyll-archives:
-
layout: archive-html
enabled:
- tags
permalinks:
tag: "/tag/:name/"
-
layout: archive-rss
enabled:
- tags
- categories
permalinks:
tag: "/feed/tag/:name/"
category: "/feed/category/:name/"
|
Seems like this might better fit upstream in Jekyll itself. |
|
It seems the failing check has nothing to do with this change. It is due using ruby 1.9: |
|
@jasuarez You're right. We should probably drop support for Ruby 1.9 👍 |
|
@pathawks Not sure what do you mean with "this might better fit upstream in Jekyll". Is jekyll-archives now deprecated and part of Jekyll core? |
|
@jasuarez Sorry. What I mean is that allowing multiple layouts for multiple outputs seems like it might be useful for more than just archive pages. Perhaps a post could be output as HTML and Amp. Allowing multiple layouts for multiple outputs might make more sense as a Jekyll feature that Jekyll Archives could then take advantage of. Either way, this would be really handy to have 👍 |
|
related to jekyll/jekyll#4742 |
Allow using an array with multiple configurations in
_config.yml.This allow to generate different archives with different layouts for the
same type.
For instance, this example would generate two different archives in
different places and formats, one in HTML and the other with RSS.