Reputation: 7734
I have one page - hello.html
. For this page i have two languages which are defined in a config file. Also i have two different output directories configuration, different the original file name - en/
and pl/
. Now, i can generate one lang by dedicated config, after this i can do this for second one.
My question is how to keep en/
directory when i'm generating pl/
one and reverse, how to prevent removing them form public
output directory?
Using keep_files
jekyll config feature is not working because output directory/file name is different then original.
Hope that this is clear enough.
Upvotes: 0
Views: 135
Reputation: 2871
If you don't mind having two config files, exclude the en
files in your pl
config, and vice versa. For example, in your pl
_config.yml:
exclude: ["en"]
In your en
_config.yml:
exclude: ["pl"]
From https://jekyllrb.com/docs/configuration/:
Exclude
Exclude directories and/or files from the conversion. These exclusions are relative to the site's source directory and cannot be outside the source directory.
exclude: [DIR, FILE, ...]
Upvotes: 2