This commit is contained in:
Daniel Jönsson 2018-03-13 16:23:18 +01:00
parent ace0ef5f65
commit f2fa71aeb9

View file

@ -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)