summaryrefslogtreecommitdiffstats
path: root/theme
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2015-03-17 10:38:56 +0100
committerSamy Pessé <samypesse@gmail.com>2015-03-17 10:38:56 +0100
commitacdaea9f6cbb41e5607af9a2c7e882d3eb62f9f5 (patch)
treec42a0d7b013542670798ccbed531a1d45287693b /theme
parent94485621560152cf197dc8bd603774c46de2f0ef (diff)
downloadgitbook-acdaea9f6cbb41e5607af9a2c7e882d3eb62f9f5.zip
gitbook-acdaea9f6cbb41e5607af9a2c7e882d3eb62f9f5.tar.gz
gitbook-acdaea9f6cbb41e5607af9a2c7e882d3eb62f9f5.tar.bz2
Fix #649: add option "author" in book.json to set meta author in html
Diffstat (limited to 'theme')
-rw-r--r--theme/templates/ebook/layout.html2
-rw-r--r--theme/templates/website/layout.html5
2 files changed, 4 insertions, 3 deletions
diff --git a/theme/templates/ebook/layout.html b/theme/templates/ebook/layout.html
index 3ca3ef4..1ff85bf 100644
--- a/theme/templates/ebook/layout.html
+++ b/theme/templates/ebook/layout.html
@@ -8,6 +8,8 @@
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<meta name="description" content="{% block description %}{% endblock %}">
<meta name="generator" content="GitBook {{ gitbook.version }}">
+ {% 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 }}
</head>
diff --git a/theme/templates/website/layout.html b/theme/templates/website/layout.html
index 9107de7..6f5a845 100644
--- a/theme/templates/website/layout.html
+++ b/theme/templates/website/layout.html
@@ -9,15 +9,14 @@
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<meta name="description" content="{% block description %}{% endblock %}">
<meta name="generator" content="GitBook {{ gitbook.version }}">
+ {% if options.author %}<meta name="author" content="{{ options.author }}">{% endif %}
+ {% if options.isbn %}<meta name="identifier" content="{{ options.isbn }}" scheme="ISBN">{% endif %}
<meta name="HandheldFriendly" content="true"/>
<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">
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="{{ staticBase }}/images/apple-touch-icon-precomposed-152.png">
<link rel="shortcut icon" href="{{ staticBase }}/images/favicon.ico" type="image/x-icon">
- {% if options.isbn %}
- <meta name="identifier" content="{{ options.isbn }}" scheme="ISBN">
- {% endif %}
{% block head %}{% endblock %}
{{ htmlSnippet("head:end")|default("")|safe }}
</head>