Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regarding the use of github pages #5

Closed
dummifiedme opened this issue Jan 15, 2021 · 2 comments
Closed

Regarding the use of github pages #5

dummifiedme opened this issue Jan 15, 2021 · 2 comments

Comments

@dummifiedme
Copy link

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
Copy link
Owner

Maxence-L commented Jan 18, 2021

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 :

  • Once you have forked the repo and gave it the name username.github.io, go to _includes/content.html and replace {%- include toc.html -%} by {% include toc.html html=content %}
  • Remove the 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 :

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
Copy link

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!

erdiari added a commit to erdiari/website that referenced this issue Jun 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants