annabunches.net/_includes/post_list_main.html

19 lines
637 B
HTML

<ul class="post-list">
{% for post in site.posts limit:include.limit %}
{% if post.main != false && (site.category_metadata[post.category][main] || post.main == true) %}
<li style="margin-top: 30px">
<h2 style="line-height: 1">
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">
{{ post.title }}
</a>
<span class="post-meta">{{ post.date | date: "%Y-%m-%d" }}</span>
</h2>
{{ post.excerpt }}
<p>
<a href="{{ post.url | prepend: site.baseurl }}">Read More...</a>
</p>
</li>
{% endif %}
{% endfor %}
</ul>