html_export_default_index.tmpl 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  5. <link rel="schema.DC" href="http://purl.org/dc/elements/1.1/" />
  6. <link rel="schema.DCTERMS" href="http://purl.org/dc/terms/" />
  7. <title>${print(', '.join(meta.creators()))}$ - ${print(next(meta.titles())); print(meta.titles().close())}$</title>
  8. ${for item in meta:}$
  9. <meta ${print('name="DC.'+item['name']+'"')}$ ${print('content="'+item['value']+'"')}$ />
  10. ${:endfor}$
  11. <link href="${cssLink}$" type="text/css" rel="stylesheet" />
  12. </head>
  13. <body>
  14. <div class="calibreMeta">
  15. <div class="calibreMetaTitle">
  16. ${pos1=1}$
  17. ${for title in meta.titles():}$
  18. ${if pos1:}$
  19. <h1>
  20. <a href="${tocUrl}$">${print(title)}$</a>
  21. </h1>
  22. ${:else:}$
  23. <div class="calibreMetaSubtitle">${print(title)}$</div>
  24. ${:endif}$
  25. ${pos1=0}$
  26. ${:endfor}$
  27. </div>
  28. <div class="calibreMetaAuthor">
  29. ${print(', '.join(meta.creators()))}$
  30. </div>
  31. </div>
  32. <div class="calibreMain">
  33. <div class="calibreEbookContent">
  34. ${if has_toc:}$
  35. <div class="calibreTocIndex">
  36. <h2>${print(_('Table of contents'))}$</h2>
  37. ${toc}$
  38. </div>
  39. ${:else:}$
  40. <h2>${print(_('No table of contents present'))}$</h2>
  41. <div><strong><a href="${nextLink}$">${print(_('begin to read'))}$</a></strong></div>
  42. ${:endif}$
  43. </div>
  44. <div class="calibreEbNav">
  45. ${if nextLink:}$
  46. <a href="${nextLink}$" class="calibreANext">${print(_('next page'))}$</a>
  47. ${:endif}$
  48. </div>
  49. </div>
  50. </body>
  51. </html>