Edit Export Template

Back

Available Variables

Use these Jinja2 variables in your template:

Book Information
  • {{ book.clean_title }} - Book title (enriched)
  • {{ book.raw_title }} - Book title (from file)
  • {{ book.clean_authors }} - Authors (enriched)
  • {{ book.raw_authors }} - Authors (from file)
  • {{ book.description }} - Book description
  • {{ book.language }} - Book language
  • {{ book.identifiers }} - ISBN/identifiers
Highlights
  • {% for highlight in highlights %}...{% endfor %} - Loop through selected highlights
  • {{ highlight.text }} - Highlight text
  • {{ highlight.chapter }} - Chapter name
  • {{ highlight.page_number }} - Page number
  • {{ highlight.datetime }} - Highlight timestamp
  • {{ highlight.color }} - Highlight color
  • {{ loop.index }} - Current highlight number (inside loop)
Reading Information
  • {{ read_start }} - First highlight date (YYYY-MM-DD)
  • {{ read_end }} - Last highlight date (YYYY-MM-DD)
Export Metadata
  • {{ current_date }} - Export date (YYYY-MM-DD)
  • {{ current_timestamp }} - Export timestamp (YYYY-MM-DD HH:MM:SS)
Cover Image

The book cover is automatically included in the zip (if available). The filename is determined by your "Cover Filename Template" setting below. Reference it in your template using the same template variables. For example, if your cover template is , reference it as:

  • Markdown: ![Cover](.jpg) or ![Cover](.png)
  • HTML: <img src=".jpg" alt="Cover">
Filename Template Variables

Available for both export filename and cover filename templates:

  • {{ book_title }} - Book title (clean_title or raw_title)
  • {{ book_authors }} - Book authors (clean_authors or raw_authors)
  • {{ export_date }} - Export date (YYYY-MM-DD)
Jinja2 Control Structures
  • {% if variable %}...{% endif %} - Conditional
  • {% for item in items %}...{% endfor %} - Loop
  • {{ variable or 'default' }} - Default value
Tip: The default template uses Markdown frontmatter for blog compatibility. Customize it for your blog's format!
Use Jinja2 syntax. Click "Template Variables Reference" above for available variables.
Jinja2 template for exported file. Variables: book_title, book_authors, export_date
Jinja2 template (without extension). Variables: book_title, book_authors, export_date
Cancel