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

pages build and deployment failed: "Liquid syntax error (line 5): Unknown tag 'bibliography'" #529

Closed
3 tasks done
XinhuiLi opened this issue Jan 16, 2022 · 4 comments
Closed
3 tasks done
Labels

Comments

@XinhuiLi
Copy link

XinhuiLi commented Jan 16, 2022

Acknowledge the following

  • I carefully read and followed the Getting Started guide.
  • I read through FAQ and searched through the past issues, none of which addressed my issue.
  • The issue I am raising is a potential bug in al-folio and not just a usage question.
    [For usage questions, please post in the Discussions instead of raising an issue.]

Describe the bug
Same as #513, I keep getting this error in GitHub Actions pages build and deployment, though it works locally: https://github.com/XinhuiLi/xinhuili.github.io/runs/4829656563?check_suite_focus=true

Liquid Exception: Liquid syntax error (line 5): Unknown tag 'bibliography' in _pages/publications.md
/usr/local/bundle/gems/liquid-4.0.3/lib/liquid/block.rb:38:in `unknown_tag': Liquid syntax error (line 5): Unknown tag 'bibliography' (Liquid::SyntaxError)

github-pages 223 | Error:  Liquid syntax error (line 5): Unknown tag 'bibliography'

The error doesn't go away when I re-run the workflow.

_pages/publications.md is shown as below:

---
layout: page
permalink: /publications/
title: publications
description: 
years: [2021, 2020, 2019]
nav: true
---

<div class="publications">

{% for y in page.years %}
  <h2 class="year">{{y}}</h2>
  {% bibliography -f papers -q @*[year={{y}}]* %}
{% endfor %}

</div>

Expected behavior
The page can be built without errors.

System (please complete the following information):

  • OS: iOS
  • Browser (and its version): chrome
@XinhuiLi XinhuiLi added the bug label Jan 16, 2022
@sarsid
Copy link

sarsid commented Jan 17, 2022

Finally, in the Settings of your repository, in the Pages section, set the branch to gh-pages (NOT to master). For more details, see Configuring a publishing source for your GitHub Pages site.

This step (from automatic deployment instructions) fixed this exact error for me.

@XinhuiLi
Copy link
Author

That did the trick!! Thank you so much @sarsid

@vanshaj18
Copy link
Contributor

setting source to gh-pages also does the trick for the build error "Liquid Exception: Liquid syntax error (line 5): Unknown tag 'twitter' in /github/workspace/_posts/2020-09-28-twitter.md"

OS-ubuntu 20.04
browser- brave

@ewingard
Copy link

Hi, I'm also having this error now but I have my source set to deploy in github-pages?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants