Add chapter link after author note in index

This commit is contained in:
Daniel Jönsson 2018-03-26 08:50:20 +02:00
parent ac56b2fa42
commit 750df5b434
2 changed files with 5 additions and 3 deletions

View file

@ -405,7 +405,8 @@ class FimFic2Epub extends EventEmitter {
if (this.options.includeAuthorNotes && this.options.useAuthorNotesIndex && chapter.notes) {
chain = chain.then(template.createChapter.bind(null, this, {
title: 'Author\'s Note: ' + ch.title,
content: chapter.notes
content: chapter.notes,
index: i
}, true)).then((html) => {
this.findRemoteResources('note_' + zeroFill(3, i + 1), {note: i}, html)
this.notesHtml[i] = html

View file

@ -100,9 +100,10 @@ export function createChapter (ffc, ch, isNotesChapter) {
m('hr.old')
]) : null,
tokenContent,
(link || linkNotes) ? m('p.double', {style: 'text-align: center; clear: both;'},
(link || linkNotes || isNotesChapter) ? m('p.double', {style: 'text-align: center; clear: both;'},
link ? m('a.chaptercomments', {href: link + '#comment_list'}, 'Read chapter comments online') : null,
linkNotes ? m('a.chaptercomments', {href: linkNotes}, 'Read author\'s note') : null
linkNotes ? m('a.chaptercomments', {href: linkNotes}, 'Read author\'s note') : null,
isNotesChapter ? m('a.chaptercomments', {href: './chapter_' + zeroFill(3, index + 1) + '.xhtml'}, 'Read chapter') : null
) : null,
!isNotesChapter && ffc.options.addChapterBars ? chapterBars(ffc.storyInfo.chapters, index) : null
]))