diff --git a/internal/epub/core.go b/internal/epub/core.go index da0ff2c..bbde21c 100644 --- a/internal/epub/core.go +++ b/internal/epub/core.go @@ -321,11 +321,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/content.opf.tmpl b/internal/epub/templates/content.opf.tmpl index 730190c..511757d 100644 --- a/internal/epub/templates/content.opf.tmpl +++ b/internal/epub/templates/content.opf.tmpl @@ -15,7 +15,7 @@ pre-paginated portrait - + {{ if eq $info.AddPanelView true }} {{ end }} @@ -49,9 +49,9 @@ {{ range .Images }} {{ if eq .NeedSpace true }} - + {{ end }} - + {{ end }} diff --git a/internal/epub/templates/text.xhtml.tmpl b/internal/epub/templates/text.xhtml.tmpl index d92b6f6..740fef9 100644 --- a/internal/epub/templates/text.xhtml.tmpl +++ b/internal/epub/templates/text.xhtml.tmpl @@ -5,10 +5,10 @@ Page {{ .Image.Id }}_p{{ .Image.Part}} - + -
+
diff --git a/internal/epub/templates/textnopanel.xhtml.tmpl b/internal/epub/templates/textnopanel.xhtml.tmpl index 0350f5a..ab19c3b 100644 --- a/internal/epub/templates/textnopanel.xhtml.tmpl +++ b/internal/epub/templates/textnopanel.xhtml.tmpl @@ -4,10 +4,10 @@ Page {{ .Image.Id }}_p{{ .Image.Part}} - + -
+