diff options
author | jeffreytse <jeffreytse.mail@gmail.com> | 2020-07-12 16:23:23 +0800 |
---|---|---|
committer | jeffreytse <jeffreytse.mail@gmail.com> | 2020-07-12 16:23:23 +0800 |
commit | 413f0997d9ad36a8be97387456f47c740e071e95 (patch) | |
tree | 171de04174dfb8a1dec0ae6c7620f65f703b103b /_layouts | |
parent | 8ca77da4d4488d841077c61f6c0be87344eeaddc (diff) |
feat: change theme styles
Diffstat (limited to '_layouts')
-rw-r--r-- | _layouts/post.html | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/_layouts/post.html b/_layouts/post.html index dbf623d..9195f13 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -1,6 +1,6 @@ --- layout: framework -banner: 'default' +banner: banner_html: post-header.html sidebar: - article-menu @@ -21,18 +21,28 @@ sidebar: <div class="post-nav"> {%- if page.previous -%} - <a href="{{ page.previous.url }}" title="{{ page.previous.title | escape }}">« Prev</a> + <a class="previous" href="{{ page.previous.url }}" title="{{ page.previous.title | escape }}">{{ page.previous.title | escape }}</a> {%- else -%} <span></span> {%- endif -%} {%- if page.next -%} - <a href="{{ page.next.url }}" title="{{ page.next.title | escape }}">Next »</a> + <a class="next" href="{{ page.next.url }}" title="{{ page.next.title | escape }}">{{ page.next.title | escape }}</a> {%- else -%} <span></span> {%- endif -%} </div> + <div class="post-related"> + <div>Related Articles</div> + <ul> + {% assign posts = site[page.collection] | sample:4 %} + {%- for post in posts -%} + <li><a class="post-link" href="{{post.url}}">{{post.title}}</a></li> + {%- endfor -%} + </ul> + </div> + {%- if page.comments != false -%} {%- if site.disqus.shortname -%} |