Maxence-L / notenote.link

A Jekyll digital garden template, optimized for integration with Obsidian. It aims to enhance discoverability and help you build a personal knowledge base that can scale with time.
https://notenote.link
MIT License
161 stars 90 forks source link

Regarding the use of github pages #5

Closed dummifiedme closed 3 years ago

dummifiedme commented 3 years ago

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. :)

Maxence-L commented 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 :

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 :

Screenshot

I'll see if I can modify this plugin so that it has the same layout as the current one (which I like).

mvallet91 commented 3 years ago

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!