Skip to content

Commit 74f61cd

Browse files
committed
Blog init via tinypress.co
1 parent 00cc19d commit 74f61cd

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

_layouts/post.html

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
layout: default
3+
---
4+
5+
<div class="post">
6+
<h1 class="post-title">{{ page.title }}</h1>
7+
<span class="post-date">{{ page.date | date_to_string }}</span>
8+
{{ content }}
9+
</div>
10+
11+
<div class="related">
12+
<h2>Related Posts</h2>
13+
<ul class="related-posts">
14+
{% for post in site.related_posts limit:3 %}
15+
<li>
16+
<h3>
17+
<a href="{{ post.url }}">
18+
{{ post.title }}
19+
<small>{{ post.date | date_to_string }}</small>
20+
</a>
21+
</h3>
22+
</li>
23+
{% endfor %}
24+
</ul>
25+
</div>

0 commit comments

Comments
 (0)