Skip to content

Add support for multiple configurations - #86

Open
jasuarez wants to merge 1 commit into
jekyll:masterfrom
jasuarez:multiple-configurations
Open

Add support for multiple configurations#86
jasuarez wants to merge 1 commit into
jekyll:masterfrom
jasuarez:multiple-configurations

Conversation

@jasuarez

@jasuarez jasuarez commented Jan 6, 2017

Copy link
Copy Markdown

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

pathawks commented Jan 6, 2017

Copy link
Copy Markdown
Member

Seems like this might better fit upstream in Jekyll itself.

@jasuarez

jasuarez commented Jan 6, 2017

Copy link
Copy Markdown
Author

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

pathawks commented Jan 6, 2017

Copy link
Copy Markdown
Member

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

@jasuarez

jasuarez commented Jan 6, 2017

Copy link
Copy Markdown
Author

@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

pathawks commented Jan 6, 2017

Copy link
Copy Markdown
Member

@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

DirtyF commented Jan 6, 2017

Copy link
Copy Markdown
Member

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