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 Exception: undefined method `[]' for nil:NilClass #14

Open
icarosadero opened this issue Mar 3, 2024 · 0 comments
Open

Liquid Exception: undefined method `[]' for nil:NilClass #14

icarosadero opened this issue Mar 3, 2024 · 0 comments

Comments

@icarosadero
Copy link

I installed the version 0.2.0 of jekyll-figure and got this error while trying to serve the site locally:

 Liquid Exception: undefined method `[]' for nil:NilClass in /home/<USER>/Documents/notes/_posts/2024-03-02-ecg.md
/mnt/secondary/cache/bundle/ruby/3.0.0/gems/jekyll-figure-0.2.0/lib/utils.rb:42:in `print_reference': undefined method `[]' for nil:NilClass (NoMethodError)

I have these plugins in my config.yml:

plugins:
  - jekyll-mermaid
  - jekyll-feed
  - jekyll/scholar
  - jekyll-figure

On the blog post that it references, I am trying to add figures like this:

{% figure caption:"Theoretical Schematic of an ECG circuit." label:"fig_schematic "%}
![Theoretical Schematic of the ECG circuit.]({{ site.baseurl }}/assets/images/2024/2024-03-02-ecg/ecg/ecg_simple.svg){: width="80%" }
{% endfigure %}

And call them with figref: {% figref fig_schematic %}

Any ideas how to fix this?

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

1 participant