-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
29 lines (28 loc) · 1.26 KB
/
index.html
File metadata and controls
29 lines (28 loc) · 1.26 KB
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
---
layout: default
title: Home
# Ideally, just show content of latest post; do 'all' on another page
---
<div class="post">
{% for post in paginator.posts limit:1 %}
<div>
<h3 class="post-title">
<a href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
</h3>
<span class="post-date">{{ post.date | date: "%b %-d, %Y" }}</span>
{{ post.content }}
</div>
<p>posted in {% for tag in post.tags %}<a href="{{ site.baseurl }}/tags/index.html#{{ tag | cgi_escape }}" title="Pages tagged {{ tag }}" rel="tag">{{ tag }}</a>{% unless forloop.last %}, {% endunless %}{% endfor %}</p>
<p class="rss-subscribe">subscribe <a href="{{ "/feed.xml" | prepend: site.baseurl }}">via RSS</a></p>
{% endfor %}
</div>
<div class="pagination"> {% if paginator.previous_page %}
{% if paginator.previous_page == 1 %}
<p class="prevLink"><a href="{{site.baseurl}}/" class="previous">newer</a></p>
{% else %}
<p class="prevLink"><a href="{{ site.baseurl }}/blog/page{{ paginator.previous_page }}" class="previous">newer</a></p>
{% endif %}
{% endif %}
{% if paginator.next_page %}
<p class="nextLink"><a href="{{ site.baseurl }}/blog/page{{ paginator.next_page }}" class="next">older</a></p>
{% endif %} </div>