tilde.wiki is the tildeverse wiki now
This commit is contained in:
parent
ddaaaafa3f
commit
5ccc7418dc
|
@ -25,7 +25,7 @@ pages = os.listdir("/var/www/tilde.team/wiki/pages")
|
||||||
for page in pages:
|
for page in pages:
|
||||||
with open(os.path.join("/var/www/tilde.team/wiki/pages",page)) as f:
|
with open(os.path.join("/var/www/tilde.team/wiki/pages",page)) as f:
|
||||||
post = frontmatter.load(f)
|
post = frontmatter.load(f)
|
||||||
url = "https://tilde.wiki/"+os.path.splitext(page)[0]
|
url = "https://tilde.team/wiki/"+os.path.splitext(page)[0]
|
||||||
title = post["title"]
|
title = post["title"]
|
||||||
text = textify(post.content)
|
text = textify(post.content)
|
||||||
writer.add_document(title=title, text=text, url=url)
|
writer.add_document(title=title, text=text, url=url)
|
||||||
|
|
Loading…
Reference in New Issue