Files
theme/_includes/posts.html
T
andrew c19e1b9d91 Made posts without images use the full width, stopped having an image tag without url.
Posts list on homepage now works the same as other category pages.
Getting away from page banners on top of site.
Using seo_tag.title instead of generating the same thing by hand.
2019-01-22 13:39:53 -05:00

29 lines
998 B
HTML

{%- if include.posts and include.posts.size > 0 -%}
<section id="articles" class="">
<div class="container">
{%- if page.list_title -%}
<h3>{{ page.list_title | capitalize }}</h3>
{%- endif -%}
<div class="features">
{%- assign date_format = site.date_format | default: "%b %-d, %Y" -%}
{%- for post in include.posts -%}
<article>
{%- if post.banner -%}
<a href="{{ post.url | relative_url }}" class="image">
<img src="{{ post.banner }}" alt="">
</a>
{%- endif -%}
<div class="inner">
<h4><a href="{{ post.url | relative_url }}">{{ post.title | escape }}</a></h4>
<div>{{ post.date | date: date_format }}</div>
{%- if site.show_excerpts -%}
{{ post.excerpt }}
{%- endif -%}
</div>
</article>
{%- endfor -%}
</div>
</div>
</section>
{%- endif -%}