diff --git a/internal/epub/core.go b/internal/epub/core.go index da0ff2c..bef59dd 100644 --- a/internal/epub/core.go +++ b/internal/epub/core.go @@ -291,7 +291,9 @@ func (e *ePub) Write() error { "Title": title, "TOC": string(toc), })}, - {"OEBPS/Text/style.css", styleTmpl}, + {"OEBPS/Text/style.css", e.render(styleTmpl, map[string]any{ + "Info": e, + })}, {"OEBPS/Text/part.xhtml", e.render(partTmpl, map[string]any{ "Info": e, "Part": i + 1, @@ -321,11 +323,13 @@ func (e *ePub) Write() error { var content string if e.AddPanelView { content = e.render(textTmpl, map[string]any{ + "Info": e, "Image": img, "Manga": e.Manga, }) } else { content = e.render(textNoPanelTmpl, map[string]any{ + "Info": e, "Image": img, }) } diff --git a/internal/epub/templates/blank.xhtml.tmpl b/internal/epub/templates/blank.xhtml.tmpl index 0252f8b..8e4f241 100644 --- a/internal/epub/templates/blank.xhtml.tmpl +++ b/internal/epub/templates/blank.xhtml.tmpl @@ -7,6 +7,8 @@
-