hacks-guide-minimal-mistake.../_layouts/home.html

17 lines
628 B
HTML
Raw Normal View History

2016-02-22 22:46:49 +01:00
---
layout: default
---
<div id="index">
<h3><a href="{{ absurl }}/posts/">Recent Posts</a></h3>
{% for post in site.posts limit:5 %}
<article>
{% if post.link %}
<h2 class="link-post"><a href="{{ absurl }}{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a> <a href="{{ post.link }}" target="_blank" title="{{ post.title }}"><i class="fa fa-link"></i></a></h2>
2014-03-11 00:42:54 +01:00
{% else %}
2016-02-22 22:46:49 +01:00
<h2><a href="{{ absurl }}{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a></h2>
<p>{{ post.excerpt | strip_html | truncate: 160 }}</p>
2014-03-11 00:42:54 +01:00
{% endif %}
2016-02-22 22:46:49 +01:00
</article>
{% endfor %}
</div><!-- /#index -->