mirror of
https://github.com/celogeek/go-comic-converter.git
synced 2025-05-25 08:12:36 +02:00
remove last page from toc
this is already include in kindle
This commit is contained in:
parent
0e9ae95df0
commit
bcfd342026
@ -234,7 +234,6 @@ func (e *ePub) Write() error {
|
|||||||
{"OEBPS/nav.xhtml", e.render(navTmpl, map[string]any{
|
{"OEBPS/nav.xhtml", e.render(navTmpl, map[string]any{
|
||||||
"Title": title,
|
"Title": title,
|
||||||
"TOC": string(toc),
|
"TOC": string(toc),
|
||||||
"Last": part.Images[len(part.Images)-1],
|
|
||||||
})},
|
})},
|
||||||
{"OEBPS/Text/style.css", styleTmpl},
|
{"OEBPS/Text/style.css", styleTmpl},
|
||||||
{"OEBPS/Text/part.xhtml", e.render(partTmpl, map[string]any{
|
{"OEBPS/Text/part.xhtml", e.render(partTmpl, map[string]any{
|
||||||
|
@ -9,9 +9,8 @@
|
|||||||
<nav epub:type="toc" id="toc">
|
<nav epub:type="toc" id="toc">
|
||||||
<h1>Table of content</h1>
|
<h1>Table of content</h1>
|
||||||
<ol>
|
<ol>
|
||||||
<li><a href="Text/part.xhtml">Title</a></li>
|
<li><a href="Text/part.xhtml">{{ .Title }}</a></li>
|
||||||
{{ .TOC }}
|
{{ .TOC }}
|
||||||
<li><a href="Text/{{ .Last.Id }}_p{{ .Last.Part}}.xhtml">Last page</a></li>
|
|
||||||
</ol>
|
</ol>
|
||||||
</nav>
|
</nav>
|
||||||
</body>
|
</body>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user