diff options
Diffstat (limited to '_layouts/post.html')
-rw-r--r-- | _layouts/post.html | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/_layouts/post.html b/_layouts/post.html new file mode 100644 index 0000000..748d3a9 --- /dev/null +++ b/_layouts/post.html @@ -0,0 +1,36 @@ +--- +layout: default +--- + +<div class="post"> + <div class="post-info"> + <span>Written by</span> + {% if page.author %} + {{ page.author }} + {% else %} + {{ site.author.name }} + {% endif %} + + {% if page.date %} + <br /> + <span>on </span><time datetime="{{ page.date }}">{{ page.date | date: "%B %d, %Y" }}</time> {% endif %} + </div> + + <h1 class="post-title">{{ page.title }}</h1> + <div class="post-line"></div> + + {{ content }} + +</div> + +<div class="pagination"> + {% if page.next.url %} + <a href="{{ page.next.url | prepend: site.baseurl }}" class="left arrow">←</a> + {% endif %} + + {% if page.previous.url %} + <a href="{{ page.previous.url | prepend: site.baseurl }}" class="right arrow">→</a> + {% endif %} + + <a href="#" class="top">Top</a> +</div> |