jekyll-gitbook/_layouts/post.html
HE, Tao a1b1bd9402
Fix site URL and base URL.
Signed-off-by: HE, Tao <sighingnow@gmail.com>
2019-04-28 19:36:53 +08:00

53 lines
1.7 KiB
HTML

<!DOCTYPE HTML>
<html lang="en" >
<head>
{%- include head.html -%}
{% if page.previous %}
<link rel="prev" href="{{site.baseurl}}{{page.previous.url}}" />
{% else %}
<link rel="prev" href="{{site.baseurl}}/" />
{% endif %}
{% if page.next %}
<link rel="next" href="{{site.baseurl}}{{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="{{site.baseurl}}{{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.baseurl}}/" 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="{{site.baseurl}}{{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>