Merge pull request #1039 from odoo-dev/8.0-fix-sitemap-chm
[FIX] website: error for rendering of the sitemap template. qweb can't render the xmlns attribute.
This commit is contained in:
commit
caa534e503
|
@ -696,13 +696,13 @@ Sitemap: <t t-esc="url_root"/>sitemap.xml
|
|||
</template>
|
||||
|
||||
<template id="sitemap_xml"><?xml version="1.0" encoding="UTF-8"?>
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||
<urlset t-attf-xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||
<t t-raw="content"/>
|
||||
</urlset>
|
||||
</template>
|
||||
|
||||
<template id="sitemap_index_xml"><?xml version="1.0" encoding="UTF-8"?>
|
||||
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||
<sitemapindex t-attf-xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||
<sitemap t-foreach="pages" t-as="page">
|
||||
<loc><t t-esc="url_root"/>sitemap-<t t-esc="page"/>.xml</loc>
|
||||
</sitemap>
|
||||
|
|
Loading…
Reference in New Issue