Skip to content

Change output dir for Collections based on their i18n dir name? #1863

Answered by pdehaan
madsem asked this question in Q&A
Discussion options

You must be logged in to vote

OK, I think this might work…

I have the following file structure (where src/ are my input files, and www/ are my output files):

tree . -aI node_modules         
.
├── .eleventy.js
├── package-lock.json
├── package.json
├── src/
│   └── pages/
│       ├── de/
│       │   ├── one.md
│       │   └── three.md
│       └── en/
│           ├── en.11tydata.json
│           ├── one.md
│           ├── three.md
│           └── two.md
└── www/
    └── pages/
        ├── de/
        │   ├── one/
        │   │   └── index.html
        │   └── three/
        │       └── index.html
        ├── one/
        │   └── index.html
        ├── three/
        │   └── index.html
        └── two/
            └── i…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@pdehaan
Comment options

Answer selected by madsem
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants