Skip to content
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

Plugin configuration for the whole site not working #12

Open
daza1 opened this issue Apr 26, 2017 · 1 comment
Open

Plugin configuration for the whole site not working #12

daza1 opened this issue Apr 26, 2017 · 1 comment
Labels

Comments

@daza1
Copy link

daza1 commented Apr 26, 2017

Changed the docpad.coffee file to configure for the whole site but no changes made.
Works for each document when specify in metadata, but not with plugin config in docpad.coffee.
Any suggestions?
eg

    plugins:
      sitemap:
        cachetime: 600000
        changefreq: 'monthly'
        priority: 1.0
        filePath: 'sitemap.xml'
@daza1
Copy link
Author

daza1 commented Apr 27, 2017

Finally found the answer.
If I nest the plugin config under an environment it will work.

environments:
  static:
    plugins:
      sitemap:
        cachetime: 600000
        changefreq: 'monthly'
        priority: 1.0
        filePath: 'sitemap.xml'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants