diff --git a/internal/epub/core.go b/internal/epub/core.go index 0a78b2f..7c3184a 100644 --- a/internal/epub/core.go +++ b/internal/epub/core.go @@ -234,7 +234,6 @@ func (e *ePub) Write() error { {"OEBPS/nav.xhtml", e.render(navTmpl, map[string]any{ "Title": title, "TOC": string(toc), - "Last": part.Images[len(part.Images)-1], })}, {"OEBPS/Text/style.css", styleTmpl}, {"OEBPS/Text/part.xhtml", e.render(partTmpl, map[string]any{ diff --git a/internal/epub/templates/nav.xhtml.tmpl b/internal/epub/templates/nav.xhtml.tmpl index 322ce44..5403194 100644 --- a/internal/epub/templates/nav.xhtml.tmpl +++ b/internal/epub/templates/nav.xhtml.tmpl @@ -9,9 +9,8 @@