TylerDPerez
TylerDPerez

Reputation: 3

Jekyll Post.Url not working

New to Jekyll. I'm putting together a list view of post categories(review).. The loop works fine, spits out the image, post etc.. but when I try to add the link {{ p.url }} it does not work.. Suggestions?

{% for reviews in site.categories.review %}
    <tr>
      <th>{{reviews.title}}</th>
      <th></th>
    </tr>
      <td style="width: 33%;"><img style="width: 200px;" src="{{ site.baseurl }}/images/posts/{{reviews.banner_image}}"></td>
      <td><strong>{{reviews.category}}</strong>
          <ul>
            <a href="{{ post_url }}"><li>Key Point #1</li></a>
            <li>Key Point #1</li>
            <li>Key Point #1</li>
            <li>Key Point #1</li>
            <li>{{ reviews.tags }}</li>
          </ul>
          <div class="clear"><input type="submit" value="Learn More..." name="Learn More..." class="button"></div>
          </td>
{% endfor %}
</table>

Upvotes: 0

Views: 349

Answers (2)

TylerDPerez
TylerDPerez

Reputation: 3

Instead of : {{ post_url }} David Recommended: {{ reviews.url }}

It worked.

Upvotes: 0

David Jacquel
David Jacquel

Reputation: 52829

Try to use {{ reviews.url }}.

Upvotes: 1

Related Questions