Search code examples
jekyll

Adding links to jekyll csv tabulation


I am using the jekyll csv tutorial here. I am not a ruby or jekyll expert and am using it to build out a github pages site.

Is there a way I can add a 4th column with links so that it is parsed correctly. Simply adding something like the below does not work. And yes, I want to link two files there.

1. [Link Title 1](/mydatafolder/file1.html) <br> 2. [Link Title 2](/mydatafolder/file2.html)


Solution

  • You can {% capture %} the input and markdownify it:

    {% capture input %}
    1. [Link Title 1](/mydatafolder/file1.html)  
    2. [Link Title 2](/mydatafolder/file2.html)
    {% endcapture %}
    {{ input | markdownify }}