forked from waferbaby/usesthis
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
20 lines (20 loc) · 895 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
---
layout: default
title: 首页
---
{% for post in site.posts limit:10 %}
<figure>
{% if forloop.first %}
<a href='/interviews/{{post.slug}}' title='View an interview with {{post.person}}.'><img src='/images/portraits/{{post.slug}}.jpg' alt='{{post.person}}' class='portrait'></a>
{% else %}
<a href='/interviews/{{post.slug}}' title='View an interview with {{post.person}}.'><img src='/images/thumbnails/{{post.slug}}.jpg' alt='{{post.person}}' class='thumbnail'></a>
{% endif %}
</figure>
<h2 class='person'><a href='/interviews/{{post.slug}}' title='View an interview with {{post.person}}.'>{{post.person}}</a></h2>
<p class='summary'>{{post.summary}}</p>
<p class='details'>发表于 <time datetime='{{post.date | date: "%Y-%m-%d"}}'>
{{post.date | date: "%b %d, %Y"}}</time> in
{% assign categories=post.categories %}
{% include categories.html %}
</p>
{% endfor %}