summaryrefslogtreecommitdiff
path: root/_layouts/post.html
blob: 53a4999dfd40517bc6e0ef72b8fbac09ba1688cb (plain)
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
---
layout: master
---

<section class="article">

    <h1>{{ page.title }}</h1>

    <div class="date">{{ page.date | date: "%A, %-d %B %Y" }}</div>

    {{ content }}

    {% if page.previous %}
    <div class="grid_half">
      <div class="arrow">&larr;</div>
      <div><a class="post" href="{{ page.previous.url }}">{{ page.previous.title }}</a></div>
    </div>
    {% endif %}

    {% if page.next %}
    <div class="grid_half right">
      <div class="arrow">&rarr;</div>
      <div><a class="post" href="{{ page.next.url }}">{{ page.next.title }}</a></div>
    </div>
    {% endif %}

    {% for post in site.related_posts limit:3 %}
    <a href="{{post.url}}">{{post.title}}</a>
    {% endfor %}

</section>