title: Jekyll: How to use for loop to generate table row within the same table inside markdown
body: <p>I am trying to generate a table, based on the posts that I have. Now, the challenge here is that this is inside a markdown file, so for each row that I generate, liquid seems to generate a new table for each generated row. Is there a way to fit all rows inside one single table?</p>
  
  <p>Here is my code:</p>
  
  <pre><code>|Title  |Link  |
  |---|---|
  {% for my_post in site.posts %}
    {% if my_post.title %}
  |{{ my_post.title }}  |[Click Here]({{ my_post.url }})  |
    {% endif %}
  {% endfor %}
  </code></pre>
  
  <p>The generated output looks like this
  <a href="https://i.stack.imgur.com/xxHP1.png" rel="noreferrer"><img src="https://i.stack.imgur.com/xxHP1.png" alt="enter image description here"></a></p>
  
  <p>As you can see, the outcome is actually a messed-up table header row + two separate tables. Can I really generate rows and fit them all inside one table? or am I better off switching to html code?</p>