New issue
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
Blocks in config #387
Comments
There are two ways we generally can do this. Via TemplateData
Then inside your layout:
Via Populate Collections Event
Btw, would be great if you could catalog this on our stackoverflow forum as that is a better medium for questions. We generally just have the github issue tracker for bug reports and dev tasks related to milestones etc :) Let me know if there is anything I can do to make that more clear. Cheers! Also let me know if the above snippets work :) |
That did the trick. I will add it to stackoverflow. Thanks! |
Is it @Getblock() or @docpad.getBlock() ? Also is it possible to add strings to block on per-page basis? When I call |
Sorry, @balupton actually answered this already: #328 (comment) |
Provide a way to set block content from the configuration file(s).
It would be good to be able to add styles or scripts into the configuration that are merged into their respective blocks.
The text was updated successfully, but these errors were encountered: