-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
44 lines (42 loc) Β· 1.25 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
---
layout: default
title: Home
---
<!-- This loops through the paginated posts -->
{% for post in paginator.posts %}
<h2 class="post-title"><a href="{{ post.url }}">{{ post.title }}</a></h2>
<p class="post-meta">
<span class="date">{{ post.date | date: "%-d %B %Y" }} </span>
{%- if post.author -%}
{% for author in post.author %}
// <span class="author"><a href="/{{ post.author | downcase }}/">{{ post.author }}</a></span>
{% endfor %}
{% endif %}
</p>
<div class="post-content">
{% if post.content contains '<!--more-->' %}
{{ post.excerpt }}
<p><a class="excerpt-more" href="{{ post.url }}">Continue Reading Β»</a></p>
{% else %}
{{ post.content}}
{% endif %}
<ul class="tags">
{% for tag in post.tags %}
<li><a href="/tags/#{{ tag | downcase | replace:" ","-" }}/">{{ tag }}</a></li>
{% endfor %}
</ul>
</div>
{% endfor %}
<!-- Pagination links -->
<div class="pagination">
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path }}" class="previous">Β« Previous</a>
{% else %}
<span class="previous"></span>
{% endif %}
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path }}" class="next">Next Β»</a>
{% else %}
<span class="next"></span>
{% endif %}
</div>