diff options
author | Valentin Popov <valentineus@gmail.com> | 2018-01-06 15:12:53 +0300 |
---|---|---|
committer | Valentin Popov <valentineus@gmail.com> | 2018-01-06 15:12:53 +0300 |
commit | db5494dff0b2b8b344f37a2fa1d2f8b9c450098f (patch) | |
tree | e4fc2d8c97abe0bd28a0527de6696025f6699b0d /_layouts/post.html | |
download | popov.link-db5494dff0b2b8b344f37a2fa1d2f8b9c450098f.tar.xz popov.link-db5494dff0b2b8b344f37a2fa1d2f8b9c450098f.zip |
Initial commit
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> |