We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
I have a lot of categories then I want to generate collections with for loop.
Below code generate collections but it's empty.
I think @getCollection can not executed out of docpadConfig.
@getCollection
docpadConfig
Anyone tried to generate defined collections from array in docpad.coffee?
docpad.coffee
categories = { ... 'review': ['restaurant', ,'cafe', 'etc'], 'IT': ['web','db','sccm','testing','blog','browser','linux','windows','3D','Java','mobile','tip','app','etc'], } docpadConfig = { ... } for main of categories docpadConfig.collections[main] = -> @getCollection("html").findAllLive relativeOutDirPath: main , [title: 1]
Want to back this issue? Place a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered:
That for loop should probably be in an event somewhere... as the collections don't exist at that point
Sorry, something went wrong.
No branches or pull requests
Hello,
I have a lot of categories then I want to generate collections with for loop.
Below code generate collections but it's empty.
I think
@getCollection
can not executed out ofdocpadConfig
.Anyone tried to generate defined collections from array in
docpad.coffee
?Want to back this issue? Place a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: