Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for multiple configurations #86

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jasuarez
Copy link

@jasuarez jasuarez commented Jan 6, 2017

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.

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/"

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/"
@pathawks
Copy link
Member

pathawks commented Jan 6, 2017

Seems like this might better fit upstream in Jekyll itself.

@jasuarez
Copy link
Author

jasuarez commented Jan 6, 2017

It seems the failing check has nothing to do with this change. It is due using ruby 1.9:

Gem::InstallError: public_suffix requires Ruby version >= 2.0.

@pathawks
Copy link
Member

pathawks commented Jan 6, 2017

@jasuarez You're right. We should probably drop support for Ruby 1.9 👍

@jasuarez
Copy link
Author

jasuarez commented Jan 6, 2017

@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?

@pathawks
Copy link
Member

pathawks commented Jan 6, 2017

@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 👍

@DirtyF
Copy link
Member

DirtyF commented Jan 6, 2017

related to jekyll/jekyll#4742

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants