summaryrefslogtreecommitdiffstats
path: root/theme
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2014-05-21 17:17:08 +0200
committerSamy Pessé <samypesse@gmail.com>2014-05-21 17:17:08 +0200
commit8d6923ce2cb0d6508a95435afb0cc51045cacaf6 (patch)
tree235edd547d180b55e68a21e290ccee7b5225723b /theme
parent0e1717f4bb979ebdbba5500dd5ae85f7f10f3528 (diff)
parentb21fb24a82577f9caf7fc1db2e1559d128dd798f (diff)
downloadgitbook-8d6923ce2cb0d6508a95435afb0cc51045cacaf6.zip
gitbook-8d6923ce2cb0d6508a95435afb0cc51045cacaf6.tar.gz
gitbook-8d6923ce2cb0d6508a95435afb0cc51045cacaf6.tar.bz2
Merge pull request #234 from davidagraf/livereload
Livereload
Diffstat (limited to 'theme')
-rw-r--r--theme/templates/site.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/theme/templates/site.html b/theme/templates/site.html
index af73030..a05cf4b 100644
--- a/theme/templates/site.html
+++ b/theme/templates/site.html
@@ -1,6 +1,10 @@
{% extends "layout.html" %}
-{% block htmlTag %}manifest="{{ basePath }}/manifest.appcache"{% endblock %}
+{% block htmlTag %}
+ {% if options.cache %}
+ manifest="{{ basePath }}/manifest.appcache"
+ {% endif %}
+{% endblock %}
{% block title %}{{ progress.current.title }}{% parent %}{% endblock %}
{% block content %}
<div class="book" {% if githubId %}data-github="{{ githubId }}"{% endif %} data-level="{{ progress.current.level }}" data-basepath="{{ basePath }}" data-revision="{{ revision }}">