workon venv_notebooks
jupyter notebook notebooks
jupyter nbconvert --to html --template basic notebook.ipynb
-D
to include drafts
hugo server -D
hugo new posts/new-post.md
Insert the following in the content of your post (after the front matter)
{{< readfile file="notebooks/notebook.html" >}}
Don't forget to toggle draft
to false
in front matter to make post public
hugo
Hugo publishes the site to the docs
directory and Github is set up to serve the site
there. Once the docs
directory has been committed, pushing to Github will publish
the site.