summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilhelm <wilhelm.matilainen@gmail.com>2015-05-29 15:42:40 +0300
committerWilhelm <wilhelm.matilainen@gmail.com>2015-05-29 15:42:40 +0300
commitf1b593cfbd3c939d18f7e033de138837020d025a (patch)
tree10d045d8a521f33323fb217c5c8dc67df2c67d1a
parentf998e2dec9281cf5194383f8c69f267d31fa36c0 (diff)
downloadgitbook-f1b593cfbd3c939d18f7e033de138837020d025a.zip
gitbook-f1b593cfbd3c939d18f7e033de138837020d025a.tar.gz
gitbook-f1b593cfbd3c939d18f7e033de138837020d025a.tar.bz2
Styling should go to <head>, not to <body>
https://developers.google.com/speed/pagespeed/module/filter-css-to-head
-rw-r--r--theme/templates/ebook/layout.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/theme/templates/ebook/layout.html b/theme/templates/ebook/layout.html
index c2501b6..982618f 100644
--- a/theme/templates/ebook/layout.html
+++ b/theme/templates/ebook/layout.html
@@ -11,11 +11,11 @@
{% 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 %}
+ {% block style %}{% endblock %}
{{ htmlSnippet("head:end")|default("", true)|safe }}
</head>
<body>
{{ htmlSnippet("body:start")|default("", true)|safe }}
- {% block style %}{% endblock %}
{% block content %}{% endblock %}
{% block javascript %}{% endblock %}
{{ htmlSnippet("body:end")|default("", true)|safe }}