Skip to content

Commit

Permalink
Try including the xml tag
Browse files Browse the repository at this point in the history
  • Loading branch information
ddxv committed Dec 4, 2024
1 parent 53d6511 commit 1d6fab3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion backend/make_sitemap.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def create_main_sitemap(sitemaps: list[str], filename: str) -> None:

# Write to file, excluding the first line with the XML declaration
with pathlib.Path(SITEMAP_DIR / filename).open("w", encoding="utf-8") as f:
f.write("\n".join(pretty_xml.splitlines()[1:]))
f.write("\n".join(pretty_xml.splitlines()))


def create_paginated_sitemaps(
Expand Down
1 change: 1 addition & 0 deletions frontend/static/sitemap.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?xml version="1.0" ?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap>
<loc>https://appgoblin.info</loc>
Expand Down

0 comments on commit 1d6fab3

Please sign in to comment.