diff --git a/gensite.py b/gensite.py index ffb5e7b..24dd571 100644 --- a/gensite.py +++ b/gensite.py @@ -139,6 +139,7 @@ def init_template_data(tp): tp.key = None tp.full_url = tp.page_permanent_id.replace("website/", "http://"+ setting_domain_name +"/") tp.target_is_online = (setting_generation_target & FLAG_ONLINE) == FLAG_ONLINE + tp.target_is_website = (setting_generation_target & TARGET_WEBSITE) == TARGET_WEBSITE tp.sections = TemplateParameters() @@ -600,6 +601,8 @@ if __name__ == "__main__": generate_website() elif (setting_generation_target & TARGET_EBOOK) == TARGET_EBOOK: generate_issues(issue_data) + # --disable-font-rescaling --margin-bottom=72 --margin-top=72 --margin-left=72 --margin-right=72 --chapter=/ --page-breaks-before=/ --chapter-mark=rule + # C:\RMT\VCS\GIT\Web\imaginary-realities>"c:\Program Files (x86)\Calibre2\ebook-convert.exe" ebooks\volume-07\issue-02\index.html issue.epub --disable-font-rescaling --margin-bottom=72 --margin-top=72 --margin-left=72 --margin-right=72 --chapter=/ --page-breaks-before=/ --chapter-mark=rule --output-profile=default --input-profile=default --preserve-cover-aspect-ratio --pretty-print if not setting_finalise: print "WARNING: Results are not finalised, published result should be finalised." diff --git a/templates/ebook/base.html b/templates/ebook/base.html index 5739083..359339e 100644 --- a/templates/ebook/base.html +++ b/templates/ebook/base.html @@ -1,16 +1,13 @@ - - +
- - + + - - - - + + + {% block extra_head_content %}{% endblock%} -