bolt / Sitemap

Bolt Sitemap extension - create XML sitemaps for your Bolt website.
MIT License
19 stars 20 forks source link

How can i have custom the template? #13

Closed everyx closed 8 years ago

everyx commented 8 years ago

Hi, greate extension.

I want to do some custom in the twig template, so how can I do this without modify the original file in this extension?

GwendolenLynch commented 8 years ago

In your extension configuration, you just set the template: setting to a relative path/filename in your theme. The magic of Twig :smiley:

e.g. in my themes I create the directory extensions/sitemap and put my custom template in there as sitemap.twig, then in config:

template: extensions/sitemap/sitemap.twig
everyx commented 8 years ago

Great, and so many thanks :) :+1: