From 544f19db227a5ba81f04463cbee4a1419969c37f Mon Sep 17 00:00:00 2001
From: celogeek <65178+celogeek@users.noreply.github.com>
Date: Wed, 12 Apr 2023 09:38:30 +0200
Subject: [PATCH] WIP
---
internal/epub/core.go | 2 ++
internal/epub/templates/content.opf.tmpl | 6 +++---
internal/epub/templates/text.xhtml.tmpl | 4 ++--
internal/epub/templates/textnopanel.xhtml.tmpl | 4 ++--
4 files changed, 9 insertions(+), 7 deletions(-)
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 @@