aboutsummaryrefslogtreecommitdiff
path: root/_layouts/post.html
diff options
context:
space:
mode:
authorValentin Popov <valentineus@gmail.com>2018-01-06 15:12:53 +0300
committerValentin Popov <valentineus@gmail.com>2018-01-06 15:12:53 +0300
commitdb5494dff0b2b8b344f37a2fa1d2f8b9c450098f (patch)
treee4fc2d8c97abe0bd28a0527de6696025f6699b0d /_layouts/post.html
downloadpopov.link-db5494dff0b2b8b344f37a2fa1d2f8b9c450098f.tar.xz
popov.link-db5494dff0b2b8b344f37a2fa1d2f8b9c450098f.zip
Initial commit
Diffstat (limited to '_layouts/post.html')
-rw-r--r--_layouts/post.html36
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&nbsp;</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">&#8592;</a>
+ {% endif %}
+
+ {% if page.previous.url %}
+ <a href="{{ page.previous.url | prepend: site.baseurl }}" class="right arrow">&#8594;</a>
+ {% endif %}
+
+ <a href="#" class="top">Top</a>
+</div>