forked from barryclark/jekyll-now
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathhome.html
53 lines (52 loc) · 1.76 KB
/
home.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
---
layout: default
---
<div class="posts">
{% for post in site.posts %}
<article class="post">
<div class="metadata">
<div class="date">{{ post.date | date: "%B %e, %Y" }}</div>
<div class=tags>
{% if post.category != empty %}
<div class="tag category">
{{ post.category }}
</div>
<br>
{% endif %}
{% if post.tags != empty %}
{% for tag in post.tags %}
<div class=tag>
{{ tag }}
</div>
{% endfor %}
{% endif %}
</div>
<div class="date">{{ post.time }} min read, {{ post.words }} words</div>
</div>
<a class=index-a href="{% if post.gh-page %}{{ post.gh-page }}{% else %}{{ site.baseurl }}{{ post.url }}{% endif %}">
{% if post.image %}
<div class="{% if post.circular %}{{ 'thumbnail circular' }}{% else %}{{ 'thumbnail' }}{% endif %}">
<img src="{{ post.image }}" alt="thumbnail">
</div>
<div class="narrow-description">
<h2>{{ post.title }}</h2>
{% if post.abstract %}
<p>{{ post.abstract }}</p>
{% else %}
<p>{{ post.excerpt }}</p>
{% endif %}
</div>
{% else %}
<div class="wide-description">
<h2>{{ post.title }}</h2>
{% if post.abstract %}
<p>{{ post.abstract }}</p>
{% else %}
<p>{{ post.excerpt }}</p>
{% endif %}
</div>
{% endif %}
</a>
</article>
{% endfor %}
</div>