Personal website including blog, portfolio, and notes, based on the Jekyll theme minimal-mistakes.
bundle install
bundle exec jekyll serveThe site will be available at http://localhost:4000.
-
Create a new branch:
git checkout -b new-post -
Write the post as a Jupyter notebook (
.ipynb) in_posts_drafts/. Prefix the filename with the date:YYYY-MM-DD-post-title.ipynb. -
Add YAML front matter in the first notebook cell:
--- title: "Your Post Title" mathjax: true toc: true toc_sticky: true categories: [data science, statistics] ---
-
Run the conversion script to generate markdown and copy figures to
assets/:./_posts_drafts/nb2md_script.sh _posts_drafts/YYYY-MM-DD-post-title.ipynb
-
Open the generated markdown file in
_posts/and add---to the first line. -
Preview locally with
bundle exec jekyll serveand verify the post looks correct. -
Merge to main and push:
git checkout main && git merge new-post && git push