summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2014-04-03 15:24:57 -0700
committerSamy Pessé <samypesse@gmail.com>2014-04-03 15:24:57 -0700
commitc934238f3d877e7f774a4b9ec4f33a5342e3914b (patch)
tree0b03fab93550cfc93cdaa971d2fc222aa8f08e67 /templates
parentab489599688f53df5cb53c1661c53e5e320269ad (diff)
downloadgitbook-c934238f3d877e7f774a4b9ec4f33a5342e3914b.zip
gitbook-c934238f3d877e7f774a4b9ec4f33a5342e3914b.tar.gz
gitbook-c934238f3d877e7f774a4b9ec4f33a5342e3914b.tar.bz2
Fix #9: add keyboard navigation using right/left
Diffstat (limited to 'templates')
-rw-r--r--templates/layout.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/templates/layout.html b/templates/layout.html
index 9be2829..8d2a02f 100644
--- a/templates/layout.html
+++ b/templates/layout.html
@@ -12,6 +12,13 @@
<meta name="keywords" content="gitbook,github" >
<meta name="generator" content="www.gitbook.io">
+ {% if progress.current.next and progress.current.next.path %}
+ <link rel="next" href="{{ basePath }}/{{ progress.current.next.path }}" />
+ {% endif %}
+ {% if progress.current.prev and progress.current.prev.path %}
+ <link rel="prev" href="{{ basePath }}/{{ progress.current.prev.path }}" />
+ {% endif %}
+
<meta property="og:title" content="{% block title %} | {{ title }}{% endblock %}">
<meta property="og:site_name" content="{{ title }}">
<meta property="og:type" content="book">