These are chat archives for jescalan/roots

16th
Oct 2016
CS-LP
@CS-LP
Oct 16 2016 15:58
@lolmos I did a small write up and put it up here https://github.com/CS-LP/roots_demo
lolmos
@lolmos
Oct 16 2016 16:11
Thanks @CS-LP !
CS-LP
@CS-LP
Oct 16 2016 18:41
@lolmos XML Sitemaps - Don't think this is the recommended way but I use records and config. Make a file and name it sitemap.xml.jade
doctype xml
urlset(xmlns="http://www.sitemaps.org/schemas/sitemap/0.9")
    - var website_root = 'https://'+config.current_site
    //- Home page
    url
        loc= website_root
        lastmod= config.date_today
        changefreq weekly
        priority= 0.8

    //- Categories
    each category in records['db']['categories_info']
        url
            loc !{website_root}/!{category.categories_filename}
            lastmod= config.date_today
            changefreq weekly
            priority= 0.6

    //- Products
    each product in records['db']['products_info']
        url
            loc !{website_root}/!{product.products_filename}
            lastmod= config.date_today
            changefreq weekly
            priority= 1.0