summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/configuration.js1
-rw-r--r--theme/templates/ebook/layout.html2
-rw-r--r--theme/templates/website/layout.html5
3 files changed, 5 insertions, 3 deletions
diff --git a/lib/configuration.js b/lib/configuration.js
index 1bd2fa3..fee40fc 100644
--- a/lib/configuration.js
+++ b/lib/configuration.js
@@ -148,6 +148,7 @@ Configuration.DEFAULT = {
"isbn": null,
"language": "en",
"direction": null,
+ "author": null,
// version of gitbook to use
"gitbook": "*",
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>