This is the source code for my website manid2.github.io:
hugo server
# serve drafts and future content
hugo server --buildDrafts --buildFuturepip install weasyprint
weasyprint {url} out.pdfAdd replace remote theme path with local path in Hugo modules.
$ tail go.mod
replace github.com/manid2/hugo-xterm => ../hugo-xterm