mmistakes / minimal-mistakes

:triangular_ruler: Jekyll theme for building a personal site, blog, project documentation, or portfolio.
https://mmistakes.github.io/minimal-mistakes/
MIT License
12.45k stars 25.66k forks source link

Tabulate CSV Data #5027

Closed diegobiavati closed 1 week ago

diegobiavati commented 1 week ago

Theme version and system environment

What happened?

I'm trying to generate an article based on a CVS file, following this tutorial https://jekyllrb.com/tutorials/csv-to-table/, when I have a table in markdown and then load the script, the error doesn't happen, but the information is doubled.

When I leave the script just to generate the spreadsheet, I receive the following error:

  Liquid Exception: Liquid syntax error (/builds/diegobiavati/blog/.gem/ruby/3.3.0/gems/minimal-mistakes-jekyll-4.26.2/_includes/page__related.html line 9): 'for' tag was never closed included in /builds/diegobiavati/blog/.gem/ruby/3.3.0/gems/minimal-mistakes-jekyll-4.26.2/_layouts/single.html
                    ------------------------------------------------
      Jekyll 4.3.4   Please append `--trace` to the `build` command 
                     for any additional information or backtrace. 
                    ------------------------------------------------

https://gitlab.com/diegobiavati/blog/-/jobs/8296173763

Expected behavior

I would like to generate a spreadsheet dynamically whenever I load the CVS file with the updates.

Steps to reproduce the behavior

Not

Other

No response

iBug commented 1 week ago

Problem's with your own code:

https://gitlab.com/diegobiavati/blog/-/blob/702d6d2785532e43d917aa059d0011bb1a1e8b0f/_posts/2024-10-18-recodom.md?plain=1#L28

diegobiavati commented 1 week ago

@iBug the error still persists, so I still think the error is in the code here.

Here is the application of your fix.

https://gitlab.com/diegobiavati/blog/-/commit/0647cc5a8f0e9d1fb9e8d293f28277334611e3b0

Interestingly, if I leave the table before the code, I don't get the error, but everything is duplicated.

https://gitlab.com/diegobiavati/blog/-/blob/3518e3469a89afa2d32fbfce8263b5d27a3af021/_posts/2024-10-18-recodom.md

iBug commented 1 week ago

You did not fix anything. The superfluous {% endfor %} is still there. Get rid of it and you should be fine.