-
Notifications
You must be signed in to change notification settings - Fork 82
/
Copy pathpost.html
43 lines (39 loc) · 1.57 KB
/
post.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
---
layout: default
---
<div class="container">
<div class="row">
<div class="col-md-4">
<div class="well">
<h4>RECENT POSTS</h4>
<ul class="list-unstyled post-list-container">
{% for post in site.posts limit:10 %}
<li><a href="{{ post.url | prepend: site.baseurl }}" {% if page.title==post.title %} class="active" {% endif %}>{{ post.title }}</a></li>
{% endfor %}
<li><a href="{{ "/allposts" | prepend: site.baseurl }}">All posts ...</a></li>
</ul>
</div>
</div>
<div class="col-md-8">
<h1>{{ page.title }}</h1>
<p>{{ page.date | date: "%b %-d, %Y" }}{% if page.author %} • {{ page.author }}{% endif %}{% if page.meta %} • {{ page.meta }}{% endif %}</p>
<div id="markdown-content-container">{{ content }}</div>
<hr>
<ul class="pager">
{% if page.previous %}
<li class="previous">
<a href="{{ page.previous.url | prepend: site.baseurl }}">
<span aria-hidden="true">←</span> Older
</a>
</li>
{% endif %} {% if page.next %}
<li class="next">
<a href="{{ page.next.url | prepend: site.baseurl }}">
Newer <span aria-hidden="true">→</span>
</a>
</li>
{% endif %}
</ul>
</div>
</div>
</div>