2017-04-07 63 views
0

Jekyll新手。我正在放置一個列表視圖的職位類別(審查)..循環工作正常,吐出圖像,發佈等..但是當我嘗試添加鏈接{{p.url}}它不起作用。 。建議?Jekyll Post.Url不工作

{% 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> 

回答

0

嘗試使用{{ reviews.url }}

0

相反的:{{POST_URL}} 大衛建議:{{reviews.url}}

它的工作。