summaryrefslogtreecommitdiffstats
path: root/theme
diff options
context:
space:
mode:
authorSamy Pesse <samypesse@gmail.com>2015-05-28 15:59:14 +0200
committerSamy Pesse <samypesse@gmail.com>2015-05-28 15:59:14 +0200
commit475b0bb2b3dcad5d0b8b675be3ad8167315abc05 (patch)
treeea4348083a09e1849acd5fd05f565803782de8fd /theme
parente6343935e3f0ad1d9a66639c9bf1e6bb07fff1e0 (diff)
downloadgitbook-475b0bb2b3dcad5d0b8b675be3ad8167315abc05.zip
gitbook-475b0bb2b3dcad5d0b8b675be3ad8167315abc05.tar.gz
gitbook-475b0bb2b3dcad5d0b8b675be3ad8167315abc05.tar.bz2
Adapt to nunjucks 1.3.x
Diffstat (limited to 'theme')
-rw-r--r--theme/templates/ebook/layout.html12
-rw-r--r--theme/templates/website/layout.html12
2 files changed, 12 insertions, 12 deletions
diff --git a/theme/templates/ebook/layout.html b/theme/templates/ebook/layout.html
index 1ff85bf..c2501b6 100644
--- a/theme/templates/ebook/layout.html
+++ b/theme/templates/ebook/layout.html
@@ -1,8 +1,8 @@
<!DOCTYPE HTML>
<html lang="{{ language }}" {% block htmlTag %}{% endblock %} {% if options.direction == "rtl" %}dir="rtl"{% endif %}>
- {{ htmlSnippet("html:start")|default("")|safe }}
+ {{ htmlSnippet("html:start")|default("", true)|safe }}
<head>
- {{ htmlSnippet("head:start")|default("")|safe }}
+ {{ htmlSnippet("head:start")|default("", true)|safe }}
<meta charset="UTF-8">
<title>{% block title %}{% endblock %}</title>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
@@ -11,14 +11,14 @@
{% if options.author %}<meta name="author" content="{{ options.author }}">{% endif %}
{% if options.isbn %}<meta name="identifier" content="{{ options.isbn }}" scheme="ISBN">{% endif %}
{% block head %}{% endblock %}
- {{ htmlSnippet("head:end")|default("")|safe }}
+ {{ htmlSnippet("head:end")|default("", true)|safe }}
</head>
<body>
- {{ htmlSnippet("body:start")|default("")|safe }}
+ {{ htmlSnippet("body:start")|default("", true)|safe }}
{% block style %}{% endblock %}
{% block content %}{% endblock %}
{% block javascript %}{% endblock %}
- {{ htmlSnippet("body:end")|default("")|safe }}
+ {{ htmlSnippet("body:end")|default("", true)|safe }}
</body>
- {{ htmlSnippet("html:end")|default("")|safe }}
+ {{ htmlSnippet("html:end")|default("", true)|safe }}
</html>
diff --git a/theme/templates/website/layout.html b/theme/templates/website/layout.html
index 9e66799..f3817d9 100644
--- a/theme/templates/website/layout.html
+++ b/theme/templates/website/layout.html
@@ -1,8 +1,8 @@
<!DOCTYPE HTML>
<html lang="{{ language }}" {% if options.direction == "rtl" %}dir="rtl"{% endif %}>
- {{ htmlSnippet("html:start")|default("")|safe }}
+ {{ htmlSnippet("html:start")|default("", true)|safe }}
<head>
- {{ htmlSnippet("head:start")|default("")|safe }}
+ {{ htmlSnippet("head:start")|default("", true)|safe }}
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>{% block title %}{% endblock %}</title>
@@ -19,13 +19,13 @@
<link rel="shortcut icon" href="{{ staticBase }}/images/favicon.ico" type="image/x-icon">
{% block style %}{% endblock %}
{% block head %}{% endblock %}
- {{ htmlSnippet("head:end")|default("")|safe }}
+ {{ htmlSnippet("head:end")|default("", true)|safe }}
</head>
<body>
- {{ htmlSnippet("body:start")|default("")|safe }}
+ {{ htmlSnippet("body:start")|default("", true)|safe }}
{% block content %}{% endblock %}
{% block javascript %}{% endblock %}
- {{ htmlSnippet("body:end")|default("")|safe }}
+ {{ htmlSnippet("body:end")|default("", true)|safe }}
</body>
- {{ htmlSnippet("html:end")|default("")|safe }}
+ {{ htmlSnippet("html:end")|default("", true)|safe }}
</html>