From f2fa71aeb93d146e8dd099c06ecd071c7087f0b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20J=C3=B6nsson?= Date: Tue, 13 Mar 2018 16:23:18 +0100 Subject: [PATCH] :facepalm: --- src/templates.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/templates.js b/src/templates.js index 3ba1975..8287af7 100644 --- a/src/templates.js +++ b/src/templates.js @@ -234,9 +234,9 @@ export function createNcx (ffc) { export function createNav (ffc) { let list = [ - m('li', {hidden: ''}, m('a', {href: 'Text/cover.xhtml'}, 'Cover')), - m('li', {hidden: ''}, m('a', {href: 'Text/title.xhtml'}, 'Title Page')), - ffc.storyInfo.chapters.length > 1 || (ffc.options.includeAuthorNotes && ffc.options.useAuthorNotesIndex && ffc.hasAuthorNotes) ? m('li', {hidden: ''}, m('a', {href: 'nav.xhtml'}, 'Contents')) : null + m('li', m('a', {href: 'Text/cover.xhtml'}, 'Cover')), + m('li', m('a', {href: 'Text/title.xhtml'}, 'Title Page')), + ffc.storyInfo.chapters.length > 1 || (ffc.options.includeAuthorNotes && ffc.options.useAuthorNotesIndex && ffc.hasAuthorNotes) ? m('li', m('a', {href: 'nav.xhtml'}, 'Contents')) : null ].concat(ffc.storyInfo.chapters.map((ch, num) => m('li', [ m('a.leftalign', {href: 'Text/chapter_' + zeroFill(3, num + 1) + '.xhtml'}, ch.title)