1
0
Fork 0

Integrate pagefind search

This commit is contained in:
Tim Van Baak 2023-09-16 22:01:01 -07:00
parent 75a860a95a
commit 3cb659053c
3 changed files with 7 additions and 6 deletions

View File

@ -2,6 +2,10 @@
build:
./build.py
pagefind --site out/
clean:
test -e out && rm -rf out
watch:
while sleep 1; do find src/ build.py Makefile | entr -d make build; done

View File

@ -22,11 +22,6 @@ def main():
md = markdown.Markdown(extensions=["attr_list", "footnotes", "md_in_html", "meta"])
comment_md = markdown.Markdown()
# Clean the output directory
if out.exists():
print("Removing ", out)
shutil.rmtree(out)
# Load the template
template = bs4.BeautifulSoup(
(src / ".template.html").read_text(encoding="utf8"),

View File

@ -6,4 +6,6 @@ title: Home
=> [Projects I've worked on](./project/).
=> [About this site](./about/).
=> [About this site](./about/).
=> [Search this site](./search/).