Skip to content

Allow data files in themes #6684

@yatil

Description

@yatil
  • This is a feature request.

My Reproduction Steps

  1. Add a file to a _data directory in my theme.
  2. Reference that theme from my Jekyll instance.
  3. Build the Jekyll instance.
  4. See that the data from the theme has not made it into the actual project.

The Output I Wanted

Have Jekyll use the _data files in my theme as if they were present in the Jekyll instance.

Reasoning

Sometimes you want to be able to re-use specific data with your theme in different projects, for example, authors or translation files. Using data files is an easy way to do so. Alternatively, I would be happy if we had separate data files for themes (using a themedata instead of a data variable).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions