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

github-pages 223 | Error: Liquid syntax error : Unknown tag 'cite' #337

Open
ksheersaagr opened this issue Jan 6, 2022 · 4 comments
Open

Comments

@ksheersaagr
Copy link

ksheersaagr commented Jan 6, 2022

Hi, I'm getting this error -> " github-pages 223 | Error: Liquid syntax error (line 78): Unknown tag 'cite' " while deploying. Locally, the citations generate perfectly, I don't understand why it's failing while deploying. I've tried methods mentioned in the issues -> #142 #162 and #194 respectively but had no luck. If you could guide me towards anything that helps that will great. Thanks
liquid syntax cite

@ksheersaagr ksheersaagr changed the title Github pages deployment status: failure github-pages 223 | Error: Liquid syntax error : Unknown tag 'cite' Jan 8, 2022
@ksheersaagr
Copy link
Author

Update: I've found out why it's happening - "GitHub pages will mistake certain characters, specifically curly braces, as Jekyll objects, tags, etc. causing your page build to fail. The solution is to create an empty file .nojekyll in your root folder."
Reference: https://stackoverflow.com/questions/40176947/jekyll-page-build-failure
But if I add the .nojekyll file to the root directory, it corrupts the whole website lol. Need to find out a specific solution for this!

@inukshuk
Copy link
Owner

inukshuk commented Jan 9, 2022

I think you're trying to push the page straight to GitHub pages? This can't work, because the jekyll-scholar Gem is not installed on GitHub. To serve the page on GitHub pages you will have to push the compiled page instead. There are multiple ways to do this. Basically, build locally and push the compiled site; keep sources in a branch and push only the compiled site to the main branch, etc.; you can automate this using GitHub Actions to end up with a similar setup as regular GitHub pages. This isn't specific to jekyll-scholar, it's the same for every GitHub page that wants to use jekyll plugins beyond the default set that's pre-installed on GitHub.

@Deep0Thinking
Copy link

Deep0Thinking commented Feb 27, 2023

As @inukshuk mentioned, here is the list of plugins that Github Pages site supports. "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." from About GitHub Pages and Jekyll.

And here is a solution to a similar question that may help: Use jekyll-toc plugin on Github Pages posted by David Dong.

@GiveMeAnApple99
Copy link

Update: I've found out why it's happening - "GitHub pages will mistake certain characters, specifically curly braces, as Jekyll objects, tags, etc. causing your page build to fail. The solution is to create an empty file .nojekyll in your root folder." Reference: https://stackoverflow.com/questions/40176947/jekyll-page-build-failure But if I add the .nojekyll file to the root directory, it corrupts the whole website lol. Need to find out a specific solution for this!

Hi, I wonder if you have solved this problem?It's confusing me now😭

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