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

Liquid syntax error while building website in github #304

Closed
1 task done
Prasad-adhi opened this issue Jan 31, 2025 · 3 comments
Closed
1 task done

Liquid syntax error while building website in github #304

Prasad-adhi opened this issue Jan 31, 2025 · 3 comments

Comments

@Prasad-adhi
Copy link

Checks

Link to your website repo

https://github.com/Prasad-adhi/CVL-website

Version of Lab Website Template you are using

1.3.3

Description

I forked the repo into my github, added a few members.md file and pushed it to github. I tried to build and deploy the website however I am getting the following website.

  -- Logging at level: debug Configuration file: /github/workspace/./_config.yaml GitHub Pages: github-pages v232 GitHub Pages: jekyll v3.10.0 Requiring: jekyll-sitemap Requiring: jekyll-redirect-from Requiring: jekyll-feed Requiring: jekyll-coffeescript Requiring: jekyll-commonmark-ghpages Requiring: jekyll-gist Requiring: jekyll-github-metadata Requiring: jekyll-paginate Requiring: jekyll-relative-links Requiring: jekyll-optional-front-matter Requiring: jekyll-readme-index Requiring: jekyll-default-layout Requiring: jekyll-titles-from-headings GitHub Metadata: Initializing... Source: /github/workspace/. Destination: /github/workspace/./_site Incremental build: disabled. Enable with --incremental Generating... EntryFilter: excluded /CITATION.cff EntryFilter: excluded /LICENSE.md EntryFilter: excluded /README.md Reading: _posts/2019-01-07-example-post-1.md Reading: _posts/2021-09-30-example-post-2.md Reading: _posts/2023-02-23-example-post-3.md Reading: _members/Ashish-Singh.md Reading: _members/Chaung-Gan.md Reading: _members/Dave-Dirnfeld.md Reading: _members/Deep-Chakraborty.md Reading: _members/Erik-Learned.md Reading: _members/Fabien-Delattre.md Reading: _members/Grant-vhorn.md Reading: _members/Max-Hamilton.md Reading: _members/Mustafa-Chasmai.md Reading: _members/Oindrilla-saha.md Reading: _members/Prasad-Adhiyaman.md Reading: _members/Rangel-Daroya.md Reading: _members/Subranshu-Maji.md Reading: _members/Zhipeng-Tang.md Reading: _members/ZiTian·Chen.md Generating: JekyllRedirectFrom::Generator finished in 0.012830337 seconds. Generating: JekyllOptionalFrontMatter::Generator finished in 0.000116738 seconds. Generating: JekyllReadmeIndex::Generator finished in 4.4362e-05 seconds. Generating: Jekyll::JekyllSitemap finished in 0.001695869 seconds. Jekyll Feed: Generating feed for posts Generating: JekyllFeed::Generator finished in 0.000885014 seconds. Generating: Jekyll::Paginate::Pagination finished in 5.851e-06 seconds. GitHub Metadata: Generating for Prasad-adhi/CVL-website GitHub Metadata: Calling @client.pages("Prasad-adhi/CVL-website", {}) Generating: JekyllRelativeLinks::Generator finished in 0.267824238 seconds. Generating: JekyllDefaultLayout::Generator finished in 0.000264154 seconds. Requiring: kramdown-parser-gfm Generating: JekyllTitlesFromHeadings::Generator finished in 0.007880417 seconds. Rendering: _posts/2019-01-07-example-post-1.md Pre-Render Hooks: _posts/2019-01-07-example-post-1.md Rendering Markup: _posts/2019-01-07-example-post-1.md Rendering Layout: _posts/2019-01-07-example-post-1.md Layout source: site github-pages 232 \| Error: Liquid syntax error (/github/workspace/_includes/head.html line 22): Expected end_of_string but found id included Show less  


The error states that the line 22 in head.html has an error however head.html only has 7 to 8 lines. I also tried to deploy the original repo without any changes and I still get the exact same error

@vincerubinetti
Copy link
Collaborator

vincerubinetti commented Jan 31, 2025

Will look into this ASAP. I believe this may be related to #305

Please leave that repo up for now so I can look at the workflow logs. But if you want to get a site working immediately, I'd actually for now recommend cloning an older version, saying v1.2.*. I think v1.3.* might've introduced a regression.

@Prasad-adhi
Copy link
Author

Prasad-adhi commented Jan 31, 2025

Thank you so much for getting back to me. I reverted to the commit with version 1.2 and made it a new branch and tried to deploy it from there, However I got the exact error.

Error: Logging at level: debug Configuration file: /github/workspace/./_config.yaml GitHub Pages: github-pages v232 GitHub Pages: jekyll v3.10.0 Requiring: jekyll-sitemap Requiring: jekyll-redirect-from Requiring: jekyll-feed Requiring: jekyll-coffeescript Requiring: jekyll-commonmark-ghpages Requiring: jekyll-gist Requiring: jekyll-github-metadata Requiring: jekyll-paginate Requiring: jekyll-relative-links Requiring: jekyll-optional-front-matter Requiring: jekyll-readme-index Requiring: jekyll-default-layout Requiring: jekyll-titles-from-headings GitHub Metadata: Initializing... Source: /github/workspace/. Destination: /github/workspace/./_site Incremental build: disabled. Enable with --incremental Generating... EntryFilter: excluded /CITATION.cff EntryFilter: excluded /LICENSE.md EntryFilter: excluded /README.md Reading: _posts/2019-01-07-example-post-1.md Reading: _posts/2021-09-30-example-post-2.md Reading: _posts/2023-02-23-example-post-3.md Reading: _members/jane-smith.md Reading: _members/john-doe.md Reading: _members/sarah-johnson.md Generating: JekyllRedirectFrom::Generator finished in 0.011700611 seconds. Generating: JekyllOptionalFrontMatter::Generator finished in 0.000102381 seconds. Generating: JekyllReadmeIndex::Generator finished in 4.0946e-05 seconds. Generating: Jekyll::JekyllSitemap finished in 0.000445693 seconds. Jekyll Feed: Generating feed for posts Generating: JekyllFeed::Generator finished in 0.00060954 seconds. Generating: Jekyll::Paginate::Pagination finished in 4.829e-06 seconds. GitHub Metadata: Generating for Prasad-adhi/CVL-website-v2 GitHub Metadata: Calling @client.pages("Prasad-adhi/CVL-website-v2", {}) Generating: JekyllRelativeLinks::Generator finished in 0.173018247 seconds. Generating: JekyllDefaultLayout::Generator finished in 0.000264674 seconds. Requiring: kramdown-parser-gfm Generating: JekyllTitlesFromHeadings::Generator finished in 0.007736791 seconds. Rendering: _posts/2019-01-07-example-post-1.md Pre-Render Hooks: _posts/2019-01-07-example-post-1.md Rendering Markup: _posts/2019-01-07-example-post-1.md Rendering Layout: _posts/2019-01-07-example-post-1.md Layout source: site github-pages 232 | Error: Liquid syntax error (/github/workspace/_includes/head.html line 22): Expected end_of_string but found id included

I am not sure if I trying to deploy it the right way. It would be great if you could let me know.

I made a new repo so that it doesnt hinder the first repo. https://github.com/Prasad-adhi/CVL-website-v2

@vincerubinetti
Copy link
Collaborator

vincerubinetti commented Jan 31, 2025

I was able to make a fresh personal copy of the template and it built fine.

The issue is because you haven't followed the "set up your site" steps:
https://greene-lab.gitbook.io/lab-website-template-docs/getting-started/set-up-your-site

Your first-time-setup workflow has not been run:
https://github.com/Prasad-adhi/CVL-website/actions/workflows/first-time-setup.yaml

Image

There should also be a gh-pages branch in your repo (created automatically by the first-time-setup workflow) and there is none. It seems you selected the main branch to deploy gh-pages from, but that isn't possible for many reasons.

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

2 participants