summaryrefslogtreecommitdiff
path: root/_layouts/post.html
diff options
context:
space:
mode:
authorJeffrey Tse <jeffreytse.mail@gmail.com>2019-09-11 12:19:34 +0800
committerJeffrey Tse <jeffreytse.mail@gmail.com>2019-09-11 12:21:17 +0800
commit61eae5c5f9881cab29712f6e696085baa977e1f9 (patch)
treebb301b58b94fee5dcefbdfae8f0c8fc13ee5bd21 /_layouts/post.html
parentcd3a8163dd997d0a7c4d320816651efa8f7dce60 (diff)
release: v1.0.0
Diffstat (limited to '_layouts/post.html')
-rw-r--r--_layouts/post.html52
1 files changed, 50 insertions, 2 deletions
diff --git a/_layouts/post.html b/_layouts/post.html
index 5e71126..cae5476 100644
--- a/_layouts/post.html
+++ b/_layouts/post.html
@@ -1,5 +1,53 @@
---
-layout: default
+layout: framework
+banner: 'default'
+banner_html: post-header.html
+sidebar:
+ - article-menu
---
-{{ content }}
+<div class="post">
+ <section>
+
+ {%- assign name = 'banner' -%}
+ {%- include functions.html func='get_value' -%}
+ {%- assign banner = return -%}
+
+ {%- if banner == nil -%}
+ {%- include views/post-header.html -%}
+ {%- endif -%}
+
+ {%- include views/article.html -%}
+
+ <div class="post-nav">
+ {%- if page.previous -%}
+ <a href="{{ page.previous.url }}" title="{{ page.previous.title | escape }}">&laquo; Prev</a>
+ {%- else -%}
+ <span></span>
+ {%- endif -%}
+
+ {%- if page.next -%}
+ <a href="{{ page.next.url }}" title="{{ page.next.title | escape }}">Next &raquo;</a>
+ {%- else -%}
+ <span></span>
+ {%- endif -%}
+ </div>
+
+ {%- if page.comments != false -%}
+
+ {%- if site.disqus.shortname -%}
+ {%- include extensions/comments/disqus.html -%}
+ {%- endif -%}
+
+ {%- if site.gitment.username -%}
+ {%- include extensions/comments/gitment.html -%}
+ {%- endif -%}
+
+ {%- endif -%}
+
+ </section>
+
+ {%- include extensions/mathjax.html -%}
+</div>
+
+