diff options
author | Shaform <shaform@gmail.com> | 2014-06-17 22:08:46 +0800 |
---|---|---|
committer | Shaform <shaform@gmail.com> | 2014-06-17 22:08:46 +0800 |
commit | 6bbefad24e6aa4a5b51b4b21bdf30b73f8cb4d41 (patch) | |
tree | d2efbbb62f9746b19b683c11a302c9afe385a2be /theme/templates/site.html | |
parent | 1f4cf33dd08b439cadb5c649654ecd6d3f4b399d (diff) | |
parent | d6eb8e4c6042262408c3c0b8d67bccecfa4bf882 (diff) | |
download | gitbook-6bbefad24e6aa4a5b51b4b21bdf30b73f8cb4d41.zip gitbook-6bbefad24e6aa4a5b51b4b21bdf30b73f8cb4d41.tar.gz gitbook-6bbefad24e6aa4a5b51b4b21bdf30b73f8cb4d41.tar.bz2 |
Merge remote-tracking branch 'upstream/master' into ref_links
Diffstat (limited to 'theme/templates/site.html')
-rw-r--r-- | theme/templates/site.html | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/theme/templates/site.html b/theme/templates/site.html index b0a2ba4..6fcbebd 100644 --- a/theme/templates/site.html +++ b/theme/templates/site.html @@ -1,7 +1,23 @@ {% extends "layout.html" %} {% block htmlTag %}{% if options.cache !== false %}manifest="{{ basePath }}/manifest.appcache"{% endif %}{% endblock %} -{% block title %}{{ progress.current.title }}{% parent %}{% endblock %} + +{% block head %} + {% parent %} + {% if githubAuthor %} + <meta name="author" content="{{ githubAuthor }}"> + {% endif %} + {% if progress.current.next and progress.current.next.path %} + <link rel="next" href="{{ basePath }}/{{ progress.current.next.path|mdLink }}" /> + {% endif %} + {% if progress.current.prev and progress.current.prev.path %} + <link rel="prev" href="{{ basePath }}/{{ progress.current.prev.path|mdLink }}" /> + {% endif %} +{% endblock %} + +{% block title %}{{ progress.current.title }} | {{ title }}{% endblock %} +{% block description %}{% if progress.current.level == "0" %}{{ description }}{% endif %}{% endblock %} + {% block content %} <div class="book" {% if githubId %}data-github="{{ githubId }}"{% endif %} data-level="{{ progress.current.level }}" data-basepath="{{ basePath }}" data-revision="{{ revision }}"> {% include "includes/book/header.html" %} @@ -38,7 +54,8 @@ {% endblock %} {% block javascript %} -{% parent %} +<script src="{{ staticBase }}/jsrepl/jsrepl.js" id="jsrepl-script"></script> +<script src="{{ staticBase }}/app.js"></script> {% for resource in plugins.resources.js %} {% if resource.url %} <script src="{{ resource.url }}"></script> @@ -55,7 +72,7 @@ require(["gitbook"], function(gitbook) { {% endblock %} {% block style %} -{% parent %} +<link rel="stylesheet" href="{{ staticBase }}/style.css"> {% for resource in plugins.resources.css %} {% if resource.url %} <link rel="stylesheet" href="{{ resource.url }}"> |