Duplicate sitemap temporarily

Long story, google search console has a bug and the original sitemap is not being read. I need to copy it to a new location
This commit is contained in:
Otto Winter 2019-02-14 17:07:35 +01:00
parent ccf568b760
commit 160a8b2760
No known key found for this signature in database
GPG Key ID: DB66C0BE6013F97E
1 changed files with 5 additions and 0 deletions

View File

@ -50,3 +50,8 @@ def create_sitemap(app, exception):
xml_declaration=True,
encoding='utf-8',
method="xml")
filename2 = app.outdir + "/sitemap2.xml"
ET.ElementTree(root).write(filename2,
xml_declaration=True,
encoding='utf-8',
method="xml")