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)