diff options
Diffstat (limited to 'theme')
-rw-r--r-- | theme/templates/ebook/glossary.html | 15 | ||||
-rw-r--r-- | theme/templates/ebook/summary.html | 4 | ||||
-rwxr-xr-x | theme/templates/layout.html | 4 |
3 files changed, 23 insertions, 0 deletions
diff --git a/theme/templates/ebook/glossary.html b/theme/templates/ebook/glossary.html new file mode 100644 index 0000000..8076c4d --- /dev/null +++ b/theme/templates/ebook/glossary.html @@ -0,0 +1,15 @@ +{% extends "./layout.html" %} + +{% block title %}Glossary | {{ title }}{% endblock %} + +{% block content %} +<div class="page page-toc"> + <h1>Glossary</h1> + {% for item in glossaryIndex %} + <section class="normal glossary" id="{{ item.id }}"> + <h2><a href="#{{ item.id }}">{{ item.name }}</a></h2> + <p>{{ item.description }}</p> + </section> + {% endfor %} +</div> +{% endblock %} diff --git a/theme/templates/ebook/summary.html b/theme/templates/ebook/summary.html index 85388f9..dfbba2c 100644 --- a/theme/templates/ebook/summary.html +++ b/theme/templates/ebook/summary.html @@ -40,6 +40,10 @@ <h1>Table of Contents</h1> <ol> {{ articles(summary.chapters) }} + + {% if glossary.length > 0 %} + <li><a href="{{ basePath }}/GLOSSARY.html">Glossary</a></li> + {% endif %} </ol> </div> {% endblock %} diff --git a/theme/templates/layout.html b/theme/templates/layout.html index b7afea3..5dc7c5e 100755 --- a/theme/templates/layout.html +++ b/theme/templates/layout.html @@ -4,6 +4,7 @@ <head> {{ htmlSnippet("head:start")|default("") }} <meta charset="UTF-8"> + <meta http-equiv="X-UA-Compatible" content="IE=11; IE=10; IE=9; IE=8; IE=7; IE=EDGE" /> <title>{% block title %}{% endblock %}</title> <meta content="text/html; charset=utf-8" http-equiv="Content-Type"> <meta name="description" content="{% block description %}{% endblock %}"> @@ -14,6 +15,9 @@ <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("") }} </head> |