diff options
author | Samy Pessé <samypesse@gmail.com> | 2014-04-17 12:15:28 +0200 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2014-04-17 12:15:28 +0200 |
commit | 1a8db646f2d1cb93d80f48ce024e1faa491d3bc2 (patch) | |
tree | 5d746bcde566d406e29b7acdac0cd6815b23e8b5 /theme/templates | |
parent | d3aba2c9062b0ce3de4ce1b20683f55f3cdef3d2 (diff) | |
download | gitbook-1a8db646f2d1cb93d80f48ce024e1faa491d3bc2.zip gitbook-1a8db646f2d1cb93d80f48ce024e1faa491d3bc2.tar.gz gitbook-1a8db646f2d1cb93d80f48ce024e1faa491d3bc2.tar.bz2 |
Improve styling for pdf and ebook
Diffstat (limited to 'theme/templates')
-rw-r--r-- | theme/templates/page.html | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/theme/templates/page.html b/theme/templates/page.html index 81ee48c..6ca1117 100644 --- a/theme/templates/page.html +++ b/theme/templates/page.html @@ -41,27 +41,28 @@ {# Summary #} <section id="summary"> - <h1>Summary</h1> - - <ul class="summary"> + <h1>Table of Contents</h1> + <ol> <li> - <a href="#README.md">Introduction</a> + <a href="#README.md"> + <h2>Introduction</h2> + </a> </li> {% for item in summary.chapters %} <li> - <a href="#{{ item.path }}">{{ item.level }}) {{ item.title }}</a> + <h2><span>{{ item.level }}.</span> <a href="#{{ item.path }}">{{ item.title }}</a></h2> {% if item.articles.length > 0 %} - <ul> + <ol> {% for article in item.articles %} <li> - <a href="#{{ article.path }}">{{ article.level }}) {{ article.title }}</a> + <span>{{ article.level }}</span> <a href="#{{ article.path }}">{{ article.title }}</a> </li> {% endfor %} - </ul> + </ol> {% endif %} </li> {% endfor %} - </ul> + </ol> </section> {# Pages content #} |