diff options
author | Yoshiharu Yamashita <yoshiharu.yamashita@outlook.com> | 2016-03-27 18:22:40 +0300 |
---|---|---|
committer | Yoshiharu Yamashita <yoshiharu.yamashita@outlook.com> | 2016-03-27 18:22:40 +0300 |
commit | f6437c68c39a55b0a13fe3e835685c0f9ce35924 (patch) | |
tree | c7c9e4d0ac01da3bd2fd1c11d376589d14a76729 /layouts | |
parent | b5e975146239daa2c2e5a86a4bcb4d1c323611f2 (diff) |
Improve display of prev next posts
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/prev_next_post.html | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/layouts/partials/prev_next_post.html b/layouts/partials/prev_next_post.html index 6b326ed..fb61c00 100644 --- a/layouts/partials/prev_next_post.html +++ b/layouts/partials/prev_next_post.html @@ -1,18 +1,31 @@ {{ if or (.Prev) (.Next) }} <div class="prev-next-post pure-g"> - <div class="pure-u-1-2"> + <div class="pure-u-1-24" style="text-align: left;"> + {{ if .PrevInSection }} + <a href="{{ .PrevInSection.Permalink }}"><i class="fa fa-chevron-left"></i></a> + {{ end }} + </div> + <div class="pure-u-10-24"> {{ if .PrevInSection }} <nav class="prev"> - <a href="{{ .PrevInSection.Permalink }}"><i class="fa fa-arrow-circle-left fa-fw fa-lg"></i>{{ .PrevInSection.Title }}</a> + <a href="{{ .PrevInSection.Permalink }}">{{ .PrevInSection.Title }}</a> </nav> {{ end }} </div> - <div class="pure-u-1-2"> + <div class="pure-u-2-24"> + + </div> + <div class="pure-u-10-24"> {{ if .NextInSection }} <nav class="next"> - <a href="{{ .NextInSection.Permalink }}">{{ .NextInSection.Title }}<i class="fa fa-arrow-circle-right fa-fw fa-lg"></i></a> + <a href="{{ .NextInSection.Permalink }}">{{ .NextInSection.Title }}</a> </nav> {{ end }} </div> + <div class="pure-u-1-24" style="text-align: right;"> + {{ if .NextInSection }} + <a href="{{ .NextInSection.Permalink }}"><i class="fa fa-chevron-right"></i></a> + {{ end }} + </div> </div> {{ end }} |