Skip to content

Commit e0a6b70

Browse files
committed
Add: ensure that new pages are also shown in the sitemap
New pages that had no links to any other page yet where not seen by the sitemap. After a restart they always were, but this fixes the time in between.
1 parent a5b4695 commit e0a6b70

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

truewiki/metadata.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,9 @@ def _analyze_page(page):
178178
wiki_page = WikiPage(page_name)
179179
wtp = wiki_page.prepare(body)
180180

181+
# Ensure the page now exists in our list of pages.
182+
PAGES[page]
183+
181184
# Index this page again.
182185
for callback in CALLBACKS:
183186
callback(wtp, wiki_page, page)

0 commit comments

Comments
 (0)