Templates for homepage and markdown posts.
Signed-off-by: HE, Tao <sighingnow@gmail.com>
This commit is contained in:
53
_layouts/post.html
Normal file
53
_layouts/post.html
Normal file
@@ -0,0 +1,53 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="en" >
|
||||
<head>
|
||||
|
||||
{%- include head.html -%}
|
||||
|
||||
{% if page.previous %}
|
||||
<link rel="prev" href="{{page.previous.url}}" />
|
||||
{% else %}
|
||||
<link rel="prev" href="{{site.url}}" />
|
||||
{% endif %}
|
||||
|
||||
{% if page.next %}
|
||||
<link rel="next" href="{{page.next.url}}" />
|
||||
{% endif %}
|
||||
</head>
|
||||
<body>
|
||||
<div class="book">
|
||||
|
||||
{%- include toc-date.html -%}
|
||||
|
||||
<div class="book-body">
|
||||
{%- include body.html -%}
|
||||
|
||||
{% if page.previous %}
|
||||
<a href="{{page.previous.url}}" class="navigation navigation-prev navigation-unique" aria-label="Previous page: {{page.previous.title}}">
|
||||
<i class="fa fa-angle-left"></i>
|
||||
</a>
|
||||
{% else %}
|
||||
<a href="{{site.url}}" class="navigation navigation-prev navigation-unique" aria-label="Previous page: {{site.title}}">
|
||||
<i class="fa fa-angle-left"></i>
|
||||
</a>
|
||||
{% endif %}
|
||||
|
||||
{% if page.next %}
|
||||
<a href="{{page.next.url}}" class="navigation navigation-next navigation-unique" aria-label="Next page: {{page.next.title}}">
|
||||
<i class="fa fa-angle-right"></i>
|
||||
</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<script>
|
||||
var gitbook = gitbook || [];
|
||||
gitbook.push(function() {
|
||||
gitbook.page.hasChanged({%- include metadata-post.json.tpl -%});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
{%- include footer.html -%}
|
||||
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user