diff options
author | Samy Pessé <samypesse@gmail.com> | 2014-04-02 16:38:24 -0700 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2014-04-02 16:38:24 -0700 |
commit | 62a2e8f81c5dff5b47f064b70b6869f6e4b12996 (patch) | |
tree | e06291d5b22011980e8983507cc0e3ef3ad69c04 /templates | |
parent | 6bcc2d8cf24d62ce7a48895cc8ef085f8bc71e4d (diff) | |
download | gitbook-62a2e8f81c5dff5b47f064b70b6869f6e4b12996.zip gitbook-62a2e8f81c5dff5b47f064b70b6869f6e4b12996.tar.gz gitbook-62a2e8f81c5dff5b47f064b70b6869f6e4b12996.tar.bz2 |
Fix #8: Improve page title
Diffstat (limited to 'templates')
-rw-r--r-- | templates/layout.html | 2 | ||||
-rw-r--r-- | templates/page.html | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/templates/layout.html b/templates/layout.html index 735f5d3..e07b385 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -3,7 +3,7 @@ <head> {% block head %} <meta charset="UTF-8"> - <title>{% block title %} | GitBook{% endblock %}</title> + <title>{% block title %} | {{ title }}{% endblock %}</title> <meta name="robots" content="{% block robots %}noindex, nofollow{% endblock %}"> <link rel="shortcut icon" href="{{ staticBase }}/images/favicon.ico" type="image/x-icon"> <link rel="stylesheet" href="{{ staticBase }}/style.css"> diff --git a/templates/page.html b/templates/page.html index 01868cb..6f27b33 100644 --- a/templates/page.html +++ b/templates/page.html @@ -1,10 +1,10 @@ {% extends "layout.html" %} -{% block title %}{{ _input }} {{ title }}{% parent %}{% endblock %} +{% block title %}{{ progress.current.title }}{% parent %}{% endblock %} {% block description %}{% endblock %} {% block robots %}index, follow{% endblock %} {% block content %} -<div class="book {% if _input == "README.md" %}with-summary{% endif %}" data-github="{{ githubId }}" data-level="{{ navigation.level }}"> +<div class="book {% if _input == "README.md" %}with-summary{% endif %}" data-github="{{ githubId }}" data-level="{{ progress.current.level }}"> {% include "includes/book/header.html" %} {% include "includes/book/summary.html" %} <div class="book-body"> @@ -34,11 +34,11 @@ <div class="page-footer"> {% if _input == "README.md" %} - <a href="{{ basePath }}/{{ navigation.next.path }}" class="navigation-link">Start</a> + <a href="{{ basePath }}/{{ progress.current.next.path }}" class="navigation-link">Start</a> {% else %} - {% if navigation.next %} - {% if navigation.next.path %} - <a href="{{ basePath }}/{{ navigation.next.path }}" class="navigation-link next">Next</a> + {% if progress.current.next %} + {% if progress.current.next.path %} + <a href="{{ basePath }}/{{ progress.current.next.path }}" class="navigation-link next">Next</a> {% else %} <div class="navigation-link coming-soon">Coming soon</div> {% endif %} |