benui
benui

Reputation: 6808

Using YAML and Images from a single directory in Jekyll

I have a Jekyll-based and Github-pages-hosted site. I also have a Git Submodule that contains both YAML files and images. I would like to use it within my GitHub pages Jekyll project but I’m not sure how.

Here's example directory structure:

/assets/
/_data/
/MyGitSubmodule/yaml/
/MyGitSubmodule/images/

I’m used to putting YAML files in _data and images in /assets/. Is there a way to configure Jekyll also parse YAML files in another directory? Or copy static files from somewhere in _data during the build step? Or set up symlinks? That work with GitHub Pages?

I've tried:

Upvotes: 0

Views: 314

Answers (1)

benui
benui

Reputation: 6808

Eh in the end I solved this by putting my data_dir inside /assets/ and by by using the exclude setting in config.yml to stop it from serving some of the yml files

Upvotes: 1

Related Questions