danielfrg / pelican-jupyter

Pelican plugin for blogging with Jupyter/IPython Notebooks
Apache License 2.0
423 stars 105 forks source link

Finding ipynb-meta files fails if filename contains '.' #68

Closed luizirber closed 7 years ago

luizirber commented 7 years ago

File discovery will fail when .ipynb-meta files contains . in the name. I think the fix is to replace filename.split('.')[0] with os.path.splitext(filename)[0]

I was having issued when the file was named "04.09.09.post.ipynb", but it works after this fix.

danielfrg commented 7 years ago

Thanks!