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 | |
download | popov.link-db5494dff0b2b8b344f37a2fa1d2f8b9c450098f.tar.xz popov.link-db5494dff0b2b8b344f37a2fa1d2f8b9c450098f.zip |
Initial commit
Diffstat (limited to '_layouts')
-rw-r--r-- | _layouts/default.html | 30 | ||||
-rw-r--r-- | _layouts/post.html | 36 |
2 files changed, 66 insertions, 0 deletions
diff --git a/_layouts/default.html b/_layouts/default.html new file mode 100644 index 0000000..67ce6c9 --- /dev/null +++ b/_layouts/default.html @@ -0,0 +1,30 @@ +<!DOCTYPE html> +<html lang="en"> + +{% include head.html %} + +<body> + <nav class="nav"> + <div class="nav-container"> + <a href="{{ site.baseurl }}/"> + <h2 class="nav-title">{{ site.title }}</h2> + </a> + <ul> + <li><a href="{{ '/about' | prepend: site.baseurl }}">About</a></li> + <li><a href="{{ site.baseurl }}/">Posts</a></li> + </ul> + </div> + </nav> + + <main> + {{ content }} + </main> + + <footer> + <span> + © <time datetime="{{ site.time }}">{{ site.time | date: '%Y' }}</time> {{ site.author.name }}. Made with Jekyll using the <a href="https://github.com/chesterhow/tale/">Tale</a> theme. + </span> + </footer> +</body> + +</html> 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> |