diff options
author | Samy Pessé <samypesse@gmail.com> | 2014-03-31 12:39:16 -0700 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2014-03-31 12:39:16 -0700 |
commit | d98669958dfd626009c680f1b712da18966bbd5a (patch) | |
tree | 4faaee74bc2c458085a74bfe6ed60d932a5ffc94 | |
parent | 4210794de64b396409af080b698a3b5894ee2c80 (diff) | |
download | gitbook-d98669958dfd626009c680f1b712da18966bbd5a.zip gitbook-d98669958dfd626009c680f1b712da18966bbd5a.tar.gz gitbook-d98669958dfd626009c680f1b712da18966bbd5a.tar.bz2 |
Fix header link and display
-rw-r--r-- | templates/includes/book/header.html | 2 | ||||
-rw-r--r-- | templates/layout.html | 15 | ||||
-rw-r--r-- | templates/page.html | 4 |
3 files changed, 3 insertions, 18 deletions
diff --git a/templates/includes/book/header.html b/templates/includes/book/header.html index 7bf937b..2fd0cb0 100644 --- a/templates/includes/book/header.html +++ b/templates/includes/book/header.html @@ -9,7 +9,7 @@ <!-- Title --> - <h1><a href="/book/{{ book.attributes.full_name }}" >{{ title }}</a></h1> + <h1><a href="{{ basePath }}/README.html" >{{ title }}</a></h1> </div> <script> $(document).ready(function() { diff --git a/templates/layout.html b/templates/layout.html index fb57c8a..ea1e504 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -4,27 +4,12 @@ {% block head %} <meta charset="UTF-8"> <title>{% block title %} | GitBook{% endblock %}</title> - {% if config.debug %} - <meta name="robots" content="noindex, nofollow"> - {% else %} <meta name="robots" content="{% block robots %}noindex, nofollow{% endblock %}"> - {% endif %} <link rel="icon" href="{{ staticBase }}/images/icons/32.png"> <link rel="stylesheet" href="{{ staticBase }}/style.css"> <meta content="text/html; charset=utf-8" http-equiv="Content-Type"> <meta name="description" content="{% block description %}{% endblock %}"> <meta name="keywords" content="{% block keywords %}{% endblock %}" > - <meta name="og:title" content="{% block title %} | GitBook{% endblock %}"> - <meta name="og:locale" content="en_US"> - <meta name="og:site_name" content="GitBook"> - <meta name="og:url" content="{{ config.web.url }}"> - <meta name="og:description" content="{% block description %}{% endblock %}"> - <meta name="og:image" content="{{ staticBase }}/images/icons/ios.png" > - <meta name="application-name" content="Gitbook"> - <meta name="application-url" content="{{ config.web.url }}"> - <meta name="msapplication-tooltip" content="{% block description %}{% endblock %}"> - <meta name="msapplication-TileColor" content="#ffffff"> - <meta name="msapplication-starturl" content="{{ config.web.url }}"> <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-status-bar-style" content="black"> diff --git a/templates/page.html b/templates/page.html index a0f1e89..cd17fbc 100644 --- a/templates/page.html +++ b/templates/page.html @@ -1,10 +1,10 @@ {% extends "layout.html" %} -{% block title %}{{ input }} {{ title }}{% parent %}{% endblock %} +{% block title %}{{ _input }} {{ title }}{% parent %}{% endblock %} {% block description %}{% endblock %} {% block robots %}index, follow{% endblock %} {% block content %} -<div class="book {% if input == "README.md" %}with-summary{% endif %}"> +<div class="book {% if _input == "README.md" %}with-summary{% endif %}"> {% include "includes/book/header.html" %} {% include "includes/book/summary.html" %} |