-
Notifications
You must be signed in to change notification settings - Fork 11.4k
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
Liquid Exception: Liquid syntax error (line 42): Unknown tag 'toc' in /_layouts/post.html #1398
Comments
I have the same issue :/ |
I am experiencing it as well. |
@ZahraBenslimane, I was able to replicate what you did, thanks. There is one caveat, though. It was possible only after running the So you must first run the And later on, you'll see the I don't know much about the different actions used here, but there's a link between the two pipelines... maybe a build cache @rodrigor ??? |
@edwinabot, could you please explain what do you mean by deploy pipeline? I could not find such a workflow. |
@gubazoltan he meant the |
I am facing the same issue, has anyone found a solution to this ? @edwinabot mentioned about running 'deploy pipeline' and @george-gca referenced to the deploy action page script, but it is just a script and it is already present as it is in my repo as well. Has anyone resolved this ? or could someone clarify what needs to be done in simple steps, am not able to deploy my site. |
Does the error occur when running locally? Tomorrow I will try to replicate the error, or at least understand it better. |
I also ran into this error but was able to get my website deployed by switching my Build and Deployment source from "Deploy from a branch" to "GitHub Actions," and then performing the configuration for Jekyll (there should be a button that pops up below once you switch to GitHub Actions that will create the jekyll.yml for you). |
I managed to get around this problem without changing anything in the GemFile (as far as I remember). |
@tjvitchutripop your method didn't work for me. The build just failed. |
@george-gca No, it works fine on local. I get this error when I try to deploy it on server. |
@rishikeshF Sorry, probably I misinterpreted the name and this is why you didn't find the action I quoted. I am not sure which one is that I am actually using but on this link you can find my workflow file that I am using to build my website. I believe that if you put this file into your workflow folder then it will also show up in the Actions option of the repository. I hope it works. |
@rishikeshF You can simply add jekyll.yml from "your repository" Setting > Pages > Build and deployment Source > Github Actions > Jekyll configure |
The gh-pages branch solution is documented here, under the |
I had the same error and switched to the gh-page branch and now the page looks like this: how can i get the template format? |
This is probably due to your browser history session. Press Shift + F5 on Chrome or Ctrl + F5 on Firefox to reload the page ignoring cached content, clean your browser history, or simply try it in a private session. PR #1478 is going to address this issue as soon as it is finished, to force reload of styles after changes. Here is looking fine: |
@george-gca Yes, it looks good now. I changed Build and deployment in source to Github Actions and it worked. Of course add the jekyll.yml |
Switch from deployment to branch to GH Actions according to tips (alshedivat/al-folio#1398).
Thanks a lot |
I have a .md file, and had a complaint for some shell expression in ``` block, " The .md file contains shell expression,
Might not be the same issue? |
This is a completely different issue. |
Thanks @george-gca! I will file another ticket. |
I have the same error after following the setup instructions strictly but @ZahraBenslimane method did not work. When I try to set gh-pages as the deploy source branch it says the folder is invalid and reverts back to deploying from main branch. |
I see you created a |
@george-gca sorry forgot to mention I only created that after the original method didn't work because it was suggested in another comment. I've deleted it and the same problem persists, I cannot select gh-pages as the deploy source branch. |
Have you made step 2 of our recommended approach?
What other changes have you made to your repo besides the ones mentioned in the recommended approach? These should be the only ones needed. |
Yes those steps were made already and no other changes to the repo were made. The deploy branch save button disappeared for awhile but after going through and reselecting all the settings and choosing another branch first then going back to selecting gh-pages it seems to be working now. |
Maybe it was a matter of waiting the build action to finish. |
|
Note that this issue is already closed. For this check our FAQ. |
@george-gca I am getting the same error. I followed all the steps mentioned to a t, didn't change anything. My code is still not able to fetch the stylesheet |
Acknowledge the following
Describe the bug
the theme doesn't build into GitHub pages.
The error:
Liquid Exception: Liquid syntax error (line 42): Unknown tag 'toc' in /_layouts/post.html
Screenshots
Additional context
The text was updated successfully, but these errors were encountered: