Skip to content
Snippets Groups Projects
Commit f4cf62b5 authored by Henrik Askjer's avatar Henrik Askjer
Browse files

fix missing articles in sitemap

parent 3a9cc0c8
No related branches found
No related tags found
No related merge requests found
...@@ -40,7 +40,7 @@ for word, articles in words.items(): ...@@ -40,7 +40,7 @@ for word, articles in words.items():
for article in articles: for article in articles:
if article[0] not in seen_articles: if article[1] not in seen_articles:
out.write("\t<url>\n") out.write("\t<url>\n")
out.write(f"\t\t<loc>https://ordbokene.no/{article[0]}/{article[1]}</loc>\n") out.write(f"\t\t<loc>https://ordbokene.no/{article[0]}/{article[1]}</loc>\n")
out.write(f"\t\t<xhtml:link rel=\"alternative\" href=\"https://ordbokene.no/{article[0]}/{article[1]}/{urllib.parse.quote(word)}\"/>\n") out.write(f"\t\t<xhtml:link rel=\"alternative\" href=\"https://ordbokene.no/{article[0]}/{article[1]}/{urllib.parse.quote(word)}\"/>\n")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment