forked from dailybruin/the-stack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
47 lines (42 loc) · 1.46 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
39
40
41
42
43
44
45
46
47
---
layout: default
stylesheets:
- /css/front.css
---
<div class="home">
<ul class="post-list">
{% for post in paginator.posts %}
{% if post.displayed %}
<li>
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">
{% if post.featured_image %}
<img class="featured-image" src="{{ site.image_url }}/{{ post.featured_image.url }}" />
{% endif %}
<h2>{{ post.title }}</h2>
<h3>{{ post.teaser }}</h3>
<h3 class='info'>
{{ post.date | date: "%b %-d, %Y" }}
● By
{% for author_key in post.authors %}
{% assign author = site.data.authors[author_key] %}
{{author.name}}{% unless forloop.last %}, {% endunless %}
{% endfor %}
</h3>
</a>
</li>
{% endif %}
{% endfor %}
</ul>
{% if paginator.previous_page or paginator.next_page %}
<nav class="pagination">
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path }}" class="previous">← Previous page</a>
{% endif %}
<span class="page-number">Page {{ paginator.page }} of {{ paginator.total_pages }}</span>
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path }}" class="next">More posts →</a>
{% endif %}
</nav>
{% endif %}
<p class="rss-subscribe">subscribe to {{ site.title }} <a href="{{ "/feed.xml" | prepend: site.baseurl }}">via RSS</a></p>
</div>