Closed dummifiedme closed 3 years ago
This is possible, with little changes, GitHub pages isn't compatible with the jekyll-toc module used.
You can use this one, which won't break Github pages :
https://github.com/allejo/jekyll-toc
Tell me if the following works for you :
username.github.io
, go to _includes/content.html
and replace {%- include toc.html -%}
by {% include toc.html html=content %}
toc.html
file and replace it with this one.Now, you can create your GitHub Page. If you need to set up a theme to start it, you can remove it in _config.yml
and replace it with theme: null
.
See :
I'll see if I can modify this plugin so that it has the same layout as the current one (which I like).
When using Pages but for a "Project page" (i.e. the url is "user.github.io/project") some of the links don't take in account the baseurl from _config.yml
, so they point to "user.github.io". For example in layout.html
, header.html
, feed.html
(also L27, L47 and L69) and content.html
.
I don't know if there's a reason for this, or if changing it would cause problems when publishing in Netlify or somewhere else, but adding {{ site.baseurl }}
in those cases worked for me.
Thanks for the amazing plugin!
Can't we use github pages instead of Netlify? I was just wondering if we really have to use Netlify. I am a noob in all of this, I just want to publish a part of my notes from Obsidian. :)