docpad / docpad-plugin-sitemap

Auto-generated sitemaps for DocPad
Other
10 stars 9 forks source link

Plugin configuration for the whole site not working #12

Open daza1 opened 7 years ago

daza1 commented 7 years ago

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 commented 7 years ago

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'