forked from barryclark/jekyll-now
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
38 lines (36 loc) · 1.03 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
layout: default
comments: true
title: Blog
---
{% assign items = "" %}
<ul class="post-list">
{% for post in site.posts %}
<li>
<h2>
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
</h2>
<span class="post-meta">{{ post.date | date: "%b %-d, %Y" }}</span>
<div class="wrapper">
<amp-img height="378" width="678" src="{{ post.imageUrl }}" layout="responsive"></amp-img>
</div>
<p class="description">
{% if post.description %}
{{ post.description | strip_html | strip_newlines | truncate: 250 }}
{% else %}
{{ post.content | strip_html | strip_newlines | truncate: 250 }}
{% endif %}
</p>
</li>
{% capture list_item %}
{%
include blogListItem.html
index=forloop.index
url=post.url
baseUrl=site.url
imageUrl=post.imageUrl
title=post.title
%}
{% endcapture %}
{% endfor %}
</ul>