Getting back after a few days AFK, thanks for looking at this @hamelsmu, I think your second comment here was looking at a fresh pull that I had half-started to set up but then stopped. My freshly created blog repo today is here: https://github.com/morganmcg1/ntentional and is being served at www.ntentional.com
I think I have started to track down the issue;
I think there is an issue in how the
settings.ini file (in the root folder) is created when the blog is built locally when using a custom domain with no baseurl (i.e. wanting to serve the blog at www.ntentional.com and not www.ntentional.com/blog).
Direct upload on github.com works fine
If upload + commit a notebook to my
_notebooks folder directly on github’s website, the images renders as expected on the blog:
notebook file, corresponding blog post
However, if I am running the blog locally and add/modify a notebook, the same notebook will have an issue with the filepath to the image when I try and view the blog locally. The local notebook -> markdown process adds the incorrect baseurl to the file path
[2020-05-05 05:23:27] ERROR /ntentional/images/copied_from_nb/my_icons/fastai_logo.png not found.
The issue appears to be when the blog is built locally, the
baseurl in the
settings.ini file that is created in the ROOT folder is set to the repo name and NOT what is in
I think this is why the baseurl used in the local notebook->markdown process then gets set incorrectly as it then takes
settings.ini and not
When writing a blog post via a notebook locally should I make sure to only commit the files in
_notebooks and not the associated markdown files created in
Is this expected behaviour when using a custom url and building the blog locally?
I really appreciate the help on this, its can’t be easy being a one-person support team!