Fixing up some jekyll problems for jupyter
the jupyer jekyll plugin supposedly won’t work on github pages
https://briancaffey.github.io/2016/03/14/ipynb-with-jekyll.html
jupyter nbconvert –to markdown jekyll_test.ipynb
To get latex (including the $ tags) to work on the minima layout I added
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="/assets/main.css">
<link rel="alternate" type="application/rss+xml" title="Hey There Buddo!" href="/feed.xml">
<!-- Global site tag (gtag.js) - Google Analytics --> <script async src="https://www.googletagmanager.com/gtag/js?id=G-EBC4529QNG"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date());
gtag(‘config’, ‘G-EBC4529QNG’); </script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}
});
</script>
<script type="text/javascript" async
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
</head>
into an _includes/head.html
I added a pynb directory and added the following into my _config file? Not sure this was necessary.
defaults:
- scope:
path: "pynb"
values:
image: true
replace all
fermions_part_1_files
with
/pynb/fermions_part_1_files
in the markdown file.
could also add syntax highlighting but maybe this is good enough.