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

Is Github Pages not supported? #151

Open
Pathsis opened this issue Nov 26, 2021 · 3 comments
Open

Is Github Pages not supported? #151

Pathsis opened this issue Nov 26, 2021 · 3 comments

Comments

@Pathsis
Copy link

Pathsis commented Nov 26, 2021

Oddly, on Github Pages, it doesn't work. When I deployed Github Pages to Vercel simultaneously, it worked. Now, if you open the Github Pages page, there is no TOC, but if you open the Vercel page, there is TOC.

@chuangcaleb
Copy link

It's been a long while since, but hopefully this helps someone else too

"GitHub Pages cannot build sites using unsupported plugins. If you want to use unsupported plugins, generate your site locally and then push your site's static files to GitHub."

What I've done to use jekyll-toc is that I built locally and deployed on a separate branch with the _site directory as root, it's funky but works perfectly!

@osfanbuff63
Copy link

With GitHub Actions builds in Pages now, this works if you deploy using an actions workflow (e.g. the Jekyll template workflow).

@Deep0Thinking
Copy link

Deep0Thinking commented Feb 27, 2023

Here is a very simple solution: allejo/jekyll-toc

Another solution is through generating the site's static files and pushing them to Github: Use jekyll-toc plugin on Github Pages posted by David Dong.

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

4 participants