From e3a9863f9fc77f623843ee7c958455f14e67767a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gra=C3=9Fl?= Date: Wed, 3 Nov 2010 13:16:59 +0100 Subject: [PATCH] added view variable --- src/calibre/ebooks/html/output.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/calibre/ebooks/html/output.py b/src/calibre/ebooks/html/output.py index 52b2e62421..6c81ea8ef5 100644 --- a/src/calibre/ebooks/html/output.py +++ b/src/calibre/ebooks/html/output.py @@ -121,7 +121,8 @@ class HTMLOutput(OutputFormatPlugin): tocUrl = relpath(output_file, dirname(output_file)) t = templite.render(has_toc=bool(oeb_book.toc.count()), toc=html_toc, meta=meta, nextLink=nextLink, - tocUrl=tocUrl, cssLink=cssLink) + tocUrl=tocUrl, cssLink=cssLink, + firstContentPageLink=nextLink) f.write(t) with CurrentDir(output_dir): @@ -170,6 +171,7 @@ class HTMLOutput(OutputFormatPlugin): cssLink = relpath(abspath(css_path), dir) tocUrl = relpath(output_file, dir) + firstContentPageLink = oeb_book.spine[0].href # render template templite = Templite(template_html_data) @@ -178,7 +180,8 @@ class HTMLOutput(OutputFormatPlugin): prevLink=prevLink, nextLink=nextLink, has_toc=bool(oeb_book.toc.count()), toc=toc, tocUrl=tocUrl, head_content=head_content, - meta=meta, cssLink=cssLink) + meta=meta, cssLink=cssLink, + firstContentPageLink=firstContentPageLink) # write html to file with open(path, 'wb') as f: