DEV Community

Discussion on: Generate a sitemap for your Eleventy website

Collapse
 
nsursock profile image
nsursock • Edited

Very interesting article. So easy to implement. But I have a problem: my sitemap and robots are in folders called "sitemap" and "robots" and the content is in a file called index.html. My eleventy config file has this :

return {
    dir: {
      input: 'src',
      output: 'dist',
    },
    htmlTemplateEngine: 'njk',
  }
Enter fullscreen mode Exit fullscreen mode

I liked working with html files for ease of use. I didn't know the power of nunjucks.
How can I solve this?

solved: the fences in the front matter, there should be 3

Collapse
 
loige profile image
Luciano Mammino • Edited

Thanks for reporting this. Apparently there's a rendering problem here on dev. In my code snippet there are actually 3 dashes but then it renders to 6... I'll try to see if i can fix this :/

EDIT: editing and saving the article seems to have fixed this issue :O