BETTER
This commit is contained in:
1 parent
4c59f077d5
commit
c8dbeaeca0
87 files changed
+135
-1827
No files matched your search
+7
-7
@@ -201,13 +201,13 @@ def render_book(book, translation, out_dir):
|
||||
else:
|
||||
out.append(esc(name))
|
||||
out.append("</h1>\n")
|
||||
out.append(' <nav class="chapter-nav" aria-label="Chapters" '
|
||||
'hx-boost="false">\n <ul>\n')
|
||||
for chapter in book["chapters"]:
|
||||
out.append(' <li><a href="#ch%d">%d</a></li>\n'
|
||||
% (chapter["number"], chapter["number"]))
|
||||
out.append(" </ul>\n </nav>\n")
|
||||
out.append(' <p class="home"><a href="./">All books</a></p>\n')
|
||||
# The title and nothing else. Both of the things that used to sit under it
|
||||
# are in the navbar now, where they are in reach from anywhere in the book
|
||||
# rather than only from the top of it: the chapter list became the
|
||||
# reference picker, which reads its chapters and verses straight off this
|
||||
# markup, and "All books" is what the navbar brand already does. In Psalms
|
||||
# the chapter list alone was a hundred and fifty links, carried in the
|
||||
# fragment and in every device's offline copy.
|
||||
out.append(" </header>\n")
|
||||
|
||||
out.append(' <div class="chapters">\n')
|
||||
|
||||
Reference in new issue
Block a user