You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
blog/_pages/index.html

34 lines
1.1 KiB

---
layout: default
permalink: index.html
---
<div class="index">
{% for post in site.posts %}
{% unless post.next %}
<h3>Year {{ post.date | date: '%Y' }}</h3>
{% else %}
{% capture year %}{{ post.date | date: '%Y' }}{% endcapture %}
{% capture nyear %}{{ post.next.date | date: '%Y' }}{% endcapture %}
{% if year != nyear %}
<h3>Year {{ post.date | date: '%Y' }}</h3>
{% endif %}
{% endunless %}
<a href="{{ post.url | prepend: site.baseurl }}.html">
<div class="post-list-metadata">
<span class="post-list-title">{{ post.title }}</span>
<span class="post-list-date">{{ post.date | date: "%b %d" }}</span>
<div class="post-list-div"></div>
{% if site.excerpt_enabled %}
<div class="post-list-excerpt">
{% if post.content contains site.excerpt_separator %}
{{ post.excerpt | strip_html }}
{% else %}
{{ post.excerpt | strip_html | truncatewords: site.excerpt_words }}
{% endif %}
</div>
{% endif %}
</div>
</a>
{% endfor %}
</div>