mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-15 09:57:41 +01:00
add a title page
The first page of the book is the title
This commit is contained in:
parent
1953a87293
commit
a6e9ad0b7d
@ -190,7 +190,8 @@ class EntriesExport
|
||||
// in filenames, we limit to A-z/0-9
|
||||
$filename = preg_replace('/[^A-Za-z0-9\-]/', '', $entry->getTitle());
|
||||
|
||||
$chapter = $content_start . $entry->getContent() . $bookEnd;
|
||||
$titlepage = "<h1>".$entry->getTitle()."</h1>";
|
||||
$chapter = $content_start . $titlepage . $entry->getContent() . $bookEnd;
|
||||
$book->addChapter($entry->getTitle(), htmlspecialchars($filename) . '.html', $chapter, true, EPub::EXTERNAL_REF_ADD);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user